This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: C++ on Assabet
- To: Timothy Chow <timothyc_rsc at yahoo dot com>
- Subject: Re: [ECOS] C++ on Assabet
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 12 Jun 2001 18:51:53 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <20010612042742.68320.qmail@web9702.mail.yahoo.com>
Timothy Chow wrote:
>
> Hello,
>
> I am trying to port some C programs to C++ on Assabet.
> I think it is better to test the C++ compiler first.
> So I changed a file from .c to .cxx, but the compiled
> program doesn't run anymore.
>
> I think I have the correct flags and parameters in my
> Makefile to compile the C++ source code, and the same
> source code with ".c" extension run perfectly on
> Assabet.
>
> Any idea?
Probably C++ name mangling. Define any externally accessed
routines/variables with C linkage.
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
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/