This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: eCos and C++



What I meant in developing C++ application, is not to use the eCos C++ API, but ISO C++ code: iostream ....


for example: can I compile and run the following code:

#include <iostream>
int main()
{
  std::cout << "Hello World" << std::endl;
  return 0;
}


Thanks, Ilan Andrew Lunn wrote:
On Wed, Jun 18, 2003 at 08:32:55AM +0100, Retallack, Mark (Poole) wrote:

The core of eCos is C++ classes. C stub functions have been added for use in
basic C code. So you could make an application in C++. However it has been
suggested that you should use the 'c' based kernel calls instead of the cpp
classes directly. I cannot remember why, I did try to find the thread on the
mailing list but it is not easy to search for the keyword "c++".


Only the C API is documented and guaranteed to not change. The
internal C++ API is not documented and at times has changed in ways
that can break compatibility.


Some people do use the C++ API, but with the understanding that things
could break at any time.


Andrew



--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]