]> www.ginac.de Git - ginac.git/commitdiff
[msvc] Yet another compiler bug work around.
authorJan Rheinländer <jrheinlaender@gmx.de>
Mon, 20 Sep 2010 12:29:20 +0000 (12:29 +0000)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Fri, 26 Nov 2010 22:15:55 +0000 (00:15 +0200)
msvc does not include the exprseq::info() method, giving unresolved symbols
when linking. Apparently adding a dummy function "fixes" the problem.

ginac/exprseq.cpp

index 2b17e8a6ae057ef8fcf36672715791e72f6c1bdc..947d32bd2821122e8b5557c4b59041364739a892 100644 (file)
@@ -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