Hi, (I had this post already in the "SFML Projekts" layer or what ever this is called)
I have a SFML Problem, I want to programm with sfml in Codeblocks but it isn't working.
I've downloaded the GCC 4.7 TDM (SJLJ) - 64 bits and I've *past tense of read* how to install ,
but is still not working. I don't realy like Codeblocks, I have Visual C++
and it is working. I only use Codeblocks on other Computer because its portable, I use it on my
USB Stick.
The Code:
#include <iostream>
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow Window(sf::VideoMode(800,600), "My Game!");
Window.setFramerateLimit(15);
while(Window.isOpen())
{
}
Window.clear();
Window.display();
}
The Error:
-------------- Build: Debug in Mein CB Projekt ---------------
mingw32-g++.exe -L..\..\SFML-2.0\lib -o "bin\Debug\Mein CB Projekt.exe" obj\Debug\main.o ..\..\SFML-2.0\lib\libsfml-graphics-d.a ..\..\SFML-2.0\lib\libsfml-window-d.a ..\..\SFML-2.0\lib\libsfml-system-d.a ..\..\SFML-2.0\lib\libsfml-main-d.a ..\..\SFML-2.0\lib\libsfml-audio-d.a ..\..\SFML-2.0\lib\libsfml-network-d.a
obj\Debug\main.o: In function `main':
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:6: undefined reference to `sf::String::String(char const*, std::locale const&)'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:6: undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:6: undefined reference to `sf::RenderWindow::RenderWindow(sf::VideoMode, sf::String const&, unsigned int, sf::ContextSettings const&)'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:6: undefined reference to `sf::RenderWindow::~RenderWindow()'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:7: undefined reference to `sf::Window::setFramerateLimit(unsigned int)'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:9: undefined reference to `sf::Window::isOpen() const'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:14: undefined reference to `sf::Color::Color(unsigned char, unsigned char, unsigned char, unsigned char)'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:14: undefined reference to `sf::RenderTarget::clear(sf::Color const&)'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:15: undefined reference to `sf::Window::display()'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:15: undefined reference to `sf::RenderWindow::~RenderWindow()'
J:/CodeBlocks-EP/Meine Projekte/Mein CB Projekt/main.cpp:15: undefined reference to `sf::RenderWindow::~RenderWindow()'
Process terminated with status 1 (0 minutes, 2 seconds)
11 errors, 0 warnings (0 minutes, 2 seconds)
Pls help me
PS: SRY for my English im in the 8 Class