obj\Debug\main.o||In function `main':|
C:\Program Files\CodeBlocks\SFML training\main.cpp|7|undefined reference to `_imp___ZN2sf5ClockC1Ev'|
C:\Program Files\CodeBlocks\SFML training\main.cpp|10|undefined reference to `_imp___ZNK2sf5Clock14GetElapsedTimeEv'|
C:\Program Files\CodeBlocks\SFML training\main.cpp|11|undefined reference to `_imp___ZN2sf5SleepEj'|
C:\Program Files\CodeBlocks\SFML training\main.cpp|8|undefined reference to `_imp___ZNK2sf5Clock14GetElapsedTimeEv'|
||=== Build finished: 4 errors, 0 warnings ===|
What is the problem? I followed the tutorial exactly
Open your project's build options, then go to the Linker settings tab. In Other link options, add the SFML libraries you are using, with the "-l" directive.
That paragraph and the picture below it shows you what you need to do.
Oh. That's dumb. You'd think it would tell you to start coding AFTER they had you set it up. now I'm getting the error:
C:\Program Files\CodeBlocks\SFML training\main.cpp|11|undefined reference to `_imp___ZN2sf5SleepEj'|.
Just that one, all the others are gone.
Cmake basically makes something that makes the libs for you. Like a makefile for GCC/others or a Visual Studio project. You basically just run that and you'll get the libs out of it.