it's me again.
now that irrlicht works
http://wolfnet.kicks-ass.net/kram/httpget.c
under linux (gcc) and windows (bcc) it compiles fine, but not with devc++.
i get some strange linker-errors:
Code: Select all
gcc.exe "E:\irrlicht-0.8\game\netzwerk\client\httpget.c" -o "E:\irrlicht-0.8\game\netzwerk\client\httpget.exe" -O1 -I"include" -I"E:\irrlicht-0.8\include" -L"lib" -L"E:\irrlicht-0.8\lib\DevCpp"
C:\DOKUME~1\wolf\LOKALE~1\Temp/ccaOaaaa.o(.text+0x37):httpget.c: undefined reference to `WSAStartup@8'
C:\DOKUME~1\wolf\LOKALE~1\Temp/ccaOaaaa.o(.text+0xc8):httpget.c: undefined reference to `socket@12'
C:\DOKUME~1\wolf\LOKALE~1\Temp/ccaOaaaa.o(.text+0x104):httpget.c: undefined reference to `inet_addr@4'
C:\DOKUME~1\wolf\LOKALE~1\Temp/ccaOaaaa.o(.text+0x11c):httpget.c: undefined reference to `gethostbyname@4'
C:\DOKUME~1\wolf\LOKALE~1\Temp/ccaOaaaa.o(.text+0x17c):httpget.c: undefined reference to `htons@4'
C:\DOKUME~1\wolf\LOKALE~1\Temp/ccaOaaaa.o(.text+0x19a):httpget.c: undefined reference to `connect@12'
C:\DOKUME~1\wolf\LOKALE~1\Temp/ccaOaaaa.o(.text+0x1fd):httpget.c: undefined reference to `send@16'
C:\DOKUME~1\wolf\LOKALE~1\Temp/ccaOaaaa.o(.text+0x21e):httpget.c: undefined reference to `recv@16'
C:\DOKUME~1\wolf\LOKALE~1\Temp/ccaOaaaa.o(.text+0x243):httpget.c: undefined reference to `closesocket@4'
collect2: ld returned 1 exit status