This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compilation Error- Seems a gcc Problem
- From: Joe Buck <jbuck at synopsys dot com>
- To: Luis Gonçalves <lgoncalves at av dot it dot pt>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 4 Dec 2003 15:03:37 -0800
- Subject: Re: Compilation Error- Seems a gcc Problem
- References: <006201c3bab3$6664a4d0$a45c88c1@BRADBURY>
On Thu, Dec 04, 2003 at 10:10:17PM -0000, Luis Gonçalves wrote:
> This error appears any time to anyone?
Normally the information you give would be insufficient to help, but
it appears that your problem is that you linked with gcc and not g++,
so you aren't getting the C++ standard library, which contains the
routines for complex numbers that you are missing.
> gcc sc_main_ref_v0_chain_xl.o -L/home/lgoncalves/SimC/V0_SISO_simC/lib -lsysC -lC_sysC_link -lC_code -lsimCCpp -L/opt/systemc-2.0.1/lib-linux -lsystemc -lm -L/opt/xerces-c-src2_2_0/lib -lxerces-c -o /home/lgoncalves/SimC/V0_SISO_simC/bin/ref_v0_chain_xl.x 2>&1 | c++filt
Replace "gcc" with "g++" in the above command.