bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Error compiling commoncpp2 1.7.0 on RHEL5


From: Davis, Malcolm
Subject: Error compiling commoncpp2 1.7.0 on RHEL5
Date: Wed, 28 Jan 2009 18:35:21 -0500

I ran into the following error message trying to compile commoncpp2 version 1.7.0 under RedHatEnterpriseLinux 5.2.0:

 

nat.cpp: In function "char* ost::natErrorString(ost::natResult)":

nat.cpp:365: error: new declaration "char* ost::natErrorString(ost::natResult)"

nat.h:89: error: ambiguates old declaration "const char* ost::natErrorString(ost::natResult)"

 

There appears to be a missing "const " at the beginning of line 365 of nat.cpp.  Adding that I can compile without problem.

 

Hopefully this isn't rehashing a known problem, but a search for natErrorString turned up only an old thread from 2004 relating to missing files in a Windows distribution.

 

Cheers,

Malcolm Davis


reply via email to

[Prev in Thread] Current Thread [Next in Thread]