Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [SOLVED] Tier 2 link error only for release.

Author
Message
Telemac
7
Years of Service
User Offline
Joined: 9th Feb 2017
Playing:
Posted: 6th Jan 2022 12:32
Hello,

i try with Visual Studio 2019 and 2022 all was fine with Debug.
But with Release linker make this error LNK1181 unbale to open OpenGL32.lib (opengl32.lib is in path and i also try to copy it in my project folder)

Any suggestion ?

The author of this post has marked a post as an answer.

Go to answer

PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 7th Jan 2022 06:04 Edited at: 7th Jan 2022 06:06
This post has been marked by the post author as the answer.
make sure the path to the library's folders is set in project settings

Linker>>General>>Additional Library Directories

x86:
..\platform\windows\Lib\VS2015\Release
..\platform\windows\Lib\VS2015\Debug

x64:
..\platform\windows\Lib\VS2015\Release64
..\platform\windows\Lib\VS2015\Debug64

These paths should be set by default in the project template, have you made changes to the template?


are you using the default Tier2 package?

if you compiled from the repo you need to compile all platforms and configurations, go menu Build>>Batch Build and check select all, and build

if you added a platform (x86/x64) then this can cause headaches, make sure correct linker paths are set for each platform (as above) and check environment variables in VC++ Directories

x64


x86
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee

Attachments

Login to view attachments
Telemac
7
Years of Service
User Offline
Joined: 9th Feb 2017
Playing:
Posted: 7th Jan 2022 09:04
Thanks )

Was "Library Directories" that was wrong :WindowsSdk_71A_LibraryPath_x64 is outdated i replaced with correct path "WindowsSDK_LibraryPath_x64" and now all compile/link fine.

Login to post a reply

Server time is: 2024-04-16 12:12:46
Your offset time is: 2024-04-16 12:12:46