delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/28/18:11:39

From: kemp AT eease DOT com (John Kemp)
Subject: Netscape Enterprise dll
28 May 1997 18:11:39 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <338C92D5.2F16.cygnus.gnu-win32@eease.com>
Reply-To: kemp AT eease DOT com
Mime-Version: 1.0
X-Mailer: Mozilla 3.01 (WinNT; I)
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

I'm trying to write dlls that export functions for Netscape Enterprise
Server, portable between unix and NT, but I'm having some trouble
getting them into a valid dll - Netscape Server fails to load the dlls
as it says they are not valid Windows dlls.

Anyone know what that's all about? My compile is shown below :-

winmain.c contains the function dllEntry as spec'd, and fix.c contains
the line
asm(".section .idata$3\n" ".long 0,0,0,0,0") ;

#!/bin/sh
ld --dll --base-file lw_buffer.base -o junk lw_buffer.o winmain.o fix.o
-e _dllEntry AT 12 /usr/i386-cygwin32/lib/libcygwin.a

dlltool --dllname lw_buffer.dll --def lw_buffer.def --base-file
lw_buffer.base --output-exp lw_buffer.exp --output-lib lw_buffer.a

ld lw_buffer.exp --dll -o lw_buffer.dll lw_buffer.o winmain.o fix.o
$LIBPATH/libcygwin.a -e _dllEntry AT 12

Any thoughts?

Thanks

John
-- 
.............................
John Kemp
Employease Inc.
http://www.employease.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019