cc: [email protected] Subject: Re: [uwin-users] Follow-up on dll --------
> Well, I know how to make a DLL with Visual Studio. What I want to do is make > a > DLL like the posix.dll, with an nmakefile and the proper switches, that I can > li > nk from Visual Studio. I guess I will parse the nmakefile for posix.dll. > First of all, look at An nmake makefile that will generate a dll is something like the following: ====================cut here=========================== libname = foo CCFLAGS = $(CC.OPTIMIZE) $(CC.DLL) $(libname) 1.0 :LIBRARY: file1.c ... fileN.c -llib1 ... -llibN ====================cut here=========================== nmake all will generate libname.a in the current directory and a subdirectory named libname.so containing the .dll and .lib files. Note that /usr/doc/dlls.html explains various ways to get export symbols for the library. The simplest way is to create an empty file named libname.ign and add this to the list of files for :LIBRARY:. This will make every extern function an exported function. libname.def will only make the ones named in libname.def exported. David Korn [email protected] _______________________________________________ uwin-users mailing list [email protected] http://lists.research.att.com/mailman/listinfo/uwin-users
