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

Author Topic: cant get sfml 2 to work on code::blocks  (Read 2664 times)

0 Members and 1 Guest are viewing this topic.

mvl

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • Email
cant get sfml 2 to work on code::blocks
« on: March 21, 2013, 09:16:02 pm »
Hello I have a problem with instaling sfml 2 i compiled it and stuf by folowing the tutorials on the website:
compiling sfml with cmake,
instaling sfml 2 on code::blocks
but when I run the code from the tutorial on instaling sfml 2 on code blocks
I get an error from the moment the sf::Renderwindow has been called windows sais the program stopped working I recompiled it 3 times it stil happens this is my first Topic so sory if I forget somting

Christopher Jozwiak

  • Newbie
  • *
  • Posts: 48
    • View Profile
    • Blog
    • Email
Re: cant get sfml 2 to work on code::blocks
« Reply #1 on: March 21, 2013, 09:39:45 pm »
Did you select Code:blocks-MinGW Makefiles when in configuration for cmake-gui?
Noob C++ Programmer.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: cant get sfml 2 to work on code::blocks
« Reply #2 on: March 21, 2013, 10:36:37 pm »
Well we're missing some important information, like the OS, the exact compiler and the exact SFML version. Also you should tell us, how you've setup Code::Blocks. Are you mixing Debug and Release modes? Are you mixing static and dynamic libraries? What happens if you run it via the debugger? ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Imbajoe

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: cant get sfml 2 to work on code::blocks
« Reply #3 on: March 22, 2013, 02:14:05 am »
I'm going to guess that you somewhat recently downloaded Code::Blocks w/ MinGW which comes with a version of GCC incompatible with the official SFML 2.0 RC

I would try recompiling with the nightly builds done by eXpl0it3r here above me. In his sig

mvl

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • Email
Re: cant get sfml 2 to work on code::blocks
« Reply #4 on: March 22, 2013, 05:04:36 pm »
first yes I did select the code::blocks-mingw makefiles
second my OS currently windows vista
I think the minGW compiler from the link with sfml 1.6 (I don't know if it cout couse errors becouse i compiled it with mingw)
sfml I don't know the exact version sorry I don't know how to see that
for Imbajoe witch version must i download then there are a couple
I link dynamicly so everything must be good
I always take debug
When I run in debug mode I get a "Call stack"  window with

nr   Address              function                                                   
0    689829B1           sf::String::String(char const*, std::locale const&)()   
file
D:\projects\c++\sfml\tests\sfmltest2\sfml-system-2.dll

another thing I fergot to ask is :is it normal you need to set the search directories compiler to the include folder in sfml's source?

O and thanks for helping

mvl

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • Email
Re: cant get sfml 2 to work on code::blocks
« Reply #5 on: March 22, 2013, 06:30:10 pm »
I solved it I think it was becouse I compiled it with the compiler from code::blocks but had code::blocks set to the old sfml recomended compiler and needed to remove that compiler so I reset the compiler in setings renamed the folder and it compiles fine now