1
General / Problem with declaring strings
« on: December 17, 2011, 12:34:44 am »
[Delated previous question].
I gone back to C::B, as SFML works fine with that. I got another error, that I was googling about for quite a time and there is no answer. I have this code:
and it gives me error:
I have no idea what to do with it... I linked proper libraries. What is going wrong?
I gone back to C::B, as SFML works fine with that. I got another error, that I was googling about for quite a time and there is no answer. I have this code:
Quote
#include <iostream>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
using namespace sf;
int main()
{
sf::String Text("Hello SFML");
return 0;
}
and it gives me error:
Quote
Undefined reference to 'sf::Unicode::Text::Text(char const*)'
||Info: resolving vtable for sf::String by linking to __imp___ZTVN2sf6StringE |
I have no idea what to do with it... I linked proper libraries. What is going wrong?