Dear Author,
Take into account, please that 'minGW' compiler is still not supported by OCCT
(see for details chapter "Supported Platforms and Pre-requisites" of OCCT7.0.0 Release Notes).
Best regards
FSR.
Archived discussion
Dear all,
I downloaded the latest release (OCCT Certified version 7.0.0) and tried to build OCCT libraries from sources using Code::Blocks 16.01
I received the following ERROR after I launched the script codeblocks.bat to start Code::Blocks and clicked Build->Build workspace in the menu bar to build all toolkits. Any idea?
...
mingw32-g++.exe -mmmx -msse -msse2 -mfpmath=sse -std=gnu++0x -D_WIN32_WINNT=0x0501 -Wall -fexceptions -I -O2 -DNDEBUG -DNo_Exception -D__math_DLL -D__ElCLib_DLL -D__ElSLib_DLL -D__BSplCLib_DLL -D__BSplSLib_DLL -D__PLib_DLL -D__Precision_DLL -D__GeomAbs_DLL -D__Poly_DLL -D__CSLib_DLL -D__Convert_DLL -D__Bnd_DLL -D__BVH_DLL -D__gp_DLL -D__TColgp_DLL -D__TopLoc_DLL -D__Expr_DLL -D__ExprIntrp_DLL -I..\..\..\inc -c E:\src\opencascade-7.0.0\src\math\math_DoubleTab.cxx -o ..\..\..\wnt\cbp\obj\src\math\math_DoubleTab.o
mingw32-g++.exe -shared -Wl,--out-implib=..\..\..\wnt\cbp\lib\libTKMath.a -Wl,--dll -L..\..\..\wnt\cbp\lib ..\..\..\wnt\cbp\obj\src\ExprIntrp\ExprIntrp.tab.o ..\..\..\wnt\cbp\obj\src\ExprIntrp\lex.ExprIntrp.o ..\..\..\wnt\cbp\obj\src\math\math.o -o ..\..\..\wnt\cbp\bin\libTKMath.dll -Wl,--export-all-symbols @TKMath_obj.link -L -lTKernel
..\..\..\wnt\cbp\obj\src\math\math.o:math.cxx:(.text$_ZN11opencascade6handleI13Standard_TypeE10BeginScopeEv[__ZN11opencascade6handleI13Standard_TypeE10BeginScopeEv]+0x1a): undefined reference to `Standard_Transient::IncrementRefCounter() const'
..\..\..\wnt\cbp\obj\src\math\math.o:math.cxx:(.text$_ZN14math_SingleTabIdE4FreeEv[__ZN14math_SingleTabIdE4FreeEv]+0x33): undefined reference to `Standard::Free(void*)'
C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/mingw32/4.9.2/../../../../mingw32/bin/ld.exe: ..\..\..\wnt\cbp\obj\src\math\math.o: bad reloc address 0x33 in section `.text$_ZN14math_SingleTabIdE4FreeEv[__ZN14math_SingleTabIdE4FreeEv]'
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (1 minute(s), 26 second(s))
3 error(s), 0 warning(s) (1 minute(s), 26 second(s))
Discussion
Posts are displayed in their archived order.
Dear Author,
Take into account, please that 'minGW' compiler is still not supported by OCCT
(see for details chapter "Supported Platforms and Pre-requisites" of OCCT7.0.0 Release Notes).
Best regards
FSR.
Dear Author,
Sorry, small correction.
We are not supporting MinGW-w32, but supporting MinGW-w64.
You can try it.
Best regards
FSR.