Ok, let's discuss the "lib" case please.
If precalc() is "undeclared" then the header mat.hpp is missing. The error comes from the compiler, not from the linker.
sorry it was a typo, the error is
C:\Users\myuser\Documents\example\example\program\main.cpp:11: error: undefined reference to `precalc(int, int)'
C:\Users\myuser\Documents\example\example\program\main.cpp:11: error: undefined reference to `precalc(int, int)'
To copy to clipboard, switch view to plain text mode
so it is linking problem? In qt app I tried both
LIBS += -L"C:\Users\myuser\Documents\example\example\build-elab-Desktop_Qt_5_1_1_MSVC2010_32bit-Release\release" -lelab
LIBS += "C:\Users\myuser\Documents\example\example\build-elab-Desktop_Qt_5_1_1_MSVC2010_32bit-Release\release\elab.lib"
LIBS += -L"C:\Users\myuser\Documents\example\example\build-elab-Desktop_Qt_5_1_1_MSVC2010_32bit-Release\release" -lelab
LIBS += "C:\Users\myuser\Documents\example\example\build-elab-Desktop_Qt_5_1_1_MSVC2010_32bit-Release\release\elab.lib"
To copy to clipboard, switch view to plain text mode
and I have
INCLUDEPATH += "C:\Users\myuser\Documents\example\example\elab"
INCLUDEPATH += "C:\Users\myuser\Documents\example\example\elab"
To copy to clipboard, switch view to plain text mode
where the mat.h is. Don't know what's missing here
Bookmarks