Forums

diab ld error

Started by curious_one February 4, 2004
hello,

Compiling on powerpc, Any clue why dld barfs with "dld: warning:
Undefined symbol xyz and then dld: no output written" and then make
halts with an error? shouldnt the warnings be ignored and make
continue as there weren't errors ?
regards
curious
In comp.os.psos curious_one <curious.one@eudoramail.com> wrote:
# hello,
# 
# Compiling on powerpc, Any clue why dld barfs with "dld: warning:
# Undefined symbol xyz and then dld: no output written"

Because some code calls xyz but the linker can not find any
object file or library that defines xyz.

# and then make
# halts with an error?

Because make is designed to halt on errors.

# shouldn't the warnings be ignored and make

No.

# continue as there weren't errors?

The purpose of make is to stop at the first error. Fix your build
by providing whatever file has xyz at link time.

Regards,

	Jens
-- 
Jens Schweikhardt  http://www.schweikhardt.net/
SIGSIG -- signature too long (core dumped)
Jens Schweikhardt <usenet@schweikhardt.net> wrote in
news:bvqmtm$8oj$2@newsfeed.pit.comms.marconi.com: 

> Because make is designed to halt on errors.
"Defaults" to halt on errors, it doesn't have to.
> # shouldn't the warnings be ignored and make > > No. > > # continue as there weren't errors? > > The purpose of make is to stop at the first error. Fix your build > by providing whatever file has xyz at link time.
True, but you can tell make to continue on errors. However, attempting to continue on link failure doesn't seem to sensible unless there are many other build targets that might complete without error. -- - Mark -> --