Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
Novo wrote on Fri, 09 December 2022 05:04
Compilation 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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [BUG] Scrolbars on macOS Monterey is too big
Next Topic: MacOS status and M2 question
Goto Forum:
  


Current Time: Sat Apr 27 14:47:10 CEST 2024

Total time taken to generate the page: 0.03470 seconds