Web lists-archives.com

Re: [Mingw-users] Location of sqrt for g++ compilation

> From: Jeffrey Gitlin <jgitlin@xxxxxxxxxxxxx>
> Date: Sat, 14 Jan 2017 18:22:35 +0000
> When compiling with MINGW g++
> where is the code for sqrt? Is in libstdc++.a?
> Years ago when you wanted to compile a program that used sqrt,
> you had to type:
> g++ prog.cpp -lm
> to link against libm.a

It will still work with MinGW, although you don't have to (math
functions are in the standard library, which is always linked in).

Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
MinGW-users mailing list

This list observes the Etiquette found at 
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe