K-Zodron
March 31st, 2006, 07:15 PM
Hello!
I have happily been using Ubuntu for a week or so, and now I would like to develop games using C++ and SDL again, but I have smashed myself into some problems ](*,)
I installed the necessary libsdl libraries, they are on the computer fine..but when I try to compile anything, I get errors like this:
rpg_main.cpp:(.text+0x31): undefined reference to `operator new(unsigned int)'
rpg_main.cpp:(.text+0x44): undefined reference to `operator new(unsigned int)'
/tmp/ccrwZtBT.o: In function `__tcf_0':
rpg_main.cpp:(.text+0x17b): undefined reference to `std::ios_base::Init::~Init()'
/tmp/ccrwZtBT.o: In function `__static_initialization_and_destruction_0(int, int)':
rpg_main.cpp:(.text+0x1a8): undefined reference to `std::ios_base::Init::Init()'
Even the most simple int main() { cout << "Hi"; return 0; } doesn't wanna compile without at least 6 errors :/
I tried reinstalling the SDL libraries..no luck :(
You guys got any ideas? Is there some specific header that would help here? Should I get the libraries from somewhere else then the Synaptic package manager program?
Yours,
K-Zodron
I have happily been using Ubuntu for a week or so, and now I would like to develop games using C++ and SDL again, but I have smashed myself into some problems ](*,)
I installed the necessary libsdl libraries, they are on the computer fine..but when I try to compile anything, I get errors like this:
rpg_main.cpp:(.text+0x31): undefined reference to `operator new(unsigned int)'
rpg_main.cpp:(.text+0x44): undefined reference to `operator new(unsigned int)'
/tmp/ccrwZtBT.o: In function `__tcf_0':
rpg_main.cpp:(.text+0x17b): undefined reference to `std::ios_base::Init::~Init()'
/tmp/ccrwZtBT.o: In function `__static_initialization_and_destruction_0(int, int)':
rpg_main.cpp:(.text+0x1a8): undefined reference to `std::ios_base::Init::Init()'
Even the most simple int main() { cout << "Hi"; return 0; } doesn't wanna compile without at least 6 errors :/
I tried reinstalling the SDL libraries..no luck :(
You guys got any ideas? Is there some specific header that would help here? Should I get the libraries from somewhere else then the Synaptic package manager program?
Yours,
K-Zodron