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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with <math.h>/<cmath>

Status
Not open for further replies.

bulldogg8

Programmer
May 1, 2000
2
US
A group of collegues and myself have rcently been working on a project including the header files "math.h" and/or "cmath." The problem is when the program is compiled, it returns with an "internal compiler error" and will not run the program. The code, to the best of our knowledge is correct. We are using pre-defined functions "floor" and "ceil." I was curious as to whether there is a problem in the header files themselves, or a code problem. Any information will be greatly appreciated. Thank you.

bulldogg8
 
I don't use VC as much as I like to, so I don't know where you're getting "floor" and "ceil" from. I'm not saying that these functions don't exist. There is far more to any language that one person can master. But what is the source of your information. (A book you'ver read, something you saw in a newsgroup, or code you saw at a friends house?)
 
I'd have to see how you used the fx's in your code but I haven't had any problems using ceil or floor. Besides an internal compiler error doesn't sound like a problem with the functions - usually you would get an undefined function call if the header file wasn't properly included. Sorry not much help.

JC
 
I send my thanks to everyone who helped me with this problem that I've had. I have recently put in a new processor into my computer, and I have reason to believe it is that. (FYI: An AMD K6 400) However, no proven results from that have been found. Again, I thank everyone for your help and information.
Thanks,
Bulldogg8
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top