Duplo icon indicating copy to clipboard operation
Duplo copied to clipboard

Build error using windows sln file

Open Chris-R-R opened this issue 3 years ago • 3 comments

error C2065: 'DUPLO_VERSION': undeclared identifier

Chris-R-R avatar Dec 02 '22 07:12 Chris-R-R

I defined that macro and then got another error:

1>FileTypeFactory.obj : error LNK2019: unresolved external symbol "public: __thiscall FileType_Ada::FileType_Ada(bool,unsigned int)" (??0FileType_Ada@@QAE@_NI@Z) referenced in function "class std::shared_ptr<struct IFileType> __cdecl FileTypeFactory::CreateFileType(class std::basic_string<char,struct std::char_traits,class std::allocator > const &,bool,unsigned int)" (?CreateFileType@FileTypeFactory@@YA?AV?$shared_ptr@UIFileType@@@std@@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@3@_NI@Z) 1>Debug\Duplo.exe : fatal error LNK1120: 1 unresolved externals

I am building from the sln file in the downloaded zip

Chris-R-R avatar Dec 02 '22 07:12 Chris-R-R

I don't care about Ada support so I commented out lines 27 and 28 in FileTypeFactory.cpp and then it was able to build.

Chris-R-R avatar Dec 02 '22 07:12 Chris-R-R

Yeah I don't keep the solution and vcxproj files updated. You can just add the missing file to the project file then it will compile (presumably, since there's nothing special about Ada support, see it's missing here). If you do then you could add a PR for both fixes and become a contributor. Thanks!

dlidstrom avatar Dec 02 '22 11:12 dlidstrom