Re: Help! (creating a dynamically linked shared library)

2003-06-09 Thread JS
Hi Elfyn, It compiled! Thanks. =) But now I'm trying to build the .lib and main program in DOS, and DOS isn't finding the function. My command line is: cl add.cpp function.lib Do you know why it's not working? Thanks again! ~Julie --- Elfyn McBratney <[EMAIL PROTECTED]> wrote: > On Mon,

Re: Help! (creating a dynamically linked shared library)

2003-06-09 Thread Elfyn McBratney
On Mon, 9 Jun 2003, JS wrote: > These are the commands I used to create the .lib and > exports.o files: > > gcc -c function.c > dlltool -e exports.o -l function.lib function.o > gcc function.o exports.o -o function.dll ^^ You need to add the `-shared' flag after invocation o