Compiling 7.4.0 from CodeBlock project

Hello,

I'm trying to build V7.4.0 under Windows 10 with MinGW.

The codeblocks.bat  nicely opens  Code::Blocks  and compilation starts smoothly.

But after a while, I get this error :

g++.exe -mmmx -msse -msse2 -mfpmath=sse -std=gnu++0x -D_WIN32_WINNT=0x0501 -Wall -fexceptions -I -O2 -DNDEBUG -DNo_Exception -I..\..\..\inc -c C:\CAD-Tools\OpenCascade\src\Units\Units_UnitsLexicon.cxx -o ..\..\..\wnt\gcc\obj\src\Units\Units_UnitsLexicon.o
g++.exe -mmmx -msse -msse2 -mfpmath=sse -std=gnu++0x -D_WIN32_WINNT=0x0501 -Wall -fexceptions -I -O2 -DNDEBUG -DNo_Exception -I..\..\..\inc -c C:\CAD-Tools\OpenCascade\src\Units\Units_UnitsSystem.cxx -o ..\..\..\wnt\gcc\obj\src\Units\Units_UnitsSystem.o
g++.exe -mmmx -msse -msse2 -mfpmath=sse -std=gnu++0x -D_WIN32_WINNT=0x0501 -Wall -fexceptions -I -O2 -DNDEBUG -DNo_Exception -I..\..\..\inc -c C:\CAD-Tools\OpenCascade\src\UnitsAPI\UnitsAPI.cxx -o ..\..\..\wnt\gcc\obj\src\UnitsAPI\UnitsAPI.o
g++.exe -shared  -Wl,--out-implib=..\..\..\wnt\gcc\lib\libTKernel.a -Wl,--dll -L..\..\..\wnt\gcc\lib ..\..\..\wnt\gcc\obj\src\FSD\FSD_Base64Decoder.o ..\..\..\wnt\gcc\obj\src\Resource\Resource_ConvertUnicode.o  -o ..\..\..\wnt\gcc\bin\libTKernel.dll -Wl,--export-all-symbols @TKernel_obj.link   -L  -ladvapi32 -lgdi32 -luser32 -lcomdlg32 -lwsock32 -lPsapi
C:/CAD-Tools/TDM-GCC/bin/../lib/gcc/x86_64-w64-mingw32/9.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: can't open .lib file: ..\..\..\wnt\gcc\lib\libTKernel.a
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 28 second(s))
1 error(s), 22 warning(s) (0 minute(s), 28 second(s))

 

Could anybody help ?

Thanks

John
 

 

Kirill Gavrilov's picture

Probably you will have more luck building OCCT using CMake.