Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Andmore » Imported C++ registered package issue
Imported C++ registered package issue [message #1760972] Thu, 04 May 2017 19:08 Go to next message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
I imported the C++ STL registered package into a project and added a property, s, of type string to a class. Then I generated the code.

The generated .h file contains this:
class myHelloWorldClass {
public:
	/**
	 * 
	 */
	string s;

	/**
	 * 
	 */
	void run();

};


The problem is that the type should be "std::string" instead of just "string" so the code will not compile as is.

The workaround is to add "using namespace std;" to the header but this should not be necessary. Is there another way?

I understand that this library is still a work in progress and the bugzilla improvement issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=496934 is still in the NEW state.

Also I would like to help fix this and work on the STL package if someone will point me in the right direction.

Steve

PS This is with version 2.0.3.201703080851.
Re: Imported C++ registered package issue [message #1760973 is a reply to message #1760972] Thu, 04 May 2017 19:26 Go to previous message
Stephen Blackwell is currently offline Stephen BlackwellFriend
Messages: 138
Registered: March 2014
Senior Member
Oops, wrong forum!!
Previous Topic:Can't open Eclipse after computer crash
Next Topic:OpaqueBehavior editor issues
Goto Forum:
  


Current Time: Thu Mar 28 23:38:30 GMT 2024

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

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

Back to the top