udoprog/unc — Issue #1: Build errors due to extra semi-colons in unc.hpp
Author: Pewmaymen
Created: 2012-01-06 14:29:12+00:00
State: open

When building c10t using GCC 3.4.6 (RedHat Enterprise Linux/CentOS 4), there are build errors due to extra semi-colons in unc.hpp:
[ 97%] Building CXX object CMakeFiles/c10t.dir/src/text.cpp.o
In file included from /tickets/shawn/src/c10t/c10t/src/text.cpp:4:
/tickets/shawn/src/c10t/c10t/libs/unc/src/unc/unc.hpp:180: error: extra `;'
/tickets/shawn/src/c10t/c10t/libs/unc/src/unc/unc.hpp:193: error: extra `;'
/tickets/shawn/src/c10t/c10t/libs/unc/src/unc/unc.hpp:198: error: extra `;'
/tickets/shawn/src/c10t/c10t/libs/unc/src/unc/unc.hpp:203: error: extra `;'
/tickets/shawn/src/c10t/c10t/libs/unc/src/unc/unc.hpp:207: error: extra `;'

[srhode@crash build]$ cpp --version
cpp (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Taking out the semi-colons allows the build to complete without issues.

This could be an issue with that version of gcc, not sure.