This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linker error


"Trenton D. Adams" wrote:
> 
> I'm attempting to compile my program.  I'm getting the error below.  For
> some reason the linker is not finding my function.  If I switch it to a
> 'c' extension it works fine, but cpp will not work.  Is there any way to
> make it work with a cpp extension?  I have the reverse happening on my
> windows side.  I need these functions on both platforms.
> 
> I tried doing the following, but it gave me a compiler error on the
> windows side.  I was sure that extern "C" was what I was supposed to do.
> extern "C" function prototype

Looks right to me I'm afraid, and that's certainly what normally works
elsewhere. You can see whether it's working by doing an "arm-elf-nm" of the
.o file and seeing how if the name has changed to the C++ "mangled" name. 

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]