>On 2001-12-22 21:34:06, os_dev wrote:
>After compiling several C++ files, I tried to link
>them with the result being a undefined __gxx_personality_v0.
>
>If I switch the files to regular c files, there are no errors.
>
>Does anybody know the problem?
C++ has a lot of hidden functions and crap like that
to take care of things like new/delete and other
C++ features (virtual functions, etc).
If you're using any of these features, you're either
gonna have to change your code, or define those
hidden functions (which'll probably be quite hard!)
If, however, your source files are completely C,
leave 'em as C files, and forget the hassle of
C++ (C is _so_ much easier for OS development, I
think).
I've always had trouble compiling C files with the
C++ compiler... just use the C compiler... that's
what it's there for
One other thing to try, though... --nostdlib and, I
think, --nostdc++ might get rid of the dependance
on those hidden functions.
Jeff