Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error when including 'limits' standard c++ library

0 views
Skip to first unread message

dailos

unread,
Jun 23, 2009, 1:49:06 PM6/23/09
to
Hi all,
I am not really sure if this question suits in this group. Sorry if
doesn't:
I've got a compiling 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.
It's grammatically OK, so i guess there is something wrong with the
system or compiler.
Am I using a non-standard compiler? As the code from third-party
libraries, how could I bypass this issue avoiding to change the
current source code?

Many thanks in advance.

news.giganews.com

unread,
Jun 26, 2009, 2:42:42 AM6/26/09
to dailos
Try

#include <limits.h>
#include <math.h>

These are header files - for the libraries.

Gerard Gold

sdet...@gmail.com

0 new messages