[GiNaC-list] Cygwin compilation problem
Giuseppe Brandino
brandino at sissa.it
Thu Nov 6 16:20:59 CET 2008
Hi
i tried both ways, still the same errors.
Any other suggestion?
thanks a lot
Quoting Alexei Sheplyakov <varg at theor.jinr.ru>:
> Hi,
>
> 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
>
> [snipped]
>
>> 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,
> Alexei
>
> --
> All science is either physics or stamp collecting.
>
>
----------------------------------------------------------------
SISSA Webmail https://webmail.sissa.it/
Powered by Horde http://www.horde.org/
More information about the GiNaC-list
mailing list