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

Author Topic: DLL issues with Building / Running with VS 2015  (Read 3984 times)

0 Members and 2 Guests are viewing this topic.

general_wakatu

  • Newbie
  • *
  • Posts: 4
    • View Profile
DLL issues with Building / Running with VS 2015
« on: September 27, 2015, 03:48:16 am »
Hi all,

I am having issues linking and running a simple SFML program from the tutorial found here: http://www.sfml-dev.org/tutorials/2.3/start-vc.php

I've linked the specified libraries and the includes are all setup as specified, but when I run it I am getting an error that I am missing a .DLL.

After compiling SFML from source to run with VS2015 Enterprise's compiler, the Bin folder only contains one dll: openal32.dll. Are there supposed to be more, and if so did I generate a bad .sln file with CMake or could it be another reason? 

I've been messing with settings/files/configurations and I'm getting unresolved external errors now. The header files are recognized fine, it's just the libraries that are not working correctly.

Should I provide any screenshots or more information? Can anyone provide me with anymore insight into static linking or the .DLL issue? Thanks

I'm using DEBUG configurations and static debug library files... Ex.
« Last Edit: September 27, 2015, 06:17:34 am by general_wakatu »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
DLL issues with Building / Running with VS 2015
« Reply #1 on: September 27, 2015, 09:44:49 am »
If it tells you that you're missing a DLL, it will also tell you what DLL you're missing. So which DLL are you missing?

Keep in mind that the master branch isn't compatible with VS 2015 yet. You'll have to use the feature/vs2015 branch.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

general_wakatu

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: DLL issues with Building / Running with VS 2015
« Reply #2 on: September 27, 2015, 08:59:06 pm »
The problem is the built solution from CMake contains only one DLL so I cant even add it. The dll missing was the graphics-d.dll

Anyways, I found this guys VS2015 pre-built binary and template from this topic: http://en.sfml-dev.org/forums/index.php?topic=17455.0

Installed that and it appears to be okay but when I run that now I get an error:
"The procedure entry point __vcrt_cleanup_type_info_names could not be located in the dynamic link library VCRUNTIME140.dll."

Any ideas on this one? O_O  I even included sfml-main.dll and im running release.


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
Re: DLL issues with Building / Running with VS 2015
« Reply #3 on: September 27, 2015, 09:03:20 pm »
I uploaded the fixed VS 2015 package a few minutes ago: http://www.sfml-dev.org/download/sfml/2.3.2/
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

general_wakatu

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: DLL issues with Building / Running with VS 2015
« Reply #4 on: September 28, 2015, 06:02:55 am »
Awesome thanks a lot! I tried it, but I am still getting LNK2019 errors and unresolved externals. I will try again tomorrow when I have more time, I'm sure I'll get it to work..

I will post back tomorrow on my results  8)

general_wakatu

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: DLL issues with Building / Running with VS 2015
« Reply #5 on: September 28, 2015, 06:40:48 pm »
Success!

Made a new project, linked the debug files, threw the DLLs into the proj folder....build....and mission accomplished.

Maybe if I'm feeling brave I will try to build it myself again with cmake....last time it was not generating any DLLs into the /bin folder...

ANYWHOO. Thanks, and confirmed working. Now onto making some particle systems.....