MarkoSan
29th January 2008, 01:00
I've added this line of code into a header file:
//! new type declaration
typedef QMap<QString, QVariant> settingsType; and I get following errors:
mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Documents and Settings/markofr/workspace/SettingsEditor'
c:\Qt\4.3.3\bin\uic.exe cmainwindow.ui -o ui_cmainwindow.h
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include" -I"c:\Qt\4.3.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.3\mkspecs\win32-g++" -o debug\CApplicationSettings.o CApplicationSettings.cpp
In file included from CApplicationSettings.h:11,
from CApplicationSettings.cpp:1:
setttingdefs.h:10: error: expected identifier before "typedef"
setttingdefs.h:10: error: expected init-declarator before "settingsType"
setttingdefs.h:10: error: expected `,' or `;' before "settingsType"
In file included from CApplicationSettings.cpp:1:
CApplicationSettings.h:28: error: `settingsType' does not name a type
mingw32-make[1]: *** [debug/CApplicationSettings.o] Error 1
mingw32-make[1]: Leaving directory `C:/Documents and Settings/markofr/workspace/SettingsEditor'
mingw32-make: *** [debug] Error 2
Why typedef is not working??!!
//! new type declaration
typedef QMap<QString, QVariant> settingsType; and I get following errors:
mingw32-make
mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Documents and Settings/markofr/workspace/SettingsEditor'
c:\Qt\4.3.3\bin\uic.exe cmainwindow.ui -o ui_cmainwindow.h
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtCore" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include\QtGui" -I"..\..\..\..\Qt\4.3.3\include" -I"c:\Qt\4.3.3\include\ActiveQt" -I"debug" -I"." -I"..\..\..\..\Qt\4.3.3\mkspecs\win32-g++" -o debug\CApplicationSettings.o CApplicationSettings.cpp
In file included from CApplicationSettings.h:11,
from CApplicationSettings.cpp:1:
setttingdefs.h:10: error: expected identifier before "typedef"
setttingdefs.h:10: error: expected init-declarator before "settingsType"
setttingdefs.h:10: error: expected `,' or `;' before "settingsType"
In file included from CApplicationSettings.cpp:1:
CApplicationSettings.h:28: error: `settingsType' does not name a type
mingw32-make[1]: *** [debug/CApplicationSettings.o] Error 1
mingw32-make[1]: Leaving directory `C:/Documents and Settings/markofr/workspace/SettingsEditor'
mingw32-make: *** [debug] Error 2
Why typedef is not working??!!