SFML community forums

Help => General => Topic started by: BorisDieKlinge on February 07, 2009, 08:24:13 pm

Title: compiler error
Post by: BorisDieKlinge on February 07, 2009, 08:24:13 pm
Hallo :-)
I've got a problem with the sf::Sprite class using the IDE code::blocks 8.02.

When I compile the graphics-sprite.cpp i downloaded from the tutorial the following error will appear:

main.cpp: variable 'vtable for sf::Sprite' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.

I would be happy if anybody could help me. thx for reading.
BorisDieKlinge
Title: compiler error
Post by: Laurent on February 07, 2009, 08:57:33 pm
You have to define SFML_DYNAMIC if you're using the dynamic version of the SFML libraries. This is explained in the "Getting started" tutorial.
Title: compiler error
Post by: BorisDieKlinge on February 07, 2009, 09:42:03 pm
Oh thank you ^^
I works. Topic can be closed now.
BorisDieKlinge