Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Error running Tutorial for C++  (Read 1675 times)

0 Members and 1 Guest are viewing this topic.

spasticcamel

  • Newbie
  • *
  • Posts: 1
    • View Profile
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?

krisando

  • Newbie
  • *
  • Posts: 20
    • View Profile
Error running Tutorial for C++
« Reply #1 on: April 19, 2011, 06:51:09 am »
If you're using static libraries, define SFML_STATIC.