Package: lshw
Severity: normal
Tags: patch

When building 'lshw' on amd64 with gcc-4.0,
I get the following error:

c++ -g -Wall -c hw.cc -o hw.o
hw.h:29: error: explicit qualification in declaration of `std::string 
hw::strip(const std::string&)'
make[1]: *** [hw.o] Error 1
make[1]: Leaving directory `/lshw-01.03'
make: *** [build-stamp] Error 2

With the attached patch 'lshw' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/lshw-01.03/hw.h ./hw.h
--- ../tmp-orig/lshw-01.03/hw.h 2003-08-11 23:52:28.000000000 +0200
+++ ./hw.h      2005-03-03 21:36:30.779929659 +0100
@@ -26,7 +26,7 @@
        communication,
        generic} hwClass;
 
-string hw::strip(const string &);
+string strip(const string &);
 
 } // namespace hw
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to