воскресенье, 24 февраля 2013 г.

“Already defined” linker error

This error is very common, when you try to compile in Visual Studio a huge cross-platform C++ project.

This is because of standart C++ templates, that are released in Visual Studio libs and in additional UNIX libs too. So, you have to exclude one of them to use another.

Just add one of them, go to Project Properties / Linker / Input / Ignore Specific Default Libraries and add the standard lib that produces conflict. For me it was enough to add LIBCMT.LIB.

Комментариев нет:

Отправить комментарий