From: Pascal DOT Trouvin AT integralis DOT co DOT uk Subject: Re[2]: Building-dll doc file 27 Jan 1997 12:11:48 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <01IEPTTJDVKQ003FB6.cygnus.gnu-win32@INTEGD.INTEGRALIS.CO.UK> Mime-Version: 1.0 Content-Type: TEXT/PLAIN Original-To: gnu-win32 AT cygnus DOT com, gunther DOT ebert AT ixos-leipzig DOT de Original-Sender: owner-gnu-win32 AT cygnus DOT com I've tried that, it doesn't work. I got exactly the same message. the new procedure was: gcc -c foo.c gcc -c foo2.c ld --dll -o foo.dll --base-file foo.base foo.o foo2.o dlltool --def foo.def --output-exp foo.exp --output-lib foo.a --dllname foo.dll ld --dll -o foo.dll foo.exp foo.o foo2.o gcc main.c foo.a -o main.exe :( ______________________________ Reply Separator _________________________________ Subject: Re: Building-dll doc file Author: gunther DOT ebert AT ixos-leipzig DOT de at INTERNET Date: 27/01/1997 16:04 Hi, you have to run ld twice, ld --dll -o foo.dll --base-file foo.base foo.o foo2.o dlltool --base-file foo.base ld --dll -o foo.dll foo.exp foo.o foo2.o Gunther Pascal DOT Trouvin AT integralis DOT co DOT uk wrote: > > Hi, > > > I've got b17 and try to build a dll as described in building-dlls > document, but it compiles successfully, but the excution of main.exe > fails with the message 'can not execute foo.dll, check it for > details'? > > Does any of you have an idea. > > Note: I have add '--dll' in the ld command > > > > dlltool --def foo.def --output-exp foo.exp --output-lib foo.a > --dllname foo.dll > gcc -c foo.c > gcc -c foo2.c > ld --dll -o foo.dll foo.exp foo.o foo2.o > > gcc main.c foo.a -o main.exe > > > pascal > ________________________________________________________ > MIMEsweeper has scanned this message and its attachments > and found it to be free of all known viruses. > > info AT Integralis DOT com > http://www.integralis.com > > Innovation, Integration, Integralis > ________________________________________________________ > - > For help on using this list, send a message to > "gnu-win32-request AT cygnus DOT com" with one line of text: "help". ________________________________________________________ MIMEsweeper has scanned this message and its attachments and found it to be free of all known viruses. info AT Integralis DOT com http://www.integralis.com Innovation, Integration, Integralis ________________________________________________________ - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".