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

Author Topic: [Solved] Problem with sf::String  (Read 2529 times)

0 Members and 1 Guest are viewing this topic.

Fabi_1986

  • Newbie
  • *
  • Posts: 3
    • View Profile
[Solved] Problem with sf::String
« on: June 28, 2008, 03:52:56 pm »
Hi,

i have a problem with sf::String. When i compile "graphics-fonts.cpp" from the tutorial "Displaying Text" i get:


Info: resolving vtable for sf::Stringby linking to __imp___ZTVN2sf6StringE (auto-import)
.objs\main.o:main.cpp:(.text$_ZN2sf6StringD1Ev[sf::String::~String()]+0x3a): variable 'vtable for sf::String' can't be auto-imported. Please read the documentation for ld's --enable-auto-import for details.
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)



I use Code::Blocks and SFML 1.3 the other example quellcodes works fine

i hope you can help me[/b]

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[Solved] Problem with sf::String
« Reply #1 on: June 28, 2008, 04:42:59 pm »
If you link SFML dynamically you have to define the SFML_DYNAMIC macro in your project. Otherwise if you don't care, link to the static libraries.
Laurent Gomila - SFML developer

Fabi_1986

  • Newbie
  • *
  • Posts: 3
    • View Profile
[Solved] Problem with sf::String
« Reply #2 on: June 28, 2008, 06:06:16 pm »
Thank you for the answer but it doesn´t work :(
i have link to the static libary

Have you another idea?

Fabi_1986

  • Newbie
  • *
  • Posts: 3
    • View Profile
[Solved] Problem with sf::String
« Reply #3 on: June 28, 2008, 06:37:32 pm »
I have found the problem.
when i include  <SFML/Graphics/String.hpp>
works it but normaly must this work with the Graphics.hpp only

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
[Solved] Problem with sf::String
« Reply #4 on: June 29, 2008, 07:10:47 am »
If including <SFML/Graphics/String.hpp> fixes the problem, then you should reinstall properly SFML.
Laurent Gomila - SFML developer