Simple Addin in C++ does not compile
Posted by Lapin on
URL: http://quantlib.414.s1.nabble.com/Simple-Addin-in-C-does-not-compile-tp13748.html
All,
I have been following all docs I could find on the subject, but even the following simple script does not compile under VC10.
#include <qlo/qladdin.hpp>
#include <iostream>
int main()
{
std::cout << QuantLibAddin::qlAddinVersion() << std::endl;
}
There is a link error I cannot manage to remove.
error LNK2001: unresolved external symbol
__cdecl QuantLibAddin::qlVersion(void)
I have been including all correct (at least I think) lib folders I need (QL, QLObjectHandler, Log4cxx, QLAddin/Addins/Cpp/Lib...) but nothing works.
Could someone have already encountered (and fixed) the issue?
Cheers