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

Author Topic: VS2013 - release build error LNK1181  (Read 2049 times)

0 Members and 1 Guest are viewing this topic.

F2CPP

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • StackOverflow
VS2013 - release build error LNK1181
« on: May 09, 2014, 05:10:10 pm »
1. built the SFML 2.1 files using CMAKE into separate /debug and /build folders;
2. referenced the include and library folders in the vs2013 project separately for debug and release config to its respective folder, with each config's correct path showing up in additional library directory;
3. copied the .dlls into the project's executive output's respective folder for both configs;
4. built the debug version fine;
5. the release build shows 'lnk1181 cannot open input file "sfml-audio.dll"' (which is the top one in the list of the additional [build] dependencies).

search turns up many references relating to linker errors but i don't see what i'm missing. any help much appreciated, thanks

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: VS2013 - release build error LNK1181
« Reply #1 on: May 09, 2014, 05:39:28 pm »
It simply can't find the DLL. Check your release config directory if the audio module dll exists.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

F2CPP

  • Newbie
  • *
  • Posts: 14
    • View Profile
    • StackOverflow
Re: VS2013 - release build error LNK1181
« Reply #2 on: May 09, 2014, 06:40:09 pm »
ok, the .dlls (and .libs) created by CMAKE (including sfml-audio-2.dll and sfml-audio.lib) are in the build directory, which is referenced in the project's additional library directory for the release config i.e. C:\SFML-2.1-build\lib. and a copy of those .dlls is in the project's release folder.

update/resolution: unlike in the debug config's project settings, the release config's linker/input/additional dependencies/ still referred to .dlls (including "sfml-audio.dll") as opposed to, correctly, .lib files (including "sfml-audio.lib")
« Last Edit: May 11, 2014, 10:29:38 pm by F2CPP »