tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Gary George <GGeorge () edc ! gov ! ab ! ca>
To: tru64-unix-managers
Subject: Program linked with ld core dumps
Date: Thu, 18 Jun 1998 22:30:36 +0000	[thread overview]
Message-ID: <96078712011753.tru64-unix-managers.marc@archive.invalid> (raw)

I have a bit of a problem ... a user actually wants to use the C
compiler, and the linker seems to be misbehaving.  Even for a very basic
4-line "hello world" program, if he compiles and links as two separate
steps:
	cc -c hello.c
	ld -o hello hello.o -lc
	hello
he gets the message:
	Memory fault(coredump)
but if he compiles and links in a single step:
	cc -o hello hello.c
	hello
he gets a nice, clean execution.  The goal of separate compilation and
linking is, of course, that he wants to build some libraries of common
routines.

The commands look legitimate to me, but I've never programmed on this
platform.  

I will summarize the wisdom of group.

Gary George, I.S.P.
Systems Administrator
403-427-3512

                 reply	other threads:[~1998-06-18 22:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox