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

Author Topic: compiler error  (Read 2291 times)

0 Members and 1 Guest are viewing this topic.

BorisDieKlinge

  • Newbie
  • *
  • Posts: 15
    • View Profile
compiler error
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
compiler error
« Reply #1 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.
Laurent Gomila - SFML developer

BorisDieKlinge

  • Newbie
  • *
  • Posts: 15
    • View Profile
compiler error
« Reply #2 on: February 07, 2009, 09:42:03 pm »
Oh thank you ^^
I works. Topic can be closed now.
BorisDieKlinge