Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » nullptr
nullptr [message #716771] Thu, 18 August 2011 12:19 Go to next message
fuliofuleto is currently offline fuliofuletoFriend
Messages: 1
Registered: August 2011
Junior Member
I use Eclipse Indigo with CDT8 and have the problem that nullptr from C++0x does not work. 'nullptr' unresolved. Do I need to adjust something?

#include <iostream>

using namespace std;

int main() {

	int *test = nullptr;

	cout << "test" << endl; 

	return 0;
}
Re: nullptr [message #719675 is a reply to message #716771] Sun, 28 August 2011 10:48 Go to previous message
todin.dirihle is currently offline todin.dirihleFriend
Messages: 1
Registered: August 2011
Junior Member
The bug is reported, but, according to the bugtracker, isn't fixed it yet.
I use the following workaround for this: Go to Project properties -> C/C++ General -> Paths and Symbols and on 'Symbols' tab add a new symbol for C++: nullptr, and set value to '0'. Not very nice solution, but works.
Previous Topic:Main file not found when importing a cpp file to understand simulation
Next Topic:How to use .a or .so libraries in Eclipse?
Goto Forum:
  


Current Time: Fri Apr 26 16:58:06 GMT 2024

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

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

Back to the top