Topic: Windows10+VisualStudio2013 compilation error

I followed the module Windows installation with Visual Studio in the website http://www.oofem.org/wiki/doku.php?id=i … t_version. And I deselected the option  USE_SHARED_LIB in CMake. But when I am compiling in VS, such error occurred, and the compiling failed...

Warning    1494    warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc    F:\Visual Studio 2012\VC\include\xlocale    337    1    oofem
Warning    1495    warning C4101: 'c' : unreferenced local variable    C:\oofem.git\src\main\main.C    302    1    oofem
Error    1496    error LNK1104: cannot open file 'C:\Build\src\oofemlib\core.dir\Debug\heap.obj'    C:\Build\LINK    oofem

and the information corresponding to the warnings are
in xlocal.C

    locale(const locale& _Loc, const locale& _Other,
        category _Cat)
        : _Ptr(_Locimp::_New_Locimp(*_Loc._Ptr))
        {    // construct a locale by copying named facets
        _TRY_BEGIN
        _BEGIN_LOCINFO(_Lobj(_Loc._Ptr->_Catmask, _Loc._Ptr->_Name.c_str()))
            _Locimp::_Makeloc(_Lobj._Addcats(_Cat & _Other._Ptr->_Catmask,
                _Other._Ptr->_Name.c_str()), _Cat, _Ptr, &_Other);
        _END_LOCINFO()
        _CATCH_ALL
        _DELETE_CRT(_Ptr->_Decref());
        _RERAISE;
        _CATCH_END
        }

in main.C
    try {
        problem->solveYourself();
    } catch(OOFEM_Terminate & c) {
        delete problem;

        oofem_finalize_modules();

        return 1;
    }

What is the cause of these warnings and error?

Post's attachments

2017.png 25.19 kb, 1 downloads since 2017-04-05 

You don't have the permssions to download the attachments of this post.

Re: Windows10+VisualStudio2013 compilation error

Dear shiyongan,
it seems that heap.obj cannot be compiled properly. Please try to compile only the "core" project before to proceed further, you should find a more detaled error in the VS log.