dailos
2009-06-23 21:01:38 UTC
Hi all,
I've got a compiler error when I include math or limits c++
standard libraries as follows:
#include <limits>
int main()
{
return 0;
}
I'm running gcc compiler on a unix system in this way:
g++ example.cpp
and the following error comes up:
limits: "No such file or directory"
The files which contain these statements belong to boost libraries.
So i guess there is something wrong with the
system or compiler.
I realised writing #include <limits.h> solves the problem.
But is not also the first expression grammatically correct in
standard c++?
Am I using a non-standard compiler?
As the source code comes from third-party libraries, how could I
bypass this issue avoiding to modify the
current file?
Many thanks in advance.
I've got a compiler error when I include math or limits c++
standard libraries as follows:
#include <limits>
int main()
{
return 0;
}
I'm running gcc compiler on a unix system in this way:
g++ example.cpp
and the following error comes up:
limits: "No such file or directory"
The files which contain these statements belong to boost libraries.
So i guess there is something wrong with the
system or compiler.
I realised writing #include <limits.h> solves the problem.
But is not also the first expression grammatically correct in
standard c++?
Am I using a non-standard compiler?
As the source code comes from third-party libraries, how could I
bypass this issue avoiding to modify the
current file?
Many thanks in advance.
--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]