From: Thomas G. <tg...@e-...> - 2002-07-02 16:16:08
|
OK, I found it myself, it's a question of ordering the command line flags ... putting the -lwsock32 at the very end does the trick. Well ... Thomas Gentsch schrieb: > > Hello, > > I'm trying to build a DLL using mingw and came to the point that I want > to link everything together. > Now I get lots of unresolved symbols, e.g.: > > > imsock.o: In function `IMSocket::SetHost(IMErrList *, char const *)': > > //bla/imsock.C:96: undefined reference to `inet_addr@4' > > //bla/imsock.C:100: undefined reference to `gethostbyaddr@12' > > most of them in the socket area. Now I tried to specify the socket libs > wsock32 and/or ws2_32 but that does not change anything. Maybe it's just > the way *how* to specify them?? > That's one of my attempts: > > > dllwrap -v --nodelete --export-all --output-def im.def --implib libim.a --driver-name c++ -o libim.dll --driver_flags=-L/c/mingw/lib -lwsock32 -lws2_32 imsock.o [ ... more object files ... ] dllinit.o > > Any help is greatly appreciated, > tge > > PS: Is there a way to actually *search* the archive (geocrawler) or am I > just too stupid to see it ... ?? > > -- > ................................................ > Thomas Gentsch > -------------- > Phone: +49 711 486948 E-mail: tg...@e-... > Mobil: +49 173 6620507 > Fax: +49 711 4687889 WWW: www.e-tge.de > ................................................ > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users -- ................................................ Thomas Gentsch -------------- Phone: +49 711 486948 E-mail: tg...@e-... Mobil: +49 173 6620507 Fax: +49 711 4687889 WWW: www.e-tge.de ................................................ |