RPCS3 Forums

Full Version: Can't build on Windows
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.