SFML community forums

Help => Graphics => Topic started by: Fabi_1986 on June 28, 2008, 03:52:56 pm

Title: [Solved] Problem with sf::String
Post by: Fabi_1986 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]
Title: [Solved] Problem with sf::String
Post by: Laurent 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.
Title: [Solved] Problem with sf::String
Post by: Fabi_1986 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?
Title: [Solved] Problem with sf::String
Post by: Fabi_1986 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
Title: [Solved] Problem with sf::String
Post by: Laurent on June 29, 2008, 07:10:47 am
If including <SFML/Graphics/String.hpp> fixes the problem, then you should reinstall properly SFML.