#project.proSOURCES += main.cppLIBS += -lcueINCLUDEPATH += /usr/include/libcue-1.3/libcue
//main.cppextern "C" { #include <cdtext.h>}int main(int argc, char *argv[]){ Cdtext *cueSheet = cdtext_init(); return 0;}
# project.proSOURCES += main.cppLIBS += -lcue \ -lcluceneINCLUDEPATH += /usr/include/libcue-1.3/libcue
//main.cppextern "C" { #include <cdtext.h>}#include <CLucene.h>int main(int argc, char *argv[]) { Cdtext *cueSheet = cdtext_init(); return 0;}
Running build steps for project project...Configuration unchanged, skipping QMake step.Starting: /usr/bin/make -w make: Entering directory `/home/human-being/Desktop/project/project'g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/libcue-1.3/libcue -I. -o main.o main.cppIn file included from /usr/include/sys/stat.h:107,from /usr/include/CLucene/StdHeader.h:76,from /usr/include/CLucene.h:11,from main.cpp:5:/usr/include/bits/stat.h:88: error: field ‘st_atim’ has incomplete type/usr/include/bits/stat.h:89: error: field ‘st_mtim’ has incomplete type/usr/include/bits/stat.h:90: error: field ‘st_ctim’ has incomplete type/usr/include/bits/stat.h:149: error: field ‘st_atim’ has incomplete type/usr/include/bits/stat.h:150: error: field ‘st_mtim’ has incomplete type/usr/include/bits/stat.h:151: error: field ‘st_ctim’ has incomplete typemain.cpp:7: warning: unused parameter ‘argc’main.cpp:7: warning: unused parameter ‘argv’make: *** [main.o] Error 1make: Leaving directory `/home/human-being/Desktop/project/project'Exited with code 2.Error while building project projectWhen executing build step 'Make'
C++ (Qt)#define __USE_MISC#include <ctime>
Running build steps for project project...Configuration unchanged, skipping QMake step.Starting: /usr/bin/make -w make: Entering directory `/home/human-being/Desktop/project/project'/usr/bin/qmake-qt4 -spec /usr/share/qt4/mkspecs/linux-g++ -unix CONFIG+=debug -o Makefile project.promake: Leaving directory `/home/human-being/Desktop/project/project'make: Entering directory `/home/human-being/Desktop/project/project'g++ -c -pipe -g -Wall -W -D_REENTRANT -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/libcue-1.3/libcue -I. -o main.o main.cppmain.cpp:5:1: warning: "__USE_MISC" redefinedIn file included from /usr/include/stdio.h:28,from /usr/include/libcue-1.3/libcue/cdtext.h:12,from /usr/include/libcue-1.3/libcue/cd.h:12,from main.cpp:3:/usr/include/features.h:278:1: warning: this is the location of the previous definitionIn file included from main.cpp:6:/usr/include/c++/4.4/ctime:62: error: ‘::clock_t’ has not been declared/usr/include/c++/4.4/ctime:63: error: ‘::time_t’ has not been declared/usr/include/c++/4.4/ctime:64: error: ‘::tm’ has not been declared/usr/include/c++/4.4/ctime:66: error: ‘::clock’ has not been declared/usr/include/c++/4.4/ctime:67: error: ‘::difftime’ has not been declared/usr/include/c++/4.4/ctime:68: error: ‘::mktime’ has not been declared/usr/include/c++/4.4/ctime:69: error: ‘::time’ has not been declared/usr/include/c++/4.4/ctime:70: error: ‘::asctime’ has not been declared/usr/include/c++/4.4/ctime:71: error: ‘::ctime’ has not been declared/usr/include/c++/4.4/ctime:72: error: ‘::gmtime’ has not been declared/usr/include/c++/4.4/ctime:73: error: ‘::localtime’ has not been declared/usr/include/c++/4.4/ctime:74: error: ‘::strftime’ has not been declaredIn file included from /usr/include/sys/stat.h:107,from /usr/include/CLucene/StdHeader.h:76,from /usr/include/CLucene.h:11,from main.cpp:7:/usr/include/bits/stat.h:88: error: field ‘st_atim’ has incomplete type/usr/include/bits/stat.h:89: error: field ‘st_mtim’ has incomplete type/usr/include/bits/stat.h:90: error: field ‘st_ctim’ has incomplete type/usr/include/bits/stat.h:149: error: field ‘st_atim’ has incomplete type/usr/include/bits/stat.h:150: error: field ‘st_mtim’ has incomplete type/usr/include/bits/stat.h:151: error: field ‘st_ctim’ has incomplete typemain.cpp:9: warning: unused parameter ‘argc’main.cpp:9: warning: unused parameter ‘argv’make: *** [main.o] Error 1make: Leaving directory `/home/human-being/Desktop/project/project'Exited with code 2.Error while building project projectWhen executing build step 'Make'