ggasoftware / indigo

Indigo: a cheminformatics toolkit. Bingo: RDBMS data cartridge for Oracle, MS SQL Server, and PostgreSQL
https://lifescience.opensource.epam.com/indigo
47 stars 15 forks source link

Difficulty Building with Visual Studio 2010 #1

Closed Jastonite closed 13 years ago

Jastonite commented 13 years ago

I downloaded the project and converted the indigo-depict solution to a Visual Studio 2010 solution. When I attempted to build I go 10 link errors. Is there something I am missing during the build, or is there documentation on how to build somewhere? Thanks.

tinyxml.lib(tinyxml.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance

LIBCMT.lib(invarg.obj) : error LNK2005: ___pInvalidArgHandler already defined in LIBCMTD.lib(invarg.obj)

LIBCMT.lib(invarg.obj) : error LNK2005: __initp_misc_invarg already defined in LIBCMTD.lib(invarg.obj)

LIBCMT.lib(invarg.obj) : error LNK2005: __call_reportfault already defined in LIBCMTD.lib(invarg.obj)

LIBCMT.lib(invarg.obj) : error LNK2005: __set_invalid_parameter_handler already defined in LIBCMTD.lib(invarg.obj)

LIBCMT.lib(invarg.obj) : error LNK2005: __get_invalid_parameter_handler already defined in LIBCMTD.lib(invarg.obj)

LIBCMT.lib(invarg.obj) : error LNK2005: __invoke_watson already defined in LIBCMTD.lib(invarg.obj)

LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl _invoke_watson(unsigned short const ,unsigned short const ,unsigned short const *,unsigned int,unsigned int)" (?_invoke_watson@@YAXPBG00II@Z) already defined in LIBCMTD.lib(invarg.obj)

LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter already defined in LIBCMTD.lib(invarg.obj)

LIBCMT.lib(invarg.obj) : error LNK2005: "void __cdecl _invalid_parameter(unsigned short const ,unsigned short const ,unsigned short const *,unsigned int,unsigned int)" (?_invalid_parameter@@YAXPBG00II@Z) already defined in LIBCMTD.lib(invarg.obj)

Jastonite commented 13 years ago

The problem seems to be a conflict between debug libraries and release libraries. Some of the dependent projecects do not have debug builds. It compiles fine in Release.

ggasoftware commented 13 years ago

It can be fixed with the following setting: Configuration Properties -> Linker -> Input -> Ignore Specific Libraries -> LIBCMT.LIB. It is fixed in beta9, which is already switched to VS2010, no need to convert anymore.