I am not sure if using C++ in a kernel module is really a great idea, but if you must do it I know there are some helpful hints on the rtlinux website. Also, make sure you are statically linking in the right library. Verify with certainty that the object archive you are statically linking to your module really contains the symbols _like_rtti_user, _rtti_si, _builtin_new, etc. My feeling is that you probably linked to a user-mode library that simply contains more symbols which have no meaning in kernel space.
-Calin On Fri, 5 Oct 2001, Pinar Taskiran wrote: > Hi, > > I have to compile a c++ app in kernel mode( I have to > use 2.4.1). I was > getting undefined symbol errors > like_rtti_user, _rtti_si, _builtin_new, > _builtin_delete, _rethrow when > loading with insmod. > I included libgcc.a in my build and I got rid of the > errors I mention > above but now new ones came up: malloc, free, abort, > _GLOBAL_OFFSET_TABLE, strcmp, > stderr. > > Is there any way to compile a c++ file in kernel mode > and load it using > insmod and not get any unresolved symbols? > > Can anyone help me how to resolve these? > > Thanks a lot, > Pinar > > __________________________________________________ > Do You Yahoo!? > NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. > http://geocities.yahoo.com/ps/info1 > -- [rtl] --- > To unsubscribe: > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR > echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] > -- > For more information on Real-Time Linux see: > http://www.rtlinux.org/ > -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/
