The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Development Assistance
/
MinGW final build error won't go away
«
1
»
MinGW final build error won't go away
ssc4k
6th Sep 2010
Member
0
Permalink
I have everything building fine under MinGW-64 on Windows 7 using the codeblocks IDE
EXCEPT
this dang error with bzip2 and http.c
obj\Release\graphics.o:graphics.c|| undefined reference to `BZ2_bzBuffToBuffDecompress'|
obj\Release\graphics.o:graphics.c|| undefined reference to `BZ2_bzBuffToBuffDecompress'|
obj\Release\graphics.o:graphics.c|| undefined reference to `BZ2_bzBuffToBuffDecompress'|
obj\Release\http.o:http.c|| undefined reference to `__imp_closesocket'|
obj\Release\http.o:http.c|| undefined reference to `__imp_WSAStartup'|
obj\Release\http.o:http.c|| undefined reference to `__imp_getaddrinfo'|
obj\Release\http.o:http.c|| undefined reference to `__imp_freeaddrinfo'|
obj\Release\http.o:http.c|| undefined reference to `__imp_freeaddrinfo'|
obj\Release\http.o:http.c|| undefined reference to `__imp_WSACleanup'|
obj\Release\http.o:http.c|| undefined reference to `__imp_closesocket'|
obj\Release\http.o:http.c|| undefined reference to `__imp_recv'|
obj\Release\http.o:http.c|| undefined reference to `__imp_connect'|
obj\Release\http.o:http.c|| undefined reference to `__imp_send'|
obj\Release\http.o:http.c|| undefined reference to `__imp_getaddrinfo'|
obj\Release\http.o:http.c|| undefined reference to `__imp_freeaddrinfo'|
obj\Release\http.o:http.c|| undefined reference to `__imp_socket'|
obj\Release\http.o:http.c|| undefined reference to `__imp_ioctlsocket'|
obj\Release\http.o:http.c|| undefined reference to `__imp_WSAGetLastError'|
obj\Release\http.o:http.c|| undefined reference to `__imp_WSAGetLastError'|
obj\Release\http.o:http.c|| undefined reference to `__imp_freeaddrinfo'|
obj\Release\http.o:http.c|| undefined reference to `__imp_closesocket'|
obj\Release\http.o:http.c|| undefined reference to `__imp_closesocket'|
obj\Release\http.o:http.c|| undefined reference to `__imp_closesocket'|
obj\Release\interface.o:interface.c|| undefined reference to `BZ2_bzBuffToBuffDecompress'|
obj\Release\main.o:main.c|| undefined reference to `BZ2_bzBuffToBuffCompress'|
obj\Release\main.o:main.c|| undefined reference to `BZ2_bzBuffToBuffCompress'|
obj\Release\main.o:main.c|| undefined reference to `BZ2_bzBuffToBuffDecompress'|
obj\Release\powder.o:powder.c|| undefined reference to `max'|
||=== Build finished: 28 errors, 0 warnings ===|
I used the bzip2 source tarball from
here
, I must be missing something so simple :/ any help is greatly appreciated.
plypencil
6th Sep 2010
Member
0
Permalink
Well heres your problem
Clicky
ssc4k
6th Sep 2010
Member
0
Permalink
yeah...
Anyways if anyone happens to be using code blocks
here is my TPT development folder
(libs I'm using are in the compiler directory though not this folder)
Simon
6th Sep 2010
Administrator
0
Permalink
Looks like you're not linking the WinSock or BZip Libraries.
«
1
»