Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » C++ Neon Compiler Error: INT_MAX was not declared in this scope/could not be resolved.(I'm running a simple tutorial program and encountered the error in the thread title.)
C++ Neon Compiler Error: INT_MAX was not declared in this scope/could not be resolved. [message #1728758] Thu, 07 April 2016 06:50 Go to next message
Tom Mattson is currently offline Tom MattsonFriend
Messages: 4
Registered: March 2016
Junior Member
Hi all! Very Happy

I'm new to Eclipse and trying to brush up on C++ that I took a looooong time ago. I'm going through John Purcell's "Cave of Programming" series, and everything was going without a hitch until I hit the 9th video on integer types. This code worked for him, but not for me. Any ideas of what behind the scenes settings I need to change?

index.php/fa/25571/0/

Thanks in advance! Smile
Re: C++ Neon Compiler Error: INT_MAX was not declared in this scope/could not be resolved. [message #1728817 is a reply to message #1728758] Thu, 07 April 2016 15:13 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
INT_MAX is defined in <climits> or <limits.h>. <limits> contains the std:::numeric_limits class.

http://www.cplusplus.com/reference/climits/
http://www.cplusplus.com/reference/limits/numeric_limits/
Re: C++ Neon Compiler Error: INT_MAX was not declared in this scope/could not be resolved. [message #1728836 is a reply to message #1728817] Thu, 07 April 2016 18:08 Go to previous messageGo to next message
Tom Mattson is currently offline Tom MattsonFriend
Messages: 4
Registered: March 2016
Junior Member
Thank you, David. I actually discovered that the solution was to replace limits with limits.h before my thread was approved by the moderators. I got a little tripped up by the fact that I'm using Windows and the instructor is using a Mac.

Thanks again!

Tom
Re: C++ Neon Compiler Error: INT_MAX was not declared in this scope/could not be resolved. [message #1859197 is a reply to message #1728758] Thu, 18 May 2023 20:08 Go to previous message
Tran Nhat Tan is currently offline Tran Nhat TanFriend
Messages: 1
Registered: May 2023
Junior Member
i tried all the climits and limits.h but still can't resolve INT_MAX symbol, do you have any ideas why ?
Previous Topic:project won't compile
Next Topic:C vs C++: Understanding the Differences
Goto Forum:
  


Current Time: Wed Feb 05 17:10:01 GMT 2025

Powered by FUDForum. Page generated in 0.02859 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top