Zeotronic
February 14th, 2008, 05:45 PM
Recently... today, a few minutes ago in fact, I decided that I no longer liked Ajunta, my reasons for this are too many to explain, and too few to think of. Anyways, I have decided that instead of Anjuta I would rather compile in Terminal and code in some other, relitively simple IDE. I have seen Code Blocks in recent misadventures that forced me into Windows, and it seems like more than I want, and overall I cant understand it anyways.
I have looked at the numerous threads on this forum that demonstrate how to compile with Terminal, however when I try to do it I suffer errors which from what I can tell, suggest that it isn't including various headers that my program utilizes.
make main
g++ -g -O2 main.cc -o main
/tmp/ccjY9NZW.o: In function `__static_initialization_and_destruction_0':
/home/dusk/Projects/KeyValues/src/main.cc:20: undefined reference to `SDL_NumJoysticks'
/tmp/ccjY9NZW.o: In function `Screen_Text(long, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long)':
/home/dusk/Projects/KeyValues/src/main.cc:183: undefined reference to `SDL_UpperBlit'
/tmp/ccjY9NZW.o: In function `dseInputMaster()':
/home/dusk/Projects/KeyValues/src/main.cc:150: undefined reference to `SDL_PollEvent'
/home/dusk/Projects/KeyValues/src/main.cc:150: undefined reference to `SDL_PollEvent'
/tmp/ccjY9NZW.o: In function `Load_Image(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
/home/dusk/Projects/KeyValues/src/main.cc:42: undefined reference to `IMG_Load'
/tmp/ccjY9NZW.o: In function `main':
/home/dusk/Projects/KeyValues/src/main.cc:202: undefined reference to `SDL_Init'
/home/dusk/Projects/KeyValues/src/main.cc:203: undefined reference to `SDL_SetVideoMode'
/home/dusk/Projects/KeyValues/src/main.cc:204: undefined reference to `SDL_WM_SetCaption'
/home/dusk/Projects/KeyValues/src/main.cc:205: undefined reference to `SDL_initFramerate'
/home/dusk/Projects/KeyValues/src/main.cc:207: undefined reference to `SDL_JoystickOpen'
/home/dusk/Projects/KeyValues/src/main.cc:208: undefined reference to `SDL_JoystickOpen'
/home/dusk/Projects/KeyValues/src/main.cc:240: undefined reference to `SDL_Flip'
/home/dusk/Projects/KeyValues/src/main.cc:241: undefined reference to `SDL_framerateDelay'
/home/dusk/Projects/KeyValues/src/main.cc:228: undefined reference to `boxRGBA'
/home/dusk/Projects/KeyValues/src/main.cc:243: undefined reference to `SDL_FreeSurface'
/home/dusk/Projects/KeyValues/src/main.cc:245: undefined reference to `SDL_Quit'
/tmp/ccjY9NZW.o: In function `Load_Image(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
/home/dusk/Projects/KeyValues/src/main.cc:44: undefined reference to `SDL_DisplayFormat'
collect2: ld returned 1 exit status
make: *** [main] Error 1
dusk@zeomatrix:~/Projects/KeyValues/src$
I had compiled the code before in Anjuta, so I would imagine its all correct.
What IDEs can you reccomend using in conjunction with Terminal, and what am I doing wrong?
I have looked at the numerous threads on this forum that demonstrate how to compile with Terminal, however when I try to do it I suffer errors which from what I can tell, suggest that it isn't including various headers that my program utilizes.
make main
g++ -g -O2 main.cc -o main
/tmp/ccjY9NZW.o: In function `__static_initialization_and_destruction_0':
/home/dusk/Projects/KeyValues/src/main.cc:20: undefined reference to `SDL_NumJoysticks'
/tmp/ccjY9NZW.o: In function `Screen_Text(long, long, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, unsigned long)':
/home/dusk/Projects/KeyValues/src/main.cc:183: undefined reference to `SDL_UpperBlit'
/tmp/ccjY9NZW.o: In function `dseInputMaster()':
/home/dusk/Projects/KeyValues/src/main.cc:150: undefined reference to `SDL_PollEvent'
/home/dusk/Projects/KeyValues/src/main.cc:150: undefined reference to `SDL_PollEvent'
/tmp/ccjY9NZW.o: In function `Load_Image(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
/home/dusk/Projects/KeyValues/src/main.cc:42: undefined reference to `IMG_Load'
/tmp/ccjY9NZW.o: In function `main':
/home/dusk/Projects/KeyValues/src/main.cc:202: undefined reference to `SDL_Init'
/home/dusk/Projects/KeyValues/src/main.cc:203: undefined reference to `SDL_SetVideoMode'
/home/dusk/Projects/KeyValues/src/main.cc:204: undefined reference to `SDL_WM_SetCaption'
/home/dusk/Projects/KeyValues/src/main.cc:205: undefined reference to `SDL_initFramerate'
/home/dusk/Projects/KeyValues/src/main.cc:207: undefined reference to `SDL_JoystickOpen'
/home/dusk/Projects/KeyValues/src/main.cc:208: undefined reference to `SDL_JoystickOpen'
/home/dusk/Projects/KeyValues/src/main.cc:240: undefined reference to `SDL_Flip'
/home/dusk/Projects/KeyValues/src/main.cc:241: undefined reference to `SDL_framerateDelay'
/home/dusk/Projects/KeyValues/src/main.cc:228: undefined reference to `boxRGBA'
/home/dusk/Projects/KeyValues/src/main.cc:243: undefined reference to `SDL_FreeSurface'
/home/dusk/Projects/KeyValues/src/main.cc:245: undefined reference to `SDL_Quit'
/tmp/ccjY9NZW.o: In function `Load_Image(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)':
/home/dusk/Projects/KeyValues/src/main.cc:44: undefined reference to `SDL_DisplayFormat'
collect2: ld returned 1 exit status
make: *** [main] Error 1
dusk@zeomatrix:~/Projects/KeyValues/src$
I had compiled the code before in Anjuta, so I would imagine its all correct.
What IDEs can you reccomend using in conjunction with Terminal, and what am I doing wrong?