Posts: 3
Threads: 1
Joined: Sep 2010
I'm running mingw.bat and it's not compiling properly, I get the following error:
"server.cpp: undefined reference to 'SDL_main(int, char**)"
Here's a link to the complete output:
http://pastebin.com/yLtbFCeh
Thanks!
Posts: 354
Threads: 1
Joined: Jun 2010
Are you sure that's the newest source? IIRC the bug of the server needing SDL was fixed with 1.1.02/1.1.03 or something like that...
Posts: 3
Threads: 1
Joined: Sep 2010
I got the source code from the SVN repo, is that the wrong place to get it?
Posts: 52
Threads: 5
Joined: Jun 2010
The game comes with source code. I don't think you need to get it from subversion, though that is supposed to be the most recent.
Posts: 1,823
Threads: 20
Joined: Jun 2010
06 Sep 10, 01:59AM
(This post was last modified: 06 Sep 10, 01:59AM by Gibstick.)
If you want to test out the SVN, then it is the right place but for normal use it is better to use:
https://sourceforge.net/projects/actiong...2/download
I've had problems compiling the SVN repo occasionally. And source code only comes with Linux version :D
Posts: 3
Threads: 1
Joined: Sep 2010
I made a directory '../../bin_win32'
And I got the same error compiling the source code that Gibstick linked.
Posts: 1,823
Threads: 20
Joined: Jun 2010
06 Sep 10, 02:37AM
(This post was last modified: 06 Sep 10, 02:38AM by Gibstick.)
I suppose it wouldn't make a difference if you used a different compiler, though GCC and Visual Studio 2008 work for me.
Posts: 192
Threads: 0
Joined: Jun 2010
Try using this one:
http://nuwen.net/mingw.html (GCC 4.5.1 and Boost 1.44.0)
Posts: 1,436
Threads: 7
Joined: Jun 2010
Looks like you don't have SDL set up properly inside MinGW. I can't help you here (I don't have MinGW), but you might just try a web search for
undefined reference to `SDL_main(int, char**)' +mingw
or something like that.
Posts: 48
Threads: 3
Joined: Jun 2010
make sure you have the source\vcpp directory
\source\vcpp\SDL_win32_main.c is the file the compiler needs.
I use MinGW as my main compiler and no problems here.
Another thing is that MnGW is not set up properly, where did u get it from?