Author Topic: Compilation issue with VS2015 (update 1)  (Read 449 times)

galavi

  • Newbie
  • *
  • Posts: 8
Compilation issue with VS2015 (update 1)
« on: October 16, 2016, 09:17:52 PM »
Hi,

I have just updated the code and it seems that the Kratos code has been broken (rev. 17439). The code must be broken after October 10th.

These are the error messages that I get in VS2015 (update 1):

1>     Creating library D:/Libraries/FEM/Kratos/cmake_build/kratos/Release/Kratos.lib and object D:/Libraries/FEM/Kratos/cmake_build/kratos/Release/Kratos.exp
1>add_model_to_python.obj : error LNK2019: unresolved external symbol "public: void __thiscall Kratos::Model::AddModelPart(class boost::shared_ptr<class Kratos::ModelPart>)" (?AddModelPart@Model@Kratos@@QAEXV?$shared_ptr@VModelPart@Kratos@@@boost@@@Z) referenced in function "void __cdecl Kratos::Python::AddModelToPython(void)" (?AddModelToPython@Python@Kratos@@YAXXZ)
1>add_model_to_python.obj : error LNK2019: unresolved external symbol "public: class Kratos::ModelPart & __thiscall Kratos::Model::GetModelPart(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?GetModelPart@Model@Kratos@@QAEAAVModelPart@2@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function "void __cdecl Kratos::Python::AddModelToPython(void)" (?AddModelToPython@Python@Kratos@@YAXXZ)
1>add_model_to_python.obj : error LNK2001: unresolved external symbol "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Kratos::Model::Info(void)const " (?Info@Model@Kratos@@UBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ)
1>add_model_to_python.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Kratos::Model::PrintInfo(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?PrintInfo@Model@Kratos@@UBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
1>add_model_to_python.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall Kratos::Model::PrintData(class std::basic_ostream<char,struct std::char_traits<char> > &)const " (?PrintData@Model@Kratos@@UBEXAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@@Z)
1>D:\Libraries\FEM\Kratos\cmake_build\kratos\Release\Kratos.pyd : fatal error LNK1120: 5 unresolved externals

pooyan

  • Global Moderator
  • Newbie
  • *****
  • Posts: 33
Re: Compilation issue with VS2015 (update 1)
« Reply #1 on: October 17, 2016, 04:49:21 PM »
The API for dll exposure was missing for model. I have just committed the fix.

Bests,

galavi

  • Newbie
  • *
  • Posts: 8
Re: Compilation issue with VS2015 (update 1)
« Reply #2 on: October 18, 2016, 10:01:19 AM »
Thanks Pooyan.