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

Author Topic: C++ SFML Linking / Unknown Problem  (Read 2512 times)

0 Members and 1 Guest are viewing this topic.

VisualProgrammer

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://wav64.blogspot.com
C++ SFML Linking / Unknown Problem
« on: August 14, 2011, 02:08:25 pm »
Hi There,

I'm pretty new to SFML Programming with C++ and i just followed some tutorials on the site' where the explain where you can put the SFML Libraries and link them to you're project. But unfortunately when i compile i dont see nothing or i get a error message that sfml-system "-s"-d" are missing from my computer, and i didn't get any dynamic libraries with me: downloading the full source development kit. I've followed everything widely from the tutorial section and some other videos on YouTube where they put the sfml-system "-s"-d" lib in the Debug Category | ActiveWin32 Category | etc.. So whats the problem?
reinterpret_cast ;;

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
C++ SFML Linking / Unknown Problem
« Reply #1 on: August 14, 2011, 03:03:18 pm »
What IDE/compiler? Which SFML version?

The ones with "-s" are static libraries, they don't need DLLs. The libraries without "-s" are dynamic/shared libraries, you need to put the directory of the DLLs to the path environment variable.

By the way, there are hundreds of topics like this on the forum, the search could help you, too.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

VisualProgrammer

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://wav64.blogspot.com
C++ SFML Linking / Unknown Problem
« Reply #2 on: August 14, 2011, 03:13:38 pm »
Quote from: "Nexus"
What IDE/compiler? Which SFML version?

The ones with "-s" are static libraries, they don't need DLLs. The libraries without "-s" are dynamic/shared libraries, you need to put the directory of the DLLs to the path environment variable.

By the way, there are hundreds of topics like this on the forum, the search could help you, too.


I'm using Visual Studio C++ Express 2010 and SMFL Version 1.6 "Current Version" it says

Source: http://www.sfml-dev.org/tutorials/
reinterpret_cast ;;

Serapth

  • Full Member
  • ***
  • Posts: 105
    • View Profile
C++ SFML Linking / Unknown Problem
« Reply #3 on: August 17, 2011, 02:14:32 am »
Part of a tutorial I am writing, but isn't quite ready for prime time has exactly the answers you are looking for.

I can use you as a gueinea pig, let me know if it helps you out.

Part One

Part Two


Visual Studio 2010 has a few quirks for a beginner developer to get using SFML.  I hope its not an issue to provide compiled for 2k10 binaries?

VisualProgrammer

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://wav64.blogspot.com
C++ SFML Linking / Unknown Problem
« Reply #4 on: August 17, 2011, 11:56:14 pm »
Well you know, all of these shit's sfml-system lib by placing it where you solution is can be easily done by placing it in the real directory:

C:\\Windows\\System\\ place all dll's there

And I've all ready tried that my friend. Let's say everything i just get that 0x5 error. when i start playing sfml/graphics.. Don't know about the rest yet because im now focusing on that now.


Code: [Select]
the application was unable to start correctly (0xc0150002) click ok to close etc...
reinterpret_cast ;;

Serapth

  • Full Member
  • ***
  • Posts: 105
    • View Profile
C++ SFML Linking / Unknown Problem
« Reply #5 on: August 18, 2011, 12:38:41 am »
Oh trust me, you don't want to put development libraries in the system32 folder, it is going to make your debugging process an absolute nightmare!  It adds a whole layer of "which dll am I running???"

Granted, dll loading preference goes
1) implicitly defined locations
2) executables run directory
3) system32 directory
4) in system path

However, sometimes figuring out just where the heck the executable run directory actually is can be a nightmare!  

By putting them in System32, it is going to be run by default if you made a mistake.

VisualProgrammer

  • Newbie
  • *
  • Posts: 6
    • View Profile
    • http://wav64.blogspot.com
C++ SFML Linking / Unknown Problem
« Reply #6 on: August 18, 2011, 01:55:19 am »
I didn't say system32, i said system.
reinterpret_cast ;;

Serapth

  • Full Member
  • ***
  • Posts: 105
    • View Profile
C++ SFML Linking / Unknown Problem
« Reply #7 on: August 18, 2011, 03:18:48 am »
Quote from: "VisualProgrammer"
I didn't say system32, i said system.


Same deal, except that system has been deprecated.  System is simply the legacy version of System32 from the win32 days.

Same end result.