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

Author Topic: Static Linking (2.3 & No Linker Errors) [SOLVED]  (Read 2304 times)

0 Members and 1 Guest are viewing this topic.

Cryonic

  • Newbie
  • *
  • Posts: 16
    • View Profile
Static Linking (2.3 & No Linker Errors) [SOLVED]
« on: August 05, 2015, 11:12:20 pm »
I followed the tutorial here:
http://www.sfml-dev.org/tutorials/2.3/start-vc.php

(1) I have added the following in CONFIGURATION PROPERTIES>>C/C++>>GENERAL>>ADDITIONAL INCLUDE DIRECTORIES:
C:\\Path to my SFML Include Directory

(2) I have added the following in CONFIGURATION PROPERTIES>>LINKER>>GENERAL>>ADDITIONAL LIBRARY DIRECTORIES:
C:\\Path to my SFML Lib Directory

(3) I have added the following in CONFIGURATION PROPERTIES>>C/C++>>PREPROCESSOR DEFINITIONS:
SFML_STATIC;

(4) I then added the following in CONFIGURATION PROPERTIES>>LINKER>>INPUT>>ADDITIONAL DEPENDENCIES:
sfml-window-s-d.lib; sfml-system-s-d.lib; sfml-graphics-s-d.lib; sfml-audio-s-d.lib; opengl32.lib; freetype.lib; jpeg.lib; winmm.lib; gdi32.lib; openal32.lib; flac.lib; vorbisenc.lib; vorbisfile.lib; vorbis.lib; ogg.lib; winmm.lib;

I am comparing the size of the the exe (the statically linked) to the one I had previously (the dynamically linked), and there does seem to be a size difference. Why am I still receiving an error message when I try to run it without the DLL's in the same directory?

Any help would be greatly appreciated!
« Last Edit: August 08, 2015, 06:05:25 am by SFML_Guy »

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Static Linking (2.3 & No Linker Errors)
« Reply #1 on: August 06, 2015, 08:54:18 am »
Why am I still receiving an error message when I try to run it without the DLL's in the same directory?

What error message?

And:
Quote
If you are using the sfml-audio module (regardless whether statically or dynamically), you must also copy the DLL of the external library needed by it, which is OpenAL32.dll.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Static Linking (2.3 & No Linker Errors)
« Reply #2 on: August 06, 2015, 12:11:35 pm »

What error message?
This made me giggle  ;D
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

GraphicsWhale

  • Full Member
  • ***
  • Posts: 131
    • View Profile
Re: Static Linking (2.3 & No Linker Errors)
« Reply #3 on: August 08, 2015, 10:29:57 am »