I am a C++ newbie, so please don't trow a lot of techy stuff at me...
I'm trying to set up Code::Blocks with SFML. It works with dynamic way, but I want to do it with static libs. My project has 2 folders: "include" and "lib" that I copied from SFML downloaded zip. I tried everything with GCC 4.7.1 TDM (SJLJ) - 32-bit, GCC 4.8.1 TDM (SJLJ) - 32-bit and GCC 4.9.2 MinGW (DW2) - 32-bit version SFML.
Anyway I set Code::Blocks this way:
Build Options:
- (Shared) Project Options:
- > Compiler Settings - > #defines: SFML_STATIC
- > Linker Settings: "freetype"; "jpeg"; "gdi32"; "opengl32"; "winmm"
- > Search Directories: - Compiler "include"; - Linker "libs"
- Debug Options:
- > Linker Settings: "sfml-graphics-s-d"; "sfml-window-s-d"; "sfml-system-s-d"
- Release Options:
- > Linker Settings: "sfml-graphics-s"; "sfml-window-s"; "sfml-system-s"
main.cpp:
#include "SFML/System.hpp"
#include "SFML/Window.hpp"
#include "SFML/Graphics.hpp"
int main() {
sf::RenderWindow fWindow(sf::VideoMode(200, 200), "Yes Finally!");
return EXIT_SUCCESS;
}
Code::Blocks version: 13.12
SDK Version: 1.19.0
Build: Dec 27 2013, 12:58:38 - wx2.8.12 (Windows, unicode) - 32 bit