≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Unable to build CopperCube client (studio edition)
Posted by:
(you are not logged in)
Enter the missing letter in: "Interna?ional"
(you are not logged in)
Text:
[quote][b]airways[/b] wrote: I have registered Studio edition and am attempting to build the client in VS 2019. I have the DX9 Jun20 SDK installed and updated the include reference to the installed path under [b]C:\Program Files (x86)[/b] from the one at [b]D:\Programs[/b] that it defaults to. Unfortunately I'm running into this error in building flaceLib: [b] Error C2065 'PTRDIFF_MAX': undeclared identifier flaceLib C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.28.29333\include\algorithm 49 [/b] Line 49 is the return statement of this function: [code] // STRUCT TEMPLATE _Optimistic_temporary_buffer template <class _Diff> constexpr ptrdiff_t _Temporary_buffer_size(const _Diff _Value) noexcept { // convert an iterator difference_type to a ptrdiff_t for use in temporary buffers using _CT = common_type_t<ptrdiff_t, _Diff>; return static_cast<ptrdiff_t>((_STD min)(static_cast<_CT>(PTRDIFF_MAX), static_cast<_CT>(_Value))); } [/code] This of course causes a link error when trying to link win32player: [b] Error LNK1104 cannot open file 'C:\Dev\Projects\CopperCube\windows\src\win32player\x64\Debug\flaceLib.lib' win32player C:\Dev\Projects\CopperCube\windows\src\win32player\LINK 1 [/b] Any ideas why [b]PTRDIFF_MAX[/b] would seemingly be undefined in [b]algorithm[/b]? I am not super familiar with C++ but have done a lot of C and Win32 programming so I'm not really sure what could cause this. I did try including [b]cstdint[/b] before each use of [b]algorithm[/b] but that didn't seem to help. The only other reference to this issue I could find was on a steam thread for CopperCube 5 but there was no resolution: [url]https://steamcommunity.com/app/364970/discussions/0/3938911974182600708/[/url] One possibility I've considered is that my version of the Windows SDK is too new and I need to be using either an older version of VS or an older SDK with 2019. However it's quite a task to just keep installing and trying versions of Visual Studio or SDKs until one works, and I'm not 100% convinced that is the problem anyway. Would really appreciate any help![/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact