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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DasOhmoff

Pages: 1 [2]
16
General / Re: Codeblocks portable SFML Problem
« on: June 14, 2013, 06:43:52 am »
As said in the original thread: How do your linker settings look?

You mean this?





And I defined "SFML STATIC".

17
General / Codeblocks portable SFML Problem
« on: June 13, 2013, 08:27:24 pm »
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

Pages: 1 [2]