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

Author Topic: Can't get Visual Studio 2013 to link to lib files [SOLVED]  (Read 1544 times)

0 Members and 1 Guest are viewing this topic.

codychilders

  • Newbie
  • *
  • Posts: 3
    • View Profile
This probably has a simple answer and I apologize for that, but I've spent several hours googling and searching this forum and trying things and I just can not get Visual Studio to talk to SFML as described in this tutorial: http://www.sfml-dev.org/tutorials/2.3/start-vc.php

The code, error, settings, and visual studio version are all in the attached images.

Note: the Release version of the linker input settings looks the same, but they are all missing the "-d" suffix in the filename.

Any suggestions as to what I might be overlooking so I can start this project would be greatly appreciated!
« Last Edit: May 17, 2015, 04:04:44 am by codychilders »

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Can't get Visual Studio 2013 to link to lib files
« Reply #1 on: May 17, 2015, 03:20:58 am »
My guess would be that you created a Windows application instead of a console or blank one.

Try:
go to Project Settings->Configuration Properties->Linker->System and changing SubSystem to Console (/SUBSYSTEM:CONSOLE)
or
In Project Settings->Configuration Properties->Linker->Input, add to the list in Additional Dependencies these: sfml-main.lib (debug build) and sfml-main.lib (release build)

It does mention this in that tutorial (just below the piece of code) ;)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

codychilders

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Can't get Visual Studio 2013 to link to lib files
« Reply #2 on: May 17, 2015, 03:45:25 am »
This helped.  Now it gives me an error about sfml-graphics-d-2.dll is missing and won't run the program.  It is definitely in the folder though.

codychilders

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Can't get Visual Studio 2013 to link to lib files
« Reply #3 on: May 17, 2015, 04:04:31 am »
I just tried putting all the DLLs in the folder and the demo worked.  Thanks for the help!

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Can't get Visual Studio 2013 to link to lib files [SOLVED]
« Reply #4 on: May 17, 2015, 09:54:01 pm »
You're welcome. Have fun with SFML! :)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*