From: Veit J. <nun...@go...> - 2016-12-26 08:59:31
|
Hi Jonas, I worked on CLucene a while ago. There are two options, one is to add the missing header file where needed. The other, to add the legacy library file in CMake file. At the moment, I don't know what is better. I have to take a look at the source code as well. Best regards Veit Am 15.12.2016 1:44 nachm. schrieb "Jonas Poelmans" <jon...@gm... >: > Dear all, > > It seems that CLucene cannot be compiled with Visual Studio 2015. Each > time I tried to configure with CLucene, I saw the error "printf could not > be found". I think the reason is the following: > "The printf and scanf family of functions are now defined inline. The > definitions of all of the printf and scanf functions have been moved inline > into <stdio.h>, <conio.h>, and other CRT headers. This is a breaking change > that leads to a linker error (LNK2019, unresolved external symbol) for any > programs that declared these functions locally without including the > appropriate CRT headers. If possible, you should update the code to include > the CRT headers (that is, add #include <stdio.h>) and the inline functions, > but if you do not want to modify your code to include these header files, > an alternative solution is to add an additional library to your linker > input, legacy_stdio_definitions.lib." > > If somebody who is experienced with CLucene development could give me some > pointers on how to resolve this issue, I can work out a patch and post it > on GitHub. > > Best regards, > > Jonas > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > CLucene-developers mailing list > CLu...@li... > https://lists.sourceforge.net/lists/listinfo/clucene-developers > > |