Just to check: are you adding the library, besides adding the lib
folders? They only tell the linker where to look for libraries, but
you still have to specify which ones you need.
On Windows, including <qla/auto_link.hpp> might do the job.
Luigi
On Thu, Nov 29, 2012 at 1:33 PM, Lapin <
[hidden email]> wrote:
> 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
>
>
>
>
>
>
> --
> View this message in context:
http://quantlib.10058.n7.nabble.com/Simple-Addin-in-C-does-not-compile-tp13748.html> Sent from the quantlib-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> VERIFY Test and improve your parallel project with help from experts
> and peers.
http://goparallel.sourceforge.net> _______________________________________________
> QuantLib-users mailing list
>
[hidden email]
>
https://lists.sourceforge.net/lists/listinfo/quantlib-users------------------------------------------------------------------------------
Keep yourself connected to Go Parallel:
TUNE You got it built. Now make it sing. Tune shows you how.
http://goparallel.sourceforge.net_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users