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 » U++ Library support » U++ MT-multithreading and servers » Skylark and X11 name clash
Skylark and X11 name clash [message #40245] Wed, 10 July 2013 13:46 Go to next message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
Hi,

I am trying to add Skylark to an application with X11 GUI and there is name clash between function name in Skylark.h and definition in /usr/include/X11/X.h:

Skylark.h:
virtual void BadRequest(Http& http, const BadRequestExc& e);

X.h:
#define BadRequest 1 /* bad request code */


Mirek, can you add #undef BadRequest to X11Gui.h?



Re: Skylark and X11 name clash [message #40351 is a reply to message #40245] Mon, 22 July 2013 22:26 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Perhaps putting it to skylark main header would be better?
Re: Skylark and X11 name clash [message #40353 is a reply to message #40351] Tue, 23 July 2013 08:27 Go to previous messageGo to next message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
It is up to you, but there is already plenty of X11 related undefs in X11Gui.h and I think we should keep it in one place.

BTW. I have similar problem with "t_" definition (some external library has t_ function). Is it possible to replace definition of t_ with inline function? I tried to do this, but I couldn't resolve name space problems.
Re: Skylark and X11 name clash [message #40385 is a reply to message #40351] Mon, 29 July 2013 19:25 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
BadRequest name clash resolved.
Previous Topic: File upload
Next Topic: Ask for testing - Skylark with upload progress
Goto Forum:
  


Current Time: Fri Mar 29 09:01:22 CET 2024

Total time taken to generate the page: 0.01378 seconds