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

Author Topic: Need help getting SFML to work for Code::Blocks  (Read 1880 times)

0 Members and 1 Guest are viewing this topic.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Need help getting SFML to work for Code::Blocks
« on: January 29, 2012, 09:43:00 pm »
I'm trying to get 1.6 to work on code blocks but for some reason any time I try to use any of the code I get errors.

https://legacy.sfmluploads.org/file/102
What's the exact order the 5 SFML lib files should be in?

Meantime for some reason CMake can't find code blocks on my computer so I can't even try to get SFML 2.0 working for it. :(

I'm guessing it has everything to do with where I put CMake and Code blocks but I'm not sure on that note.

CMake and Code blocks are on my D drive, could this be causing my issues or is it just me?
I have many ideas but need the help of others to find way to make use of them.

TechRogue

  • Jr. Member
  • **
  • Posts: 63
    • View Profile
Need help getting SFML to work for Code::Blocks
« Reply #1 on: January 30, 2012, 01:34:59 am »
I have mine in this order (Also using CB):

Quote

system
graphics
window
audio
network



Have you read the tutorial for setting it up for Code::Blocks? It has the correct order for the libraries:
http://www.sfml-dev.org/tutorials/1.6/start-cb.php

mateandmetal

  • Full Member
  • ***
  • Posts: 171
  • The bird is the word
    • View Profile
    • my blog
Re: Need help getting SFML to work for Code::Blocks
« Reply #2 on: January 30, 2012, 06:29:54 am »
Quote from: "StormWingDelta"
... CMake can't find code blocks on my computer so I can't even try to get SFML 2.0 working for it. :( ...


You must include your CMake\bin directory (and probably your MinGW\bin too) in your System Path:

http://geekswithblogs.net/renso/archive/2009/10/21/how-to-set-the-windows-path-in-windows-7.aspx
- Mate (beverage) addict
- Heavy metal addict _lml
- SFML 2 addict
- My first (and free) game: BichingISH!

 

anything