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

Author Topic: SFML Game Book (github code) Run-time error & LNK2019 error.  (Read 1139 times)

0 Members and 1 Guest are viewing this topic.

charliesnike

  • Newbie
  • *
  • Posts: 10
    • View Profile
SFML Game Book (github code) Run-time error & LNK2019 error.
« on: November 23, 2014, 11:53:29 am »
So I got the github code from Laurent, ran it through CMake for VS12 and everything seems to have worked out, I went to chapter 2 (where I'm at on the book right now) and fitted in the additional SFML compiler includes and linker libraries + resources.

Now I had to place the debug dlls here:



And running the thing in release slapped me in the face with a ton of LNK2019 errors which I'm not even gonna bother with right this moment.

In debug, the execution dies out right were the breakpoint is set:



I'm assuming this is a directory issue, however I have no clue where I should be putting the stuff.  I used CMake to generate everything in the same folder (source and target are the same) but it clearly didn't pick them up...

Any clue about this, and whether or not the CMake caused an error or if this is something normal that should be taken care of prior to compilation?

Cheers

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6276
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFML Game Book (github code) Run-time error & LNK2019 error.
« Reply #1 on: November 23, 2014, 12:24:21 pm »
DLLs are dynamic libraries and thus relevant only at load time (when the application starts), not at link time (when you get your linker errors).

Since you don't post the linker errors, I can't say anything more useful than: make sure you link SFML correctly. There is a ReadMe.txt in the repo which explains everything step by step; read it carefully.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: