Hi
i have installed the Xfree86 4.2, and the QT3 binaries
taken from OpenQNX. The QT3 designer works perfectly (
some visual problems, but not important ), but when
i’m trying to compile my programs i get the same
problems that compiling the QT3 Libraries ( from
trolltech ).
The problems are like this:
Compiling my program:
make
/opt/X11R6/qt3/bin/uic form2.ui -o .ui/form2.h
g++ -c -pipe -Wall -W -O -fno-inline -fno-pack-struct
-DQT_NO_DEBUG -I/opt/X11R
6/qt3/include -I.ui/ -I/root -I.moc/
-I/opt/X11R6/qt3/mkspecs/default -o .obj/ma
in.o main.cpp
In file included from
/opt/X11R6/qt3/include/qcstring.h:46,
from
/opt/X11R6/qt3/include/qstring.h:43,
from
/opt/X11R6/qt3/include/qwindowdefs.h:44,
from
/opt/X11R6/qt3/include/qwidget.h:42,
from
/opt/X11R6/qt3/include/qdesktopwidget.h:42,
from
/opt/X11R6/qt3/include/qapplication.h:42,
from main.cpp:1:
/usr/include/string.h:155: memcmp' is already declared in this scope /usr/include/string.h:155:
memcpy’ is already
declared in this scope
/usr/include/string.h:156: strcmp' is already declared in this scope /usr/include/string.h:156:
strcpy’ is already
declared in this scope
/usr/include/string.h:156: `strlen’ is already
declared in this scope
make: *** [.obj/main.o] Error 1
And compiling QT3
…
…
g++ -c -o project.o -I. -Igenerators -Igenerators/unix
-Igenerators/win32 -Igen
erators/mac -I/usr/local/qt/include
-I/usr/local/qt/include -I/usr/local/qt/src/
tools -DQT_NO_TEXTCODEC -DQT_NO_COMPONENT -DQT_NO_STL
-I/usr/local/qt/mkspecs/qn
x-g++ project.cpp
In file included from
/usr/local/qt/include/qcstring.h:46,
from
/usr/local/qt/include/qiodevice.h:50,
from
/usr/local/qt/include/qtextstream.h:42,
from /usr/local/qt/include/qtl.h:42,
from
/usr/local/qt/include/qvaluelist.h:42,
from
/usr/local/qt/include/qstringlist.h:42,
from project.h:40,
from project.cpp:38:
/usr/include/string.h:155: memcmp' is already declared in this scope /usr/include/string.h:155:
memcpy’ is already
declared in this scope
/usr/include/string.h:156: strcmp' is already declared in this scope /usr/include/string.h:156:
strcpy’ is already
declared in this scope
/usr/include/string.h:156: strlen' is already declared in this scope In file included from project.cpp:45: /usr/include/stdlib.h:239:
abort’ is already declared
in this scope
/usr/include/stdlib.h:239: abs' is already declared in this scope /usr/include/stdlib.h:240:
exit’ is already declared
in this scope
/usr/include/stdlib.h:240: `labs’ is already declared
in this scope
make: *** [project.o] Error 1
QMake failed to build. Aborting.
\
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es