SFML community forums

Help => General => Topic started by: charliesnike on November 23, 2014, 11:53:29 am

Title: SFML Game Book (github code) Run-time error & LNK2019 error.
Post by: charliesnike 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:

(http://i.imgur.com/qL8IhDA.png)

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:

(http://i.imgur.com/TWICXF0.png)

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
Title: Re: SFML Game Book (github code) Run-time error & LNK2019 error.
Post by: Nexus 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.