Пытаюсь настроить зависимости в Soultion --> Project Dependencies. Не особо понимаю почему не работает, просто у меня есть другие проекты где все работает.
Если добавить Interpolation.lib в Addition Dependencies то работает, но это ведь другой способ добавить зависимость, и оно должно работать без этого если я добавляю как зависимый проект. В папке Debug Interpolation.lib тоже присутсвует.
Вот код в проекте Tests/main.cpp:
#include"../Interpolation/1D/LinearInterpolator.h"
int main()
{
std::vector<double> x = { 0, 1, 2, 3, 4 };
std::vector<double> f = { 0, 2, 4, 9, 16 };
LinearInterpolator interpolator(x, f);
double fi = interpolator(15.0);
}
Ошибка:
error LNK2019: unresolved external symbol "public: __cdecl LinearInterpolator::LinearInterpolator(class std::vector > const &,class std::vector > const &)" (??0LinearInterpolator@@QEAA@AEBV?$vector@NV?$allocator@N@std@@@std@@0@Z) referenced in function main
Что я сделал: