diab ld error

Feb 04, 2004 2 Replies

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 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 wrote in news:bvqmtm$8oj$ snipped-for-privacy@newsfeed.pit.comms.marconi.com:

"Defaults" to halt on errors, it doesn't have to.

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 -> --

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required