Bonjour,
J'essaie actuellement d'utiliser la librairie GSL avec QtCreator, mais je bloque sur un problème de compilation. Travaillant, sur windows, j'ai décompressé l'archive avec cygwin. Pour intégrer la bibliothèque à mon projet, j'ai modifié mon fichier .pro comme suit :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
QWT_DIR = C:\Qt\qwt-5.1.2
FFTW_DIR = C:\LibC++\fftw-3.2.2
GSL_DIR = C:\LibC++\gsl-1.13
DEFINES += QT_DLL \
QWT_DLL
TARGET = HRVanalysis
TEMPLATE = app
DEPENDPATH += .
INCLUDEPATH += $$QWT_DIR\src \
$$FFTW_DIR\api \
$$GSL_DIR
LIBS += $$QWT_DIR\lib\libqwt5.a \
$$FFTW_DIR\.libs\libfftw3.dll.a \
$$GSL_DIR\.libs\libgsl.a
SOURCES += RR.cpp \
Plot.cpp \
Graph.cpp \
Form.cpp \
fftw++.cc \
DataClass.cpp \
Artefacts.cpp \
MainWindow.cpp \
main.cpp \
ResultWindow.cpp
HEADERS += Plot.h \
Graph.h \
Form.h \
fftw++.h \
DataClass.h \
Artefacts.h \
RR.h \
MainWindow.h \
ResultWindow.h |
Mais lorsque je fais un
#include <gsl/gsl_multifit.h>
dans DataClass.h, voilà ce que me sort le compilateur :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
Running build steps for project HRVanalysis...
Configuration unchanged, skipping QMake step.
Starting: C:/Qt/2009.04/mingw/bin/mingw32-make.exe -w
mingw32-make: Entering directory `E:/Cours/BA3/Projet/HRVanalysis'
C:/Qt/2009.04/mingw/bin/mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `E:/Cours/BA3/Projet/HRVanalysis'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQWT_DLL -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN -I"c:\Qt\2009.04\qt\include\QtCore" -I"c:\Qt\2009.04\qt\include\QtGui" -I"c:\Qt\2009.04\qt\include" -I"c:\Qt\qwt-5.1.2\src" -I"c:\LibC++\fftw-3.2.2\api" -I"c:\LibC++\gsl-1.13" -I"c:\Qt\2009.04\qt\include\ActiveQt" -I"release" -I"c:\Qt\2009.04\qt\mkspecs\win32-g++" -o release\DataClass.o DataClass.cpp
In file included from DataClass.h:27,
from DataClass.cpp:1:
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1: error: expected unqualified-id before '!' token
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1: error: stray '\255' in program
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1: error: stray '\254' in program
In file included from DataClass.h:27,
from DataClass.cpp:1:
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:14: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:16: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:18: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:20: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:22: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:24: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:26: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:28: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:30: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:32: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:34: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:36: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:38: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:40: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:42: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:44: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:46: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:48: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:50: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:52: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:54: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:56: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:58: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:60: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:62: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:64: warning: null character(s) ignored
c:/LibC++/gsl-1.13/gsl/gsl_multifit.h:1:67: warning: no newline at end of file
DataClass.cpp: In member function `void DataClass::computeRR()':
DataClass.cpp:108: error: `THRESHOLD' was not declared in this scope
mingw32-make[1]: Leaving directory `E:/Cours/BA3/Projet/HRVanalysis'
mingw32-make: Leaving directory `E:/Cours/BA3/Projet/HRVanalysis'
mingw32-make[1]: *** [release/DataClass.o] Error 1
mingw32-make: *** [release] Error 2
Exited with code 2.
Error while building project HRVanalysis
When executing build step 'Make' |
Apparemment l'erreur viendrait du gsl_multifit.h, qui ne contient que
Quelqu'un aurait-il une solution à me proposer ? ^^'
Partager