Home » Developing U++ » Mac OS » x86_64 compilation error under Catalina
Re: x86_64 compilation error under Catalina [message #59327 is a reply to message #59267] |
Thu, 15 December 2022 14:48   |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
Novo wrote on Fri, 09 December 2022 05:04Compilation for MacOS is currently broken.
I am sorry. I had not noticed and did not expect that, by default, with just one flag "GUI", theide compiles the OSX version...
On the other hand, UPP_VERSION 0x20220100 with GUI COCOA flags gives me:
error: expected identifier
expanded from macro #define TCP_NODELAY 0x01,
Any ideas how to fix this?
Rename TCP_NODELAY?
P.S. Adding line #undef TCP_NODELAY
in Core/Core.h like this:
#ifdef __APPLE__
#undef TCP_NODELAY
#endif
enum
{
INVALID_SOCKET = -1,
TCP_NODELAY = 1,
SD_RECEIVE = 0,
SD_SEND = 1,
SD_BOTH = 2,
};
restores compiling for the mentioned version. Is that ok? what extra flag do we need to enclose this undef?
#ifdef __APPLE__ is ok?
P.P.S. Bad news after all... I have updated from git and now
it is the same problem like on Linux X11:
duplicate member
static int WndCaretTime;
And I am at loss with UPP_VERSION... It shows the same..
[Updated on: Thu, 15 December 2022 20:38] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sat Apr 26 16:09:47 CEST 2025
Total time taken to generate the page: 0.00693 seconds
|