Skip to Content.
Sympa Menu

cgal-discuss - probleme linkage : assertion_fail,precondition_fail,postcondition_fail

Subject: CGAL users discussion list

List archive

probleme linkage : assertion_fail,precondition_fail,postcondition_fail


Chronological Thread 
  • From:
  • To:
  • Subject: probleme linkage : assertion_fail,precondition_fail,postcondition_fail
  • Date: Thu, 17 May 2007 18:22:09 +0200

bonjour,
j'utilise depuis quelques temps cgal sous linux et sous windows/mvs. Comme je
dois porter une application Qt4 sous windows, je dois utiliser mingw32 pour
compiler mon projet. La compilation se réalise correctement mais lors du
'linkage', il me manque 3 fonctions définies dans assertions.cpp :

assertion_fail
precondition_fail
postcondition_fail

L'erreur me dit que ces 3 fonctions ne sont pas dans le libCGAL.a, ou alors
il ne les trouve pas.
Serait-il possible de m'orienté dans mes recherches ?

merci.
Julien.

L'erreur (à la fin):

C:\DOC\POLYTECH\SymbSpotting\src>make
mingw32-make -f Makefile.Release
mingw32-make[1]: Entering directory `C:/DOC/POLYTECH/SymbSpotting/src'
c:\lib\Qt\4.2.3\bin\rcc.exe -name application application.qrc -o
release\qrc_application.cpp
g++ -c -O2 -O2 -frtti -fexceptions -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT
-DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THRE
AD_SUPPORT -DQT_NEEDS_QMAIN -I"C:/lib/Qt/4.2.3/include/QtCore"
-I"C:/lib/Qt/4.2.3/include/QtCore" -I"C:/lib/Qt/4.2.3/include/QtGui" -
I"C:/lib/Qt/4.2.3/include/QtGui" -I"C:/lib/Qt/4.2.3/include" -I"."
-I"C:/lib/boost_1_33_1" -I"C:/lib/gmp-4.2.1" -I"C:/lib/mpfr-2.2.1"
-I"C:\lib\CGAL-3.2.1\include\CGAL\config\i686_CYGWINNT-5.1_g++-3.4.4"
-I"C:\lib\CGAL-3.2.1\include" -I"C:/lib/Qt/4.2.3/include/Activ
eQt" -I"moc" -I"ui" -I"..\..\..\..\lib\Qt\4.2.3\mkspecs\win32-g++" -o
obj\qrc_application.o release\qrc_application.cpp
g++ -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import
-Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows
-o "release\src.exe" object_script.src.Release -L"c:\lib\Qt\4.2.3\lib"
-lmingw32 -lqtmain -lQtXml4 -L"C:\lib\CGAL-3.2.1\lib\i686_CY
GWINNT-5.1_g++-3.4.4" -lCGAL -lQtGui4 -lQtCore4
./obj\BoundingArea.o(.text$_ZN4CGAL16ch_graham_andrewIN9__gnu_cxx17__normal_iteratorIPNS_7Point_2INS_9CartesianIfEEEESt6vectorIS6_SaI
S6_EEEESt20back_insert_iteratorINS_9Polygon_2I6KernelSA_EEES5_EET0_T_SI_SH_RKT1_[std::back_insert_iterator<CGAL::Polygon_2<Kernel,
st
d::vector<CGAL::Point_2<CGAL::Cartesian<float> >,
std::allocator<CGAL::Point_2<CGAL::Cartesian<float> > > > > >
CGAL::ch_graham_andre
w<__gnu_cxx::__normal_iterator<CGAL::Point_2<CGAL::Cartesian<float> >*,
std::vector<CGAL::Point_2<CGAL::Cartesian<float> >, std::allo
cator<CGAL::Point_2<CGAL::Cartesian<float> > > > >,
std::back_insert_iterator<CGAL::Polygon_2<Kernel,
std::vector<CGAL::Point_2<CGAL:
:Cartesian<float> >, std::allocator<CGAL::Point_2<CGAL::Cartesian<float> > >
> > >, CGAL::Cartesian<float> >(__gnu_cxx::__normal_iter
ator<CGAL::Point_2<CGAL::Cartesian<float> >*,
std::vector<CGAL::Point_2<CGAL::Cartesian<float> >,
std::allocator<CGAL::Point_2<CGAL::
Cartesian<float> > > > >,
__gnu_cxx::__normal_iterator<CGAL::Point_2<CGAL::Cartesian<float> >*,
std::vector<CGAL::Point_2<CGAL::Carte
sian<float> >, std::allocator<CGAL::Point_2<CGAL::Cartesian<float> > > > >,
std::back_insert_iterator<CGAL::Polygon_2<Kernel, std::ve
ctor<CGAL::Point_2<CGAL::Cartesian<float> >,
std::allocator<CGAL::Point_2<CGAL::Cartesian<float> > > > > >,
CGAL::Cartesian<float> co
nst&)]+0x3ad): In function `ZN12BoundingArea7processEv':
C:/DOC/POLYTECH/SymbSpotting/src/BoundingArea.cpp:29: undefined reference to
`CGAL::postcondition_fail(char const*, char const*, int,
char const*)'

Le Makefile (début) :

CC = gcc
CXX = g++
LEX = flex
YACC = byacc
DEFINES = -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMAIN
CFLAGS = -O2 -O2 -Wall $(DEFINES)
CXXFLAGS = -O2 -O2 -frtti -fexceptions -Wall $(DEFINES)
LEXFLAGS =
YACCFLAGS = -d
INCPATH = -I"C:/lib/Qt/4.2.3/include/QtCore"
-I"C:/lib/Qt/4.2.3/include/QtCore" -I"C:/lib/Qt/4.2.3/include/QtGui"
-I"C:/lib/Qt/4.2.3/include/QtGui" -I"C:/lib/Qt/4.2.3/include" -I"."
-I"C:/lib/boost_1_33_1" -I"C:/lib/gmp-4.2.1" -I"C:/lib/mpfr-2.2.1"
-I"$(CGALROOT)\include\CGAL\config\i686_CYGWINNT-5.1_g++-3.4.4"
-I"$(CGALROOT)\include" -I"C:/lib/Qt/4.2.3/include/ActiveQt" -I"moc" -I"ui"
-I"..\..\..\..\lib\Qt\4.2.3\mkspecs\win32-g++"
LINK = g++
LFLAGS = -mthreads -Wl,-enable-stdcall-fixup
-Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s
-Wl,-subsystem,windows
LIBS = -L"c:\lib\Qt\4.2.3\lib" -lmingw32 -lqtmain -lQtXml4
-L"$(CGALROOT)\lib\i686_CYGWINNT-5.1_g++-3.4.4" -lCGAL -lQtGui4 -lQtCore4
QMAKE = qmake






Archive powered by MHonArc 2.6.16.

Top of Page