Hi,
I'm running on Windows 7, using the Netbeans IDE with the MinGW compiler. SFML compiles, builds, and runs fine when I use any of the headers or functions that do not require opengl. However, if I have a program that is as simple as this:
#include <cstdlib>
#include <SFML/Graphics.hpp>
int main( int argc, char** argv ) {
sf::RenderTexture myTexture;
return EXIT_SUCCESS;
}
Then I get a huge stack of errors in the command prompt (Note, these are only a few of them):
...
g++ -o dist/Debug/MinGW-Windows/mingwtest build/Debug/MinGW-Windows/main.o -L/C/GameDev/SFML-2.2/lib -lsfml-system-s-d -lsfml-window-s-d -lsfml-audio-s-d -lsfml-graphics-s-d -lsfml-network-s-d -lboost_regex
c:/GameDev/SFML-2.2/lib/libsfml-graphics-s-d.a(RenderTexture.cpp.obj): In function `sf::RenderTexture::create(unsigned int, unsigned int, bool)':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderTexture.cpp:57: undefined reference to `sf::err()'
c:/GameDev/SFML-2.2/lib/libsfml-graphics-s-d.a(RenderTarget.cpp.obj): In function `sf::RenderTarget::clear(sf::Color const&)':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderTarget.cpp:99: undefined reference to `glClearColor'
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderTarget.cpp:100: undefined reference to `glClear'
...
All the errors seems to reference openGL functions at a location that does not exist on my computer (I don't have a D:/ drive).
I don't really know what these errors mean or how to go about fixing them, or know anything about OpenGL. Sorry if this is a stupid question, but I'm at a loss.
Thanks,
Deathvango.