From: Jan Rheinländer Date: Mon, 20 Sep 2010 12:29:20 +0000 (+0000) Subject: [msvc] Yet another compiler bug work around. X-Git-Tag: release_1-6-0~19^2~2 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=ba4faacc518d900ca84a03811ebc5cb957141d30 [msvc] Yet another compiler bug work around. msvc does not include the exprseq::info() method, giving unresolved symbols when linking. Apparently adding a dummy function "fixes" the problem. --- diff --git a/ginac/exprseq.cpp b/ginac/exprseq.cpp index 2b17e8a6..947d32bd 100644 --- a/ginac/exprseq.cpp +++ b/ginac/exprseq.cpp @@ -37,4 +37,10 @@ template <> bool exprseq::info(unsigned inf) const return inherited::info(inf); } +#ifdef _MSC_VER + // MSVC does not include exprseq::info() in the library without + // defining some kind of dummy function here + basic* dummy_func(void) { return new exprseq(); } +#endif + } // namespace GiNaC