Any one compiled gtk+ program with C++ code?
- From: Pengjun Pei <ppei cse Buffalo EDU>
- To: <gtk-list gnome org>
- Subject: Any one compiled gtk+ program with C++ code?
- Date: Tue, 16 Oct 2001 20:52:55 -0400 (EDT)
Hi
My main program is written in C and gtk+
then I used CC to compile,it works fine.
Then I want to use self-defined object in this main
program so I included my own .h file which
defines the class.Just then,it gives ERRORS
when compileing!!!
I didn't even try to use the object!
Only #included the .h file.
And the error seems come from some definition
conflict,right? Any suggest is highly appreciated!
The error messages are as follows:
"/usr/include/wchar.h", line 21: Error: Multiple declaration for std::tm.
"/usr/include/time.h", line 30: Error: Multiple declaration for std::tm.
"/opt/SUNWspro/WS6/include/CC/Cstd/rw/traits", line 517: Error:
Cannot return void* from a function that should return const char*.
"/opt/SUNWspro/WS6/include/CC/Cstd/rw/locimpl", line 243: Error:
Cannot return void* from a function that should return
__rwstd::facet_imp*.
"/opt/SUNWspro/WS6/include/CC/Cstd/rw/ctype", line 491: Error:
Could not find a match for std::ctype<char>::ctype(void*, bool, int).
"/opt/SUNWspro/WS6/include/CC/Cstd/rw/vendor", line 59: Error:
Could not find a match for std::ctype<char>::ctype(void*, bool, int).
exit6 Error(s) detected.
*** Error code 6
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]