If I want to compile the Example Code:
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Window.hpp>
////////////////////////////////////////////////////////////
/// Entry point of application
///
/// \return Application exit code
///
////////////////////////////////////////////////////////////
int main()
{
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
// Start main loop
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
the compiler displays this error messages:
undefined reference to `sf::VideoMode::VideoMode(unsigned int, unsigned int, unsigned int)'|
undefined reference to `sf::Window::Window(sf::VideoMode, std::string const&, unsigned long, sf::WindowSettings const&)'|
undefined reference to `sf::Window::Display()'|
undefined reference to `sf::Window::~Window()'|
undefined reference to `sf::Window::~Window()'|
||=== Build finished: 5 errors, 0 warnings ===|
In Codeblocks under 'Other Linker Options' i have inserted:
-lsfml-network
-lsfml-network-d
Under Link Libraries i have inserted:
C:\Programme\CodeBlocks\MinGW\lib\libws2_32.a
and under search directories I have inserted:
C:\Programme\CodeBlocks\SFML\SFML-1.4\include
Sorry if my english isnĀ“t very good.