cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : UNIX/Linux Programming : math.h namespace problems
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Articles
Lounge
Jobs

-

post  math.h namespace problems

inini (3)
Hello,
I'm developing a c++ application on ubuntu.
I use some pre compiled libraries (I worked with them before)
the thing is I'n getting error messages when building such as
1
2
3
Vector3.h:163 error: 'sqrt' was not declared in this scope
Vector3.h:168 error: 'acos' was not declared in this scope
Atom.h:45 error: 'asin' was not declared in this scope

and so on..
the thing is that I do not use math.h in my code and these errors are in
the libraries I use. as I said I used these libs before with no problems.
any suggestions what it might be?
Thanks, Ini
|
Zaita (1450)
using namespace std; ?
|
inini (3)
I am "using namespace std;" but as I said
These errors are not in my code but in the libraries I use
so that won't help
|
bnbertha (404)
Have you used the libraries with this compiler before? You may need to change your library code, put in some #ifdef type stuff etc.
|
inini (3)
Yes I use the same system and the same compiler.
I suspect it might be some makefile flag but I'm not really sure...
|
bnbertha (404)
In that case you have changed something, a Makefile flag is a strong possibility if the code has not been touched.
|
Saneticus (6)
Posting a sample of the Vector3.h or Atom.h files would probably help...specifically the include directives and the context in which you are receiving the error.
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2008 - All rights reserved - v2.2
Spotted an error? contact us