Page 1 of 1

Compil error with Code::Blocks

Posted: 30 Sep 2007, 17:13
by KaTSuo
Hi !

It seems there is something wrong in SDL... When I compil, it fails when he try to link the tmw.exe...

Code: Select all

Linking executable: tmw.exe
.objs\src\gui\gui.o:gui.cpp:(.text+0x210): undefined reference to `SDLInput::SDLInput()'
.objs\src\gui\gui.o:gui.cpp:(.text+0x170c): undefined reference to `SDLInput::SDLInput()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 8 seconds)
0 errors, 0 warnings
There is also an error with Key::Delete in guichan. But I've deleted the parts which don't work...

Regards,

Posted: 30 Sep 2007, 17:23
by Crush
As usual the project files are outdated. Add the files src/gui/sdlinput.cpp and src/gui/sdlinput.h manually to the project and it should work.

Posted: 30 Sep 2007, 19:50
by Rotonen
You could always set up an MSYS environment, in which you could just use the autotools oriented files, which are kept up to date more likely.

http://www.mingw.org/msys.shtml