[GiNaC-devel] Patch 6

Jan private jrheinlaender at gmx.de
Fri Sep 10 05:14:49 CEST 2010


Problem: MSVC creates different symbols for "extern const ex _ex0" if it
is declared at top-level (inside GiNaC namespace) and if it is declared
inside the body of a function (also inside GiNaC namespace). When
linking, unresolved external symbols occur.

Solution: Moved the declaration out of the body of the function

Note: Instead of #include utils.h the same effect would probably be
achieved by 
namespace GiNaC {
  extern const ex _ex0;
}
at the beginning of the file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: _ex0.patch
Type: text/x-patch
Size: 1373 bytes
Desc: not available
URL: <http://www.cebix.net/pipermail/ginac-devel/attachments/20100910/f3372258/attachment-0001.patch>


More information about the GiNaC-devel mailing list