need help

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
Habari
Novice
Novice
Posts: 249
Joined: Sun Nov 25, 2007 5:04 pm

need help

Post by Habari » Wed Mar 26, 2008 9:41 pm

i get the following error wen compiling

Code: Select all

Project   : The Mana World
Compiler  : GNU GCC Compiler (called directly)
Directory : C:\Documents and Settings\Thomas\Desktop\tmw\
--------------------------------------------------------------------------------
Switching to target: default
Linking executable: tmw.exe
C:\Program Files\CodeBlocks\lib/libSDLmain.a(SDL_win32_main.o): In function `console_main':
C:/msys/home/eugenio/SDL-1.2.12/./src/main/win32/SDL_win32_main.c:217: undefined reference to `SDL_main'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)
1 errors, 0 warnings
 
User avatar
leeor_net
Novice
Novice
Posts: 180
Joined: Sun Feb 03, 2008 10:17 am
Location: Ohio, USA
Contact:

Re: need help

Post by leeor_net » Wed Mar 26, 2008 11:08 pm

That message is telling you that it can't find a link to the SDL libraries. Chances are you don't have them set up properly in the Code::Blocks environment. You really should google problems like this before asking for help as this is a very common one.
- Leeor

"Oh, no thanks. I ate a boulder on the way in." - Shrek
User avatar
ElvenProgrammer
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Re: need help

Post by ElvenProgrammer » Thu Mar 27, 2008 10:39 am

This error has already been reported by matt. I tested the new devpak on a clean system and it worked for me. So I suppose it's just some remnants of old installations. Considering also latest devpak comes with SDL 1.2.13.
You should try a clean build environment.
Post Reply