[prog] C++ loader error
Ganesh Swami
ganesh at rapidtech.bc.ca
Thu May 29 22:54:57 EST 2003
Hi Sue,
On Fri, 30 May 2003 15:07:28 +1000
Sue Stones <suzo at bigpond.net.au> wrote:
> I have written a class heirarcy, and have dealt with complile time
[snip]
> _______the makefile_________
> main: main.o Firm.o Employee.o Manager.o \
> Clerk.o Salesperson.o SalesRecord.o
> ld -o firm main.o Firm.o Employee.o Manager.o \
^^^^^^
> Clerk.o Salesperson.o SalesRecord.o
>
[snip]
You do not need to call ld directly from your make file, you can let gcc
call the linker.
Linking statement:
gcc -o firm <list of all object files>
regards,
Ganesh
--
Ganesh Himself:
http://www.sfu.ca/~gswamina/
More information about the Programming
mailing list