[Mingw-w64-public] Undefined reference to gai_strerror()

2010-01-26 Thread Chris Spencer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm having a bit of a problem with my networking code. Specifically, the linker can't find gai_strerror(). To provide a very simple test case: #include int main() { gai_strerror(0); return 0; } This compiles without issue in mingw3

Re: [Mingw-w64-public] Undefined reference to gai_strerror()

2010-01-26 Thread JonY
On 1/26/2010 21:50, Chris Spencer wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > > I'm having a bit of a problem with my networking code. Specifically, the > linker can't find gai_strerror(). > > To provide a very simple test case: > > #include > int main() { > gai_stre

Re: [Mingw-w64-public] Undefined reference to gai_strerror()

2010-01-26 Thread Kai Tietz
2010/1/26 Chris Spencer : > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi all, > > I'm having a bit of a problem with my networking code. Specifically, the > linker can't find gai_strerror(). > > To provide a very simple test case: > > #include > int main() { >    gai_strerror(0); >    re

Re: [Mingw-w64-public] Undefined reference to gai_strerror()

2010-01-27 Thread Chris Spencer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/01/10 13:50, JonY wrote: > you forgot to add -lws2_32, "x86_64-w64-mingw32-gcc test.c -lws2_32". No difference. On 26/01/10 14:06, Kai Tietz wrote: > Well, the symbol is part of the import-libary libws2_32.a. For me it > works to link, but I as