Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do I get linker errors when building a simple problem using VXL libraries?

0
Posted

Why do I get linker errors when building a simple problem using VXL libraries?

0

After having successfully built VXL under MS Visual Studio, and now trying to build a simple program that uses the libraries, the linker can complain that there are multiple definitions (error LNK2005) of several things from the C++ Standard Library. These kinds of errors often indicate that you are linking against different C++ run-time libraries that you compiled VXL with (release vs debug, static vs DLL stdlib, etc). The flags like /MP and /MD much match exactly, in VXL’s build and your program’s build. These flags are set in Visual Studio under Settings->C/C++->Code Generation->Use run-time library. The easiest way to link against these projects, we’ve found, is to use CMake for your project too. CMake will then make sure the flags match, or else will give you an error or warning.

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.