git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e100d1
)
[msvc] Yet another compiler bug work around.
author
Jan Rheinländer
<jrheinlaender@gmx.de>
Mon, 20 Sep 2010 12:29:20 +0000
(12:29 +0000)
committer
Alexei 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
patch
|
blob
|
history
diff --git
a/ginac/exprseq.cpp
b/ginac/exprseq.cpp
index 2b17e8a6ae057ef8fcf36672715791e72f6c1bdc..947d32bd2821122e8b5557c4b59041364739a892 100644
(file)
--- 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