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: 25 Nov 2007, 16:04

need help

Post by Habari »

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: 03 Feb 2008, 09:17
Location: Ohio, USA
Contact:

Re: need help

Post by leeor_net »

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
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Re: need help

Post by ElvenProgrammer »

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