Nano, thanks for the help, but I was also unable to get SFML to work on CodeBlocks (Or SDL, for that matter). And Catfish, Nehe was one of the websites I visited while trying to get OpenGL to work, but like I said in the first post, no matter what advice I followed, I was unable to get it running.
I followed all the instructions given at
http://www.sfml-dev.org/tutorials/1.6/start-cb.php, but when I tried to run the code they supplied me with:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
#include <SFML/System.hpp>
#include <iostream>
int main()
{
sf::Clock Clock;
while (Clock.GetElapsedTime() < 5.f)
{
std::cout << Clock.GetElapsedTime() << std::endl;
sf::Sleep(0.5f);
}
return 0;
}
| |
I got the following error messages:
Project : Win32 Application
Compiler : GNU GCC Compiler (called directly)
Directory : C:\Users\owner\Documents\Programming\
--------------------------------------------------------------------------------
Switching to target: default
Compiling: main.cpp
Linking executable: C:\Users\owner\Documents\Programming\testing1.exe
.objs\main.o:main.cpp:(.text+0x210): undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'
.objs\main.o:main.cpp:(.text+0x258): undefined reference to `sf::Window::Window(sf::VideoMode, std::string const&, unsigned long, sf::WindowSettings const&)'
.objs\main.o:main.cpp:(.text+0x31a): undefined reference to `sf::Window::Display()'
.objs\main.o:main.cpp:(.text+0x334): undefined reference to `sf::Window::~Window()'
.objs\main.o:main.cpp:(.text+0x399): undefined reference to `sf::Window::~Window()'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 1 seconds)