Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot include library files in my MFC application

Status
Not open for further replies.

zaknwfp

Technical User
Jul 30, 2004
5
US
Hi,
I for some reason cannot get any libraries to work in my visual c++ 6.0 MFC application. I included math library in different ways using <include.h>, "include.h", and copying the library to my project folder. But none of these methods seem to work. Whenever I use sqrt() function, it gives me error saying "sqrt, unkonwn identifier". Can somebody help me please?

 
to use sqrt

have you tried putting
Code:
#include <math.h>
at the top of the source code file where you are using it

Go not to cats for advice for they will just walk over the keyboard
 
If it's C++ it should be

Code:
    #include<cmath>

if you care about conforming to the standard anyhow. ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top