Article View: gnu.gcc.help
Article #41478Trouble compiling C and assembly
From: K.C. Baltz
Date: Wed, 20 Mar 1996 00:00
Date: Wed, 20 Mar 1996 00:00
30 lines
1568 bytes
1568 bytes
I have recently upgraded to GCC 2.7.0 in upgrading my linux box to ELF.
Now I'm not positive that I did that correctly, but everything is still
working. Anyway, I have a program that uses mostly C++ with two assebmly
functions thrown in and it used to compile and link correctly with
2.6.3. The assembly routines are in a separate .s file which get's
compile to a .o and then linked in with the rest of the .o files from the
.cc source. But now when I try and compile, all the .o's get made
alright, but the linker bails complaining that the two assembly routines
are not found. They are wrapped in one of my .h's with extern "C" {}
wrappers.
In case this helps, here is gcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/2.7.0/specs
gcc version 2.7.0
and as -v
GNU assembler version 960228 (i486-linux), using BFD version 2.6.0.10
and uname -a
Linux beavis 1.2.8 #4 Wed Nov 29 14:32:40 PST 1995 i586
Email replies would be appreciated.
K.C.
--
K.C. Baltz
Copmuter Science / Computer Engineering
University of Southern California (Second Choice, Spoiled Children ...)
http://www-scf.usc.edu/~baltz
Technical Details
Message-ID:
<4iplh8$haq@nunki.usc.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,dda4e02030754fa8,start X-Google-Attributes: gid11318c,public From: baltz@nunki.usc.edu (K.C. Baltz) Subject: Trouble compiling C and assembly Date: 1996/03/20 Message-ID: <4iplh8$haq@nunki.usc.edu> X-Deja-AN: 143382557 sender: baltz@nunki.usc.edu organization: University of Southern California, Los Angeles, CA newsgroups: gnu.gcc.help