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
_______________________________________________
Bug-commoncpp mailing list
Bug-commoncpp@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-commoncpp

Reply via email to