This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: linker error
- To: "Trenton D. Adams" <tadams at theone dot dnsalias dot com>
- Subject: Re: [ECOS] linker error
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 10 Aug 2001 18:34:38 +0100
- Cc: 'eCos Disuss' <ecos-discuss at sourceware dot cygnus dot com>
- Organization: Red Hat UK Ltd.
- References: <006301c120f4$e2f91bd0$090110ac@TRENT>
"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