Article View: gnu.gcc.help
Article #52427extern-problem
From: Axel Katerbau
Date: Fri, 18 Sep 1992 11:52
Date: Fri, 18 Sep 1992 11:52
21 lines
1187 bytes
1187 bytes
I have a problem with extern variables. If in module A the varaiable var,
which is declarated in a module b, is declarated as "extern var", the linker
produces an output like: undefined symbol _var is ref.. from text.
Here an extract of my MAKEFILE:
CFLAGS=-O -fomit-frame-pointer -fcombine-regs -fstrength-reduce
CC=e:\gnu\usr\gnu\bin\gcc.ttp $(CFLAGS)
LINK=e:\gnu\usr\gnu\bin\gcc-ld.ttp
anruftod.app: main.o einstell.o bedienfe.o mitteilu.o tcframe.o
$(LINK) -oanruftod.app e:\gnu\usr\gnu\lib\crt0.o @files.lst -lgnu -lgem
-liio
What is the reason? Is there any compiler or linker option to eleminate the
problem?
I'm using GCC 2.1 on an ATARI ST.
Greetings
Axel
Technical Details
Message-ID:
<A47436@K2.maus.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!uniol!hb.maus.de!k2.maus.de!Axel_KaterbauShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,cc883d33353f2520,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-09-18 22:24:22 PST Path: arc1-ca.pugleaf.net!sparky!uunet!math.fu-berlin.de!uniol!hb.maus.de!k2.maus.de!Axel_Katerbau From: Axel_Katerbau@k2.maus.de (Axel Katerbau) Newsgroups: gnu.gcc.help Subject: extern-problem Message-ID: <A47436@K2.maus.de> Date: Fri, 18 Sep 92 11:52:00 GMT Organization: MausNet Lines: 21 X-Gateway: MausGate/News 1.11