Can't build on Windows
Started by yener90




1 posts in this topic
yener90
Member


0
3 posts 1 threads Joined: Mar 2018
03-27-2018, 09:59 PM -
#1
Hello,

I am using Visual Studio 2015 and all the required files and can't build project.
I get following error:
Code:
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_BitBlt referenced in function "public: virtual enum VkResult __cdecl vk::swapchain_WIN32::present(unsigned int)" (?present@swapchain_WIN32@vk@@UEAA?AW4VkResult@@I@Z)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_CreateCompatibleDC referenced in function "public: virtual bool __cdecl vk::swapchain_WIN32::init(void)" (?init@swapchain_WIN32@vk@@UEAA_NXZ)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_DeleteDC referenced in function "public: virtual void __cdecl vk::swapchain_WIN32::destroy(bool)" (?destroy@swapchain_WIN32@vk@@UEAAX_N@Z)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_DeleteObject referenced in function "public: virtual void __cdecl vk::swapchain_WIN32::destroy(bool)" (?destroy@swapchain_WIN32@vk@@UEAAX_N@Z)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_SelectObject referenced in function "public: virtual bool __cdecl vk::swapchain_WIN32::init(void)" (?init@swapchain_WIN32@vk@@UEAA_NXZ)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_CreateDIBSection referenced in function "public: virtual bool __cdecl vk::swapchain_WIN32::init(void)" (?init@swapchain_WIN32@vk@@UEAA_NXZ)
VKGSRender.lib(VKGSRender.obj) : error LNK2019: unresolved external symbol __imp_GdiFlush referenced in function "public: virtual enum VkResult __cdecl vk::swapchain_WIN32::present(unsigned int)" (?present@swapchain_WIN32@vk@@UEAA?AW4VkResult@@I@Z)

Also for building of VKGSRender "/bigobj" parameter is required. Don't know if the problem is related to this.

Regards
Yener
AlexAltea
Member


0
1 posts 0 threads Joined: Sep 2018
09-18-2018, 02:26 PM -
#2
Most likely you are building under the default "Debug - LLVM" configuration, which has some issues. Change the configuration to "Debug", "Release" or "Release - LLVM".

Alternatively, you can fix the issues on "Debug - LLVM" by:
1. Adding the `/bigobj` option under the project: VKGSRender -> Properties -> C/C++ -> Command Line -> Additional Options (as you already did).
2. Adding the `gdi32.lib` library under the project: rpcs3 -> Properties -> Linker -> Input -> Additional Dependencies.


Forum Jump:


Users browsing this thread: 2 Guest(s)