I am completely new to C++ but I've been asked to port some windows
mobile C++ to basic ANSI C++
I have been reading up on C++ and learning as best I can as I port the
code.
Googling issues as I hit them.
But this one issue has been slowing me up a while now and I need help
as the solutions Google threw up are not working
Here is my code
//charString.h
]#ifndef CHARSTRING_H
#define CHARSTRING_H
#include <string>
std::string my_string("");
static char* EmptyString=my_string;
classes...
{
};
#endif
And the GCC compiler errors:
CharString.h:26: error: 'string' in namespace 'std' does not name a
type
CharString.h:27: error: 'my_string' was not declared in this scope
I have tried everything Google threw up including using namespace std
and other combinations.
So I was wondering if its to do with the libraries in the NDK, but
string is in there and from reading up its part of basic C++ so should
work in the NDK or am I wrong?
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to
andro...@googlegroups.com.
To unsubscribe from this group, send email to
android-ndk...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/android-ndk?hl=en.