I'm a student and I try to learn C language. I use Visual C++ Studio Express. I'd like to use MathGl in my programs but I can't configure my compiler correctly.
I can't build any code because an error : "1>libmgl.a(canvas_cf.cpp.obj) : fatal error LNK1143: invalid or corrupt file: no symbol for COMDAT section 0xE" occurs and I have no idea how to deal with it.
I use win7 x64 HE, I've downloaded gls and mgl 2.0.0.3 for windows.
(mathgl-2.0.3-mingw.i686.7z)
libmgl.a is library file used by GNU compilers (like MinGW). For all other compilers, like MSVS, you need to produce appropriate library file from provided DLL.
Note, that you'll be unable to use widgets (like QMathGL) with provided DLL, due to incompatibility of C++ function naming in different compilers. If you need widgets when you have to rebuild MathGL for yours compiler by yourself.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
I'm a student and I try to learn C language. I use Visual C++ Studio Express. I'd like to use MathGl in my programs but I can't configure my compiler correctly.
I can't build any code because an error : "1>libmgl.a(canvas_cf.cpp.obj) : fatal error LNK1143: invalid or corrupt file: no symbol for COMDAT section 0xE" occurs and I have no idea how to deal with it.
I use win7 x64 HE, I've downloaded gls and mgl 2.0.0.3 for windows.
(mathgl-2.0.3-mingw.i686.7z)
My build options:
/ZI /nologo /W3 /WX- /Od /Oy- /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /Gm /EHsc /RTC1 /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fp"Debug\wykresy.pch" /Fa"Debug\" /Fo"Debug\" /Fd"Debug\vc100.pdb" /Gd /analyze- /errorReport:queue
I'd be really grateful if smb could help me with it.
Last edit: pioter_t 2012-10-18
Hi,
libmgl.a is library file used by GNU compilers (like MinGW). For all other compilers, like MSVS, you need to produce appropriate library file from provided DLL.
Note, that you'll be unable to use widgets (like QMathGL) with provided DLL, due to incompatibility of C++ function naming in different compilers. If you need widgets when you have to rebuild MathGL for yours compiler by yourself.
Thanks a lot.