View Single Post
  #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