Results 1 to 2 of 2

Thread: std::max issue on Debian

  1. #1
    g00fy is offline Registered User
    Name: Salvania
    Organization: Salvania
    Project: Database systems
    Join Date
    Dec 2005
    Posts
    45

    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
    Last edited by g00fy; 06-11-2008 at 03:37 PM.
    Steven Van Ingelgem
    Salvania [http://www.salvania.be/]
    Product Descr.: Statistical data analysis

  2. #2
    ctennis is offline Registered User
    Name: Caleb Tennis
    Organization: AEI
    Project: Project GINA
    Join Date
    Mar 2006
    Posts
    123
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. session using std::wstring instead of std::string
    By Andrew in forum Help Center
    Replies: 2
    Last Post: 01-23-2008, 08:06 AM
  2. Replies: 2
    Last Post: 10-30-2006, 06:57 AM
  3. slice2cpp -U to undef min and max macros
    By StuartA in forum Help Center
    Replies: 2
    Last Post: 05-08-2006, 02:24 AM
  4. icestorm max clients
    By diddek in forum Help Center
    Replies: 1
    Last Post: 10-18-2004, 04:45 PM
  5. ICE/win32 max connections is 64!!
    By kssreeram in forum Help Center
    Replies: 1
    Last Post: 11-03-2003, 07:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •