Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-11-2008
g00fy g00fy is offline
Registered User
 
Name: Salvania
Organization: Salvania
Project: Database systems
 
Join Date: Dec 2005
Posts: 45
Send a message via ICQ to g00fy
-->
Wink std::max issue on Debian

Hi,


I get the following error when compiling on a clean Debian:

Code:
/src/cpp/include/Ice/IconvStringConverter.h: In member function âvirtual Ice::Byte* Ice::IconvStringConverter<charT>::toUTF8(const charT*, const charT*, Ice::UTF8Buffer&) constâ:
/src/cpp/include/Ice/IconvStringConverter.h:263: error: expected unqualified-id before â(â token
/src/cpp/include/Ice/IconvStringConverter.h: In member function âvirtual void Ice::IconvStringConverter<charT>::fromUTF8(const Ice::Byte*, const Ice::Byte*, std::basic_string<_CharT, std::char_traits<_CharT>, std::allocator<_CharT> >&) constâ:
/src/cpp/include/Ice/IconvStringConverter.h:325: error: expected unqualified-id before â(â token
This issue is simply resolved by adding:
Code:
#ifdef max
#  undef max
#endif // max

Greetings,
Steven
__________________
Steven Van Ingelgem
Salvania [http://www.salvania.be/]
Product Descr.: Statistical data analysis

Last edited by g00fy : 06-11-2008 at 04:37 PM.
Reply With Quote
  #2 (permalink)  
Old 06-15-2008
ctennis ctennis is offline
Registered User
 
Name: Caleb Tennis
Organization: AEI
Project: Project GINA
 
Join Date: Mar 2006
Posts: 120
I also ran into this same issue compiling an application with Gentoo, and it turned out I had a 3rd party matrix math header that was including some symbols into the standard namespace (using namespace std, etc. Removing that and changing the order of #includes fixed the issue.
__________________
Caleb Tennis
Analytical Engineering, Inc.
http://www.aei-tech.com
Project: Our facility infrastructure heavily utilizes Ice

Gentoo ebuild maintainer for Ice, IceRuby, etc.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
session using std::wstring instead of std::string Andrew Help Center 2 01-23-2008 09:06 AM
Is the max connections between client and server 1022? russule Help Center 2 10-30-2006 07:57 AM
slice2cpp -U to undef min and max macros StuartA Help Center 2 05-08-2006 03:24 AM
icestorm max clients diddek Help Center 1 10-18-2004 05:45 PM
ICE/win32 max connections is 64!! kssreeram Help Center 1 11-03-2003 08:09 AM


All times are GMT -4. The time now is 07:44 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.