1
General / Error running Tutorial for C++
« on: April 19, 2011, 03:14:38 am »
Hello,
I am new to C++ and wanted to learn SFML. I wanted to create a game in the long run. I tried going through "Tutorial - Getting started - SFML and Code::Blocks (MinGW)" and followed the instructions but when I got to "Your program should now compile, link and run fine", it didn't run fine. It gave me the following error:
undefined reference to `_imp___ZN2sf5ClockC1Ev'
undefined reference to `_imp___ZNK2sf5Clock14GetElapsedTimeEv'
undefined reference to `_imp___ZN2sf5SleepEf'
undefined reference to `_imp___ZNK2sf5Clock14GetElapsedTimeEv' undefined reference to `WinMain@16'
I deleted the File and Line part of the Build message and can put that back in if needed. And suggestions?
I am new to C++ and wanted to learn SFML. I wanted to create a game in the long run. I tried going through "Tutorial - Getting started - SFML and Code::Blocks (MinGW)" and followed the instructions but when I got to "Your program should now compile, link and run fine", it didn't run fine. It gave me the following error:
undefined reference to `_imp___ZN2sf5ClockC1Ev'
undefined reference to `_imp___ZNK2sf5Clock14GetElapsedTimeEv'
undefined reference to `_imp___ZN2sf5SleepEf'
undefined reference to `_imp___ZNK2sf5Clock14GetElapsedTimeEv' undefined reference to `WinMain@16'
I deleted the File and Line part of the Build message and can put that back in if needed. And suggestions?