__gxx_personality_v0?

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
os_dev

__gxx_personality_v0?

Post by os_dev »

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?

os_dev
j.weeks

RE:__gxx_personality_v0?

Post by j.weeks »

>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
Post Reply