环境:
linux9.0 + qt.4.1.0
问题:
我在生成MakeFile后,执行make时提示着不到路径
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore 以及
/usr/local/Trolltech/Qt-4.1.0-rc1/include下的.h文件,
MakeFile中INCPATH已经添加上相应路径.
是什么原因?敬请指教.
40 个解决方案
#1
你看下对应目录有那个头文件不
#2
有的,我查看过了!
#3
那就奇怪了
#4
在路径前有加 -I 没有?
肯定你加的路径没起到作用
如果不行 可以把你的
1) Makefile
2) 编译错误Log
发到这里让大伙看看
肯定你加的路径没起到作用
如果不行 可以把你的
1) Makefile
2) 编译错误Log
发到这里让大伙看看
#5
具体的错误信息贴上来。
#6
在路径前加-I了,但不知道这个参数有何意义.下面是我的makefile和错误日志:
MakeFile的内容===========================================================:
#############################################################################
# Makefile for building: flash
# Generated by qmake (2.00a) (Qt 4.1.0-rc1) on: 五 3月 24 14:27:11 2006
# Project: flash.pro
# Template: app
# Command: /usr/local/Trolltech/Qt-4.1.0-rc1/bin/qmake -unix -o Makefile flash.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
LEXFLAGS =
YACCFLAGS = -d
INCPATH = -I/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtGui -I/usr/local/Trolltech/Qt-4.1.0-rc1/include -I. -I. -I.
LINK = g++
LFLAGS = -Wl,-rpath,/usr/local/Trolltech/Qt-4.1.0-rc1/lib
LIBS = $(SUBLIBS) -L/usr/local/Trolltech/Qt-4.1.0-rc1/lib -lQtGui_debug -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lm -lQtCore_debug -lz -ldl -lpthread
AR = ar cqs
RANLIB =
QMAKE = /usr/local/Trolltech/Qt-4.1.0-rc1/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
#====
CONFIG += qt warn_on release
INCLUDEPATH += -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtGui -I/usr/local/Trolltech/Qt-4.1.0-rc1/include -I. -I. -I.
#====
####### Output directory
OBJECTS_DIR = ./
####### Files
SOURCES = main.c \
mainframe.cpp
OBJECTS = main.o \
mainframe.o
DIST = /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf \
flash.pro
QMAKE_TARGET = flash
DESTDIR =
TARGET = flash
first: all
####### Implicit rules
.SUFFIXES: .c .o .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: flash.pro /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/linux-g++/qmake.conf /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtGui_debug.prl \
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtCore_debug.prl
$(QMAKE) -unix -o Makefile flash.pro
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtGui_debug.prl:
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtCore_debug.prl:
qmake: FORCE
@$(QMAKE) -unix -o Makefile flash.pro
dist:
@$(CHK_DIR_EXISTS) ".tmp/flash1.0.0" || $(MKDIR) ".tmp/flash1.0.0"
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/flash1.0.0/ && $(COPY_FILE) --parents mainframe.h .tmp/flash1.0.0/ && $(COPY_FILE) --parents main.c mainframe.cpp .tmp/flash1.0.0/ && $(COPY_FILE) --parents main.ui css/mainframe.ui .tmp/flash1.0.0/ && (cd `dirname .tmp/flash1.0.0` && $(TAR) flash1.0.0.tar flash1.0.0 && $(COMPRESS) flash1.0.0.tar) && $(MOVE) `dirname .tmp/flash1.0.0`/flash1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/flash1.0.0
yaccclean:
lexclean:
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/moc:
(cd "$(QTDIR)/src/tools/moc" && $(MAKE))
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all:
compiler_moc_header_clean:
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all:
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_main.h ui_mainframe.h
compiler_uic_clean:
-$(DEL_FILE) ui_main.h ui_mainframe.h
ui_main.h: main.ui
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/uic main.ui -o ui_main.h
ui_mainframe.h: css/mainframe.ui
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/uic css/mainframe.ui -o ui_mainframe.h
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_image_collection_clean compiler_moc_source_clean compiler_uic_clean
####### Compile
main.o: main.c
mainframe.o: mainframe.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
MakeFile的内容结束.
MakeFile的内容===========================================================:
#############################################################################
# Makefile for building: flash
# Generated by qmake (2.00a) (Qt 4.1.0-rc1) on: 五 3月 24 14:27:11 2006
# Project: flash.pro
# Template: app
# Command: /usr/local/Trolltech/Qt-4.1.0-rc1/bin/qmake -unix -o Makefile flash.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
LEXFLAGS =
YACCFLAGS = -d
INCPATH = -I/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtGui -I/usr/local/Trolltech/Qt-4.1.0-rc1/include -I. -I. -I.
LINK = g++
LFLAGS = -Wl,-rpath,/usr/local/Trolltech/Qt-4.1.0-rc1/lib
LIBS = $(SUBLIBS) -L/usr/local/Trolltech/Qt-4.1.0-rc1/lib -lQtGui_debug -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lm -lQtCore_debug -lz -ldl -lpthread
AR = ar cqs
RANLIB =
QMAKE = /usr/local/Trolltech/Qt-4.1.0-rc1/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
#====
CONFIG += qt warn_on release
INCLUDEPATH += -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtGui -I/usr/local/Trolltech/Qt-4.1.0-rc1/include -I. -I. -I.
#====
####### Output directory
OBJECTS_DIR = ./
####### Files
SOURCES = main.c \
mainframe.cpp
OBJECTS = main.o \
mainframe.o
DIST = /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf \
flash.pro
QMAKE_TARGET = flash
DESTDIR =
TARGET = flash
first: all
####### Implicit rules
.SUFFIXES: .c .o .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: flash.pro /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/linux-g++/qmake.conf /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtGui_debug.prl \
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtCore_debug.prl
$(QMAKE) -unix -o Makefile flash.pro
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtGui_debug.prl:
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtCore_debug.prl:
qmake: FORCE
@$(QMAKE) -unix -o Makefile flash.pro
dist:
@$(CHK_DIR_EXISTS) ".tmp/flash1.0.0" || $(MKDIR) ".tmp/flash1.0.0"
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/flash1.0.0/ && $(COPY_FILE) --parents mainframe.h .tmp/flash1.0.0/ && $(COPY_FILE) --parents main.c mainframe.cpp .tmp/flash1.0.0/ && $(COPY_FILE) --parents main.ui css/mainframe.ui .tmp/flash1.0.0/ && (cd `dirname .tmp/flash1.0.0` && $(TAR) flash1.0.0.tar flash1.0.0 && $(COMPRESS) flash1.0.0.tar) && $(MOVE) `dirname .tmp/flash1.0.0`/flash1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/flash1.0.0
yaccclean:
lexclean:
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/moc:
(cd "$(QTDIR)/src/tools/moc" && $(MAKE))
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all:
compiler_moc_header_clean:
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all:
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_main.h ui_mainframe.h
compiler_uic_clean:
-$(DEL_FILE) ui_main.h ui_mainframe.h
ui_main.h: main.ui
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/uic main.ui -o ui_main.h
ui_mainframe.h: css/mainframe.ui
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/uic css/mainframe.ui -o ui_mainframe.h
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_image_collection_clean compiler_moc_source_clean compiler_uic_clean
####### Compile
main.o: main.c
mainframe.o: mainframe.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
MakeFile的内容结束.
#7
错误日志量内容多,这回发布上来,只有等会在发送
#8
请大家帮助呀,这个问题困惑俺两天了!
#9
等你贴错误呢:)
#10
错误日志量很大,只能贴出其一部分内容,其它都是类似的东西(part1):
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:169: warning: type default
s to `int' in declaration of `QByteArray'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:169: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:170: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:168: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: parse error before "Q
Char"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: warning: type default
s to `int' in declaration of `QChar'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:174: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:177: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:180: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:183: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:186: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:189: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:169: warning: type default
s to `int' in declaration of `QByteArray'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:169: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:170: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:168: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: parse error before "Q
Char"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: warning: type default
s to `int' in declaration of `QChar'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:174: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:177: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:180: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:183: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:186: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:189: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
#11
错误日志量很大,只能贴出其一部分内容,其它都是类似的东西(part2):
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:192: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:195: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:198: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: parse error before "Q
Object"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: warning: type default
s to `int' in declaration of `QObject'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:202: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: parse error before "Q
Widget"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: warning: type default
s to `int' in declaration of `QWidget'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:206: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:209: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: warning: no return st
atement in function returning non-void
In file included from /usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qvariant.h:31,
from /usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/QVariant:1,
from main.h:4,
from main.c:1:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmap.h:32:15: map: 没有那个文件或目录
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmap.h:35:15: new: 没有那个文件或目录
#然后就是提示的qmap.h的错误信息.在相应路径下也有qmap.h文件.
以上两部分只是日志的一段.
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:192: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:195: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:198: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: parse error before "Q
Object"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: warning: type default
s to `int' in declaration of `QObject'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:202: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: parse error before "Q
Widget"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: warning: type default
s to `int' in declaration of `QWidget'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:206: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:209: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: warning: no return st
atement in function returning non-void
In file included from /usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qvariant.h:31,
from /usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/QVariant:1,
from main.h:4,
from main.c:1:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmap.h:32:15: map: 没有那个文件或目录
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmap.h:35:15: new: 没有那个文件或目录
#然后就是提示的qmap.h的错误信息.在相应路径下也有qmap.h文件.
以上两部分只是日志的一段.
#12
是用g++编译的吗?
#13
我是在生成makefile后,执行的make命令.makefile中也有CXX = g++语句.
#14
看着象是编译器不认识模板。。。
#15
我用的是RH9.0,qt4.1是我回来安装的,如果是编译器不认识模板,怎么调整呢?
也看不出makefile与旧版有何.
也看不出makefile与旧版有何.
#16
上面少写两个字:不同.
#17
上边没有rh9系统,没法试。g++ --version看看g++的版本。
#18
这是执行后的结果:
g++ (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 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.
g++ (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 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.
#19
升级g++试试吧,估计是版本太低。
#20
下载的gcc安装文件gcc-g++-4.0.3.tar.bz2解压后只有confiure,没有执行configure所需的install-sh文件,换用gccg++4.1.0问题同样.
#21
执行./configure配置不行?
#22
是的,提示说是找不到install-sh\或者install.sh
#23
可能是libtool版本太低:(
干脆换个发行版吧,比如FC5?
干脆换个发行版吧,比如FC5?
#24
但是安装其它的东西都没有问题(有相应的install-sh),觉得还是下载的g++有问题?因为相应目录下就没有install文件.
#25
下载完整的gcc包,配置安装其中的gcc和g++。
#26
我的g++是在ftp://ftp.gnu.org/gnu/gcc/gcc-4.1.0/上down的,应该不会错,是否还有其它东西要升级的?
#27
automake、libtool等等。这个很难说。你到网上看看有没有编译好的for RH9的。不需要太高版本,3.4以上我估计就行。
#28
qt都出4了,我还是用3呢,呵呵~
#29
to fierygnu:
好的,我在试试.
to zoohoo(zoohoo):
偶就是在用qt4时遇到问题的.
好的,我在试试.
to zoohoo(zoohoo):
偶就是在用qt4时遇到问题的.
#30
g++4已经安装上了,但编译时问题依旧,我该怎么办?
#31
用的是新的g++吗?
#32
我把makefile中的相应项该为g++4,还是不行
#33
有什么办法哪?
#34
是不是qmetatype.h的内容不对了?把qmetatype.h从160~180行的内容贴出来看一下?
#35
在安装目录中找到两个该文件:
1个在include的Qt目录中,160到180行的内容如下:
template<> struct QMetaTypeId<uint>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::UInt; } };
template<> struct QMetaTypeId<bool>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Bool; } };
template<> struct QMetaTypeId<double>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Double; } };
class QByteArray;
template<> struct QMetaTypeId<QByteArray>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QByteArray; } };
class QChar;
template<> struct QMetaTypeId<QChar>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QChar; } };
template<> struct QMetaTypeId<void>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Void; } };
template<> struct QMetaTypeId<long>
第二个文件在include的QtCore目录下,内容如下:
template<> struct QMetaTypeId<uint>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::UInt; } };
template<> struct QMetaTypeId<bool>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Bool; } };
template<> struct QMetaTypeId<double>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Double; } };
class QByteArray;
template<> struct QMetaTypeId<QByteArray>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QByteArray; } };
class QChar;
template<> struct QMetaTypeId<QChar>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QChar; } };
template<> struct QMetaTypeId<void>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Void; } };
template<> struct QMetaTypeId<long>
1个在include的Qt目录中,160到180行的内容如下:
template<> struct QMetaTypeId<uint>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::UInt; } };
template<> struct QMetaTypeId<bool>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Bool; } };
template<> struct QMetaTypeId<double>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Double; } };
class QByteArray;
template<> struct QMetaTypeId<QByteArray>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QByteArray; } };
class QChar;
template<> struct QMetaTypeId<QChar>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QChar; } };
template<> struct QMetaTypeId<void>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Void; } };
template<> struct QMetaTypeId<long>
第二个文件在include的QtCore目录下,内容如下:
template<> struct QMetaTypeId<uint>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::UInt; } };
template<> struct QMetaTypeId<bool>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Bool; } };
template<> struct QMetaTypeId<double>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Double; } };
class QByteArray;
template<> struct QMetaTypeId<QByteArray>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QByteArray; } };
class QChar;
template<> struct QMetaTypeId<QChar>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QChar; } };
template<> struct QMetaTypeId<void>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Void; } };
template<> struct QMetaTypeId<long>
#36
看不出来了,只有找时间试一下了:)
#37
谢谢fierygnu(va_list) 了,这些天几乎都是你在指导俺,小弟不胜感激!
还要劳驾你费心!期待你的好消息!
还要劳驾你费心!期待你的好消息!
#38
试了一下,g++ 4编译没有问题。
原来的g++卸载了吗?现在命令行下which g++显示什么?g++ --version是多少?
原来的g++卸载了吗?现在命令行下which g++显示什么?g++ --version是多少?
#39
执行which g++显示: /usr/bin/g++
g++ --version 是3.2.2
是这样的,安装++4时没有卸载g++3,而是把g++4安装在另外一个目录中,建立了一个连接,但不知如何使用g++4编译,是不是直接修改makefile的相应选项,记得当时试了不行.
g++ --version 是3.2.2
是这样的,安装++4时没有卸载g++3,而是把g++4安装在另外一个目录中,建立了一个连接,但不知如何使用g++4编译,是不是直接修改makefile的相应选项,记得当时试了不行.
#40
把g++ 4所在的路径加到PATH环境变量的最前边。
#1
你看下对应目录有那个头文件不
#2
有的,我查看过了!
#3
那就奇怪了
#4
在路径前有加 -I 没有?
肯定你加的路径没起到作用
如果不行 可以把你的
1) Makefile
2) 编译错误Log
发到这里让大伙看看
肯定你加的路径没起到作用
如果不行 可以把你的
1) Makefile
2) 编译错误Log
发到这里让大伙看看
#5
具体的错误信息贴上来。
#6
在路径前加-I了,但不知道这个参数有何意义.下面是我的makefile和错误日志:
MakeFile的内容===========================================================:
#############################################################################
# Makefile for building: flash
# Generated by qmake (2.00a) (Qt 4.1.0-rc1) on: 五 3月 24 14:27:11 2006
# Project: flash.pro
# Template: app
# Command: /usr/local/Trolltech/Qt-4.1.0-rc1/bin/qmake -unix -o Makefile flash.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
LEXFLAGS =
YACCFLAGS = -d
INCPATH = -I/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtGui -I/usr/local/Trolltech/Qt-4.1.0-rc1/include -I. -I. -I.
LINK = g++
LFLAGS = -Wl,-rpath,/usr/local/Trolltech/Qt-4.1.0-rc1/lib
LIBS = $(SUBLIBS) -L/usr/local/Trolltech/Qt-4.1.0-rc1/lib -lQtGui_debug -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lm -lQtCore_debug -lz -ldl -lpthread
AR = ar cqs
RANLIB =
QMAKE = /usr/local/Trolltech/Qt-4.1.0-rc1/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
#====
CONFIG += qt warn_on release
INCLUDEPATH += -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtGui -I/usr/local/Trolltech/Qt-4.1.0-rc1/include -I. -I. -I.
#====
####### Output directory
OBJECTS_DIR = ./
####### Files
SOURCES = main.c \
mainframe.cpp
OBJECTS = main.o \
mainframe.o
DIST = /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf \
flash.pro
QMAKE_TARGET = flash
DESTDIR =
TARGET = flash
first: all
####### Implicit rules
.SUFFIXES: .c .o .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: flash.pro /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/linux-g++/qmake.conf /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtGui_debug.prl \
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtCore_debug.prl
$(QMAKE) -unix -o Makefile flash.pro
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtGui_debug.prl:
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtCore_debug.prl:
qmake: FORCE
@$(QMAKE) -unix -o Makefile flash.pro
dist:
@$(CHK_DIR_EXISTS) ".tmp/flash1.0.0" || $(MKDIR) ".tmp/flash1.0.0"
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/flash1.0.0/ && $(COPY_FILE) --parents mainframe.h .tmp/flash1.0.0/ && $(COPY_FILE) --parents main.c mainframe.cpp .tmp/flash1.0.0/ && $(COPY_FILE) --parents main.ui css/mainframe.ui .tmp/flash1.0.0/ && (cd `dirname .tmp/flash1.0.0` && $(TAR) flash1.0.0.tar flash1.0.0 && $(COMPRESS) flash1.0.0.tar) && $(MOVE) `dirname .tmp/flash1.0.0`/flash1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/flash1.0.0
yaccclean:
lexclean:
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/moc:
(cd "$(QTDIR)/src/tools/moc" && $(MAKE))
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all:
compiler_moc_header_clean:
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all:
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_main.h ui_mainframe.h
compiler_uic_clean:
-$(DEL_FILE) ui_main.h ui_mainframe.h
ui_main.h: main.ui
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/uic main.ui -o ui_main.h
ui_mainframe.h: css/mainframe.ui
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/uic css/mainframe.ui -o ui_mainframe.h
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_image_collection_clean compiler_moc_source_clean compiler_uic_clean
####### Compile
main.o: main.c
mainframe.o: mainframe.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
MakeFile的内容结束.
MakeFile的内容===========================================================:
#############################################################################
# Makefile for building: flash
# Generated by qmake (2.00a) (Qt 4.1.0-rc1) on: 五 3月 24 14:27:11 2006
# Project: flash.pro
# Template: app
# Command: /usr/local/Trolltech/Qt-4.1.0-rc1/bin/qmake -unix -o Makefile flash.pro
#############################################################################
####### Compiler, tools and options
CC = gcc
CXX = g++
LEX = flex
YACC = yacc
DEFINES = -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
CFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)
LEXFLAGS =
YACCFLAGS = -d
INCPATH = -I/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtGui -I/usr/local/Trolltech/Qt-4.1.0-rc1/include -I. -I. -I.
LINK = g++
LFLAGS = -Wl,-rpath,/usr/local/Trolltech/Qt-4.1.0-rc1/lib
LIBS = $(SUBLIBS) -L/usr/local/Trolltech/Qt-4.1.0-rc1/lib -lQtGui_debug -L/usr/X11R6/lib -lpng -lSM -lICE -lXi -lXrender -lXcursor -lXinerama -lfreetype -lfontconfig -lXext -lX11 -lm -lQtCore_debug -lz -ldl -lpthread
AR = ar cqs
RANLIB =
QMAKE = /usr/local/Trolltech/Qt-4.1.0-rc1/bin/qmake
TAR = tar -cf
COMPRESS = gzip -9f
COPY = cp -f
COPY_FILE = $(COPY)
COPY_DIR = $(COPY) -r
INSTALL_FILE = $(COPY_FILE)
INSTALL_DIR = $(COPY_DIR)
DEL_FILE = rm -f
SYMLINK = ln -sf
DEL_DIR = rmdir
MOVE = mv -f
CHK_DIR_EXISTS= test -d
MKDIR = mkdir -p
#====
CONFIG += qt warn_on release
INCLUDEPATH += -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore -I/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtGui -I/usr/local/Trolltech/Qt-4.1.0-rc1/include -I. -I. -I.
#====
####### Output directory
OBJECTS_DIR = ./
####### Files
SOURCES = main.c \
mainframe.cpp
OBJECTS = main.o \
mainframe.o
DIST = /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf \
flash.pro
QMAKE_TARGET = flash
DESTDIR =
TARGET = flash
first: all
####### Implicit rules
.SUFFIXES: .c .o .cpp .cc .cxx .C
.cpp.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cc.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.cxx.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.C.o:
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<
.c.o:
$(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<
####### Build rules
all: Makefile $(TARGET)
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS)
Makefile: flash.pro /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/linux-g++/qmake.conf /usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf \
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtGui_debug.prl \
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtCore_debug.prl
$(QMAKE) -unix -o Makefile flash.pro
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/qconfig.pri:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt_config.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/exclusive_builds.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_pre.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/debug.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/default_post.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/warn_on.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/qt.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/unix/thread.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/moc.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/resources.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/mkspecs/features/uic.prf:
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtGui_debug.prl:
/usr/local/Trolltech/Qt-4.1.0-rc1/lib/libQtCore_debug.prl:
qmake: FORCE
@$(QMAKE) -unix -o Makefile flash.pro
dist:
@$(CHK_DIR_EXISTS) ".tmp/flash1.0.0" || $(MKDIR) ".tmp/flash1.0.0"
$(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/flash1.0.0/ && $(COPY_FILE) --parents mainframe.h .tmp/flash1.0.0/ && $(COPY_FILE) --parents main.c mainframe.cpp .tmp/flash1.0.0/ && $(COPY_FILE) --parents main.ui css/mainframe.ui .tmp/flash1.0.0/ && (cd `dirname .tmp/flash1.0.0` && $(TAR) flash1.0.0.tar flash1.0.0 && $(COMPRESS) flash1.0.0.tar) && $(MOVE) `dirname .tmp/flash1.0.0`/flash1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/flash1.0.0
yaccclean:
lexclean:
clean:compiler_clean
-$(DEL_FILE) $(OBJECTS)
-$(DEL_FILE) *~ core *.core
####### Sub-libraries
distclean: clean
-$(DEL_FILE) $(TARGET)
-$(DEL_FILE) Makefile
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/moc:
(cd "$(QTDIR)/src/tools/moc" && $(MAKE))
mocclean: compiler_moc_header_clean compiler_moc_source_clean
mocables: compiler_moc_header_make_all compiler_moc_source_make_all
compiler_moc_header_make_all:
compiler_moc_header_clean:
compiler_rcc_make_all:
compiler_rcc_clean:
compiler_image_collection_make_all:
compiler_image_collection_clean:
-$(DEL_FILE) qmake_image_collection.cpp
compiler_moc_source_make_all:
compiler_moc_source_clean:
compiler_uic_make_all: ui_main.h ui_mainframe.h
compiler_uic_clean:
-$(DEL_FILE) ui_main.h ui_mainframe.h
ui_main.h: main.ui
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/uic main.ui -o ui_main.h
ui_mainframe.h: css/mainframe.ui
/usr/local/Trolltech/Qt-4.1.0-rc1/bin/uic css/mainframe.ui -o ui_mainframe.h
compiler_clean: compiler_moc_header_clean compiler_rcc_clean compiler_image_collection_clean compiler_moc_source_clean compiler_uic_clean
####### Compile
main.o: main.c
mainframe.o: mainframe.cpp
####### Install
install: FORCE
uninstall: FORCE
FORCE:
MakeFile的内容结束.
#7
错误日志量内容多,这回发布上来,只有等会在发送
#8
请大家帮助呀,这个问题困惑俺两天了!
#9
等你贴错误呢:)
#10
错误日志量很大,只能贴出其一部分内容,其它都是类似的东西(part1):
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:169: warning: type default
s to `int' in declaration of `QByteArray'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:169: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:170: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:168: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: parse error before "Q
Char"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: warning: type default
s to `int' in declaration of `QChar'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:174: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:177: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:180: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:183: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:186: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:189: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:169: warning: type default
s to `int' in declaration of `QByteArray'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:169: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:170: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:168: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: parse error before "Q
Char"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: warning: type default
s to `int' in declaration of `QChar'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:173: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:174: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:172: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:177: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:176: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:180: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:179: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:183: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:182: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:186: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:185: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:189: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:188: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
#11
错误日志量很大,只能贴出其一部分内容,其它都是类似的东西(part2):
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:192: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:195: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:198: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: parse error before "Q
Object"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: warning: type default
s to `int' in declaration of `QObject'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:202: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: parse error before "Q
Widget"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: warning: type default
s to `int' in declaration of `QWidget'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:206: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:209: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: warning: no return st
atement in function returning non-void
In file included from /usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qvariant.h:31,
from /usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/QVariant:1,
from main.h:4,
from main.c:1:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmap.h:32:15: map: 没有那个文件或目录
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmap.h:35:15: new: 没有那个文件或目录
#然后就是提示的qmap.h的错误信息.在相应路径下也有qmap.h文件.
以上两部分只是日志的一段.
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:192: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:191: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:195: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:194: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:198: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:197: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: parse error before "Q
Object"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: warning: type default
s to `int' in declaration of `QObject'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:201: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:202: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:200: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: parse error before "Q
Widget"
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: warning: type default
s to `int' in declaration of `QWidget'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:205: warning: data definit
ion has no type or storage class
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:206: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:204: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: warning: no return st
atement in function returning non-void
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: At top level:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:209: parse error before '<
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: redefinition of `qt_m
etatype_id'
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:208: `qt_metatype_id' prev
iously defined here
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h: In function `qt_metatype_
id':
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: `QMetaType' undeclare
d (first use in this function)
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: parse error before ':
' token
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmetatype.h:211: warning: no return st
atement in function returning non-void
In file included from /usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qvariant.h:31,
from /usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/QVariant:1,
from main.h:4,
from main.c:1:
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmap.h:32:15: map: 没有那个文件或目录
/usr/local/Trolltech/Qt-4.1.0-rc1/include/QtCore/qmap.h:35:15: new: 没有那个文件或目录
#然后就是提示的qmap.h的错误信息.在相应路径下也有qmap.h文件.
以上两部分只是日志的一段.
#12
是用g++编译的吗?
#13
我是在生成makefile后,执行的make命令.makefile中也有CXX = g++语句.
#14
看着象是编译器不认识模板。。。
#15
我用的是RH9.0,qt4.1是我回来安装的,如果是编译器不认识模板,怎么调整呢?
也看不出makefile与旧版有何.
也看不出makefile与旧版有何.
#16
上面少写两个字:不同.
#17
上边没有rh9系统,没法试。g++ --version看看g++的版本。
#18
这是执行后的结果:
g++ (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 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.
g++ (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
Copyright (C) 2002 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.
#19
升级g++试试吧,估计是版本太低。
#20
下载的gcc安装文件gcc-g++-4.0.3.tar.bz2解压后只有confiure,没有执行configure所需的install-sh文件,换用gccg++4.1.0问题同样.
#21
执行./configure配置不行?
#22
是的,提示说是找不到install-sh\或者install.sh
#23
可能是libtool版本太低:(
干脆换个发行版吧,比如FC5?
干脆换个发行版吧,比如FC5?
#24
但是安装其它的东西都没有问题(有相应的install-sh),觉得还是下载的g++有问题?因为相应目录下就没有install文件.
#25
下载完整的gcc包,配置安装其中的gcc和g++。
#26
我的g++是在ftp://ftp.gnu.org/gnu/gcc/gcc-4.1.0/上down的,应该不会错,是否还有其它东西要升级的?
#27
automake、libtool等等。这个很难说。你到网上看看有没有编译好的for RH9的。不需要太高版本,3.4以上我估计就行。
#28
qt都出4了,我还是用3呢,呵呵~
#29
to fierygnu:
好的,我在试试.
to zoohoo(zoohoo):
偶就是在用qt4时遇到问题的.
好的,我在试试.
to zoohoo(zoohoo):
偶就是在用qt4时遇到问题的.
#30
g++4已经安装上了,但编译时问题依旧,我该怎么办?
#31
用的是新的g++吗?
#32
我把makefile中的相应项该为g++4,还是不行
#33
有什么办法哪?
#34
是不是qmetatype.h的内容不对了?把qmetatype.h从160~180行的内容贴出来看一下?
#35
在安装目录中找到两个该文件:
1个在include的Qt目录中,160到180行的内容如下:
template<> struct QMetaTypeId<uint>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::UInt; } };
template<> struct QMetaTypeId<bool>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Bool; } };
template<> struct QMetaTypeId<double>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Double; } };
class QByteArray;
template<> struct QMetaTypeId<QByteArray>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QByteArray; } };
class QChar;
template<> struct QMetaTypeId<QChar>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QChar; } };
template<> struct QMetaTypeId<void>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Void; } };
template<> struct QMetaTypeId<long>
第二个文件在include的QtCore目录下,内容如下:
template<> struct QMetaTypeId<uint>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::UInt; } };
template<> struct QMetaTypeId<bool>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Bool; } };
template<> struct QMetaTypeId<double>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Double; } };
class QByteArray;
template<> struct QMetaTypeId<QByteArray>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QByteArray; } };
class QChar;
template<> struct QMetaTypeId<QChar>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QChar; } };
template<> struct QMetaTypeId<void>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Void; } };
template<> struct QMetaTypeId<long>
1个在include的Qt目录中,160到180行的内容如下:
template<> struct QMetaTypeId<uint>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::UInt; } };
template<> struct QMetaTypeId<bool>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Bool; } };
template<> struct QMetaTypeId<double>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Double; } };
class QByteArray;
template<> struct QMetaTypeId<QByteArray>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QByteArray; } };
class QChar;
template<> struct QMetaTypeId<QChar>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QChar; } };
template<> struct QMetaTypeId<void>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Void; } };
template<> struct QMetaTypeId<long>
第二个文件在include的QtCore目录下,内容如下:
template<> struct QMetaTypeId<uint>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::UInt; } };
template<> struct QMetaTypeId<bool>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Bool; } };
template<> struct QMetaTypeId<double>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Double; } };
class QByteArray;
template<> struct QMetaTypeId<QByteArray>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QByteArray; } };
class QChar;
template<> struct QMetaTypeId<QChar>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::QChar; } };
template<> struct QMetaTypeId<void>
{ enum { Defined = 1 };
static inline int qt_metatype_id() { return QMetaType::Void; } };
template<> struct QMetaTypeId<long>
#36
看不出来了,只有找时间试一下了:)
#37
谢谢fierygnu(va_list) 了,这些天几乎都是你在指导俺,小弟不胜感激!
还要劳驾你费心!期待你的好消息!
还要劳驾你费心!期待你的好消息!
#38
试了一下,g++ 4编译没有问题。
原来的g++卸载了吗?现在命令行下which g++显示什么?g++ --version是多少?
原来的g++卸载了吗?现在命令行下which g++显示什么?g++ --version是多少?
#39
执行which g++显示: /usr/bin/g++
g++ --version 是3.2.2
是这样的,安装++4时没有卸载g++3,而是把g++4安装在另外一个目录中,建立了一个连接,但不知如何使用g++4编译,是不是直接修改makefile的相应选项,记得当时试了不行.
g++ --version 是3.2.2
是这样的,安装++4时没有卸载g++3,而是把g++4安装在另外一个目录中,建立了一个连接,但不知如何使用g++4编译,是不是直接修改makefile的相应选项,记得当时试了不行.
#40
把g++ 4所在的路径加到PATH环境变量的最前边。