OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 10:34 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: __gxx_personality_v0?
PostPosted: Sat Dec 22, 2001 12:00 am 
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


Top
  
 
 Post subject: RE:__gxx_personality_v0?
PostPosted: Sat Dec 22, 2001 12:00 am 
>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


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: JAAman and 116 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group