[GiNaC-list] Cygwin compilation problem

Alexei Sheplyakov varg at theor.jinr.ru
Thu Nov 6 16:05:47 CET 2008


On Thu, Nov 06, 2008 at 03:38:29PM +0100, Giuseppe Brandino wrote:

> i get TONS of error like
> /usr/local/lib/libginac.a(inifcns_nstdsums.o): In function  
> `_Z41__static_initialization_and_destruction_0ii':
> /usr/local/include/cln/univpoly.h:454: undefined reference to `global  


> and this is just a part of it.

> I compile using
> g++ prog.c -L/usr/local/lib -lcln -lginac -o prog.x
The name `prog.c' confuses g++, it thinks it's a C program (and don't
link necessary stuff in). Please either rename your program (to prog.cc,
prog.cpp), or use

g++ -x c++ prog.c -L/usr/local/lib -lcln -lginac -o prog.x

Hope this helps,

All science is either physics or stamp collecting.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://www.cebix.net/pipermail/ginac-list/attachments/20081106/56da44fc/attachment.sig 

More information about the GiNaC-list mailing list