From ba4faacc518d900ca84a03811ebc5cb957141d30 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Rheinl=C3=A4nder?= Date: Mon, 20 Sep 2010 12:29:20 +0000 Subject: [PATCH] [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. --- ginac/exprseq.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.45.0