dlidstrom / Duplo

Duplicates finder for various source code formats.
GNU General Public License v2.0
93 stars 21 forks source link

Build error using windows sln file #39

Closed Chris-R-R closed 3 weeks ago

Chris-R-R commented 1 year ago

error C2065: 'DUPLO_VERSION': undeclared identifier

Chris-R-R commented 1 year ago

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 __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 commented 1 year ago

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.

dlidstrom commented 1 year ago

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!