Can C++ programs compile under Fedora Core 1?

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

 



Hi,

The may be stupid but gcc32 has no support for C++ and I'm having problems 
compiling with g++ 3.3.2.

Exact problems are
---
g++ -c -pipe -Wall -W -O2 -g -pipe -march=i386 -mcpu=i686 -fno-use-cxa-atexit 
-fno-exceptions  -DQT_THREAD_SUPPORT -DQT_NO_DEBUG 
-I/usr/lib/qt-3.1/mkspecs/default -I. -I.. -I/usr/local/include/opencv 
-I/usr/lib/qt-3.1/include -I.ui/ -Iui -I.moc/ -o .obj/scoutimagesource.o 
scoutimagesource.cpp
In file included from 
/usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr-default.h:38,
                 from /usr/include/c++/3.3.2/i386-redhat-linux/bits/gthr.h:98,
                 from 
/usr/include/c++/3.3.2/i386-redhat-linux/bits/c++io.h:37,
                 from /usr/include/c++/3.3.2/bits/fpos.h:44,
                 from /usr/include/c++/3.3.2/bits/char_traits.h:46,
                 from /usr/include/c++/3.3.2/string:47,
                 from /usr/lib/qt-3.1/include/qstring.h:46,
                 from /usr/lib/qt-3.1/include/qwindowdefs.h:44,
                 from /usr/lib/qt-3.1/include/qobject.h:43,
                 from include/imagesource.h:16,
                 from include/scoutimagesource.h:16,
                 from scoutimagesource.cpp:16:
/usr/include/unistd.h:201: error: conflicting types for `typedef __gid_t 
gid_t'
/usr/include/linux/types.h:21: error: previous declaration as `typedef
   __kernel_gid_t gid_t'
/usr/include/unistd.h:206: error: conflicting types for `typedef __uid_t 
uid_t'
/usr/include/linux/types.h:20: error: previous declaration as `typedef
   __kernel_uid_t uid_t'
In file included from /usr/include/stdlib.h:416,
                 from /usr/include/c++/3.3.2/cstdlib:52,
                 from /usr/include/c++/3.3.2/bits/stl_algobase.h:67,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/lib/qt-3.1/include/qstring.h:46,
                 from /usr/lib/qt-3.1/include/qwindowdefs.h:44,
                 from /usr/lib/qt-3.1/include/qobject.h:43,
                 from include/imagesource.h:16,
                 from include/scoutimagesource.h:16,
                 from scoutimagesource.cpp:16:
/usr/include/sys/types.h:62: error: conflicting types for `typedef __dev_t
   dev_t'
/usr/include/linux/types.h:10: error: previous declaration as `typedef
   __kernel_dev_t dev_t'
/usr/include/sys/types.h:72: error: conflicting types for `typedef __mode_t
   mode_t'
/usr/include/linux/types.h:12: error: previous declaration as `typedef
   __kernel_mode_t mode_t'
/usr/include/sys/types.h:77: error: conflicting types for `typedef __nlink_t
   nlink_t'
/usr/include/linux/types.h:13: error: previous declaration as `typedef
   __kernel_nlink_t nlink_t'
In file included from /usr/include/sys/types.h:216,
                 from /usr/include/stdlib.h:416,
                 from /usr/include/c++/3.3.2/cstdlib:52,
                 from /usr/include/c++/3.3.2/bits/stl_algobase.h:67,
                 from /usr/include/c++/3.3.2/memory:54,
                 from /usr/include/c++/3.3.2/string:48,
                 from /usr/lib/qt-3.1/include/qstring.h:46,
                 from /usr/lib/qt-3.1/include/qwindowdefs.h:44,
                 from /usr/lib/qt-3.1/include/qobject.h:43,
                 from include/imagesource.h:16,
                 from include/scoutimagesource.h:16,
                 from scoutimagesource.cpp:16:
/usr/include/sys/select.h:78: error: conflicting types for `typedef struct
   fd_set fd_set'
/usr/include/linux/types.h:9: error: previous declaration as `typedef struct
   __kernel_fd_set fd_set'
make: *** [.obj/scoutimagesource.o] Error 1
---

PS: I've posted the question earlier but I really need to get an Yes (with 
answer if possible) or No (with reason if possible) question for this.

Cláudio F. Gil




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux