[CLN-list] How to compile GiNaC under MinGW/MSYS

Alexei Sheplyakov alexei.sheplyakov at gmail.com
Wed May 26 21:31:41 CEST 2010


Hello,

On Wed, May 26, 2010 at 04:21:32PM +0800, wang wayne wrote:

> gmp OK,but  cln gives me this error:
> 
> g++ pi.cc -I/GiNaC1/include -L/GiNaC1/lib -lcln -o pi 2>a.txt

You have to explicitly link with GMP library on Windows:

g++ pi.cc -I/GiNaC1/include -L/GiNaC1/lib -lcln -lgmp -o pi 2>a.txt

(GNU/Linux linker adds -lgmp on its own, unfortunately MinGW linker is not
that smart).

Hope this helps,
	Alexei



More information about the CLN-list mailing list