makefile knowledge neede

S

Sheldon

Hi everyone,

I have a problem: when running the make command. My script is compiled
but when the makefile gets to the library that is to be included, I
get a long long list of "undefined reference to " something in the
library. Now I have tried to pipe the makefile output to a file in
order to examine it from start to end but ">" doesn't work and the
terminal window only scrolls back so far. This has not happened to me
before so I am fresh out of ideas. Does anyone know how to pipe the
make output to a file or has something like this happened to you
before and you have some idea what the problem is?

tail of error results
snip.....
: undefined reference to `fio_fmtr_end'
/path/libbufr.a(emosnum.o)(.text+0x11d): In function `emosnum_':
: undefined reference to `fio_src_info'
snip....

I know that this library is good and functioning ok.

Any help is appreciated!

Sheldon
 
W

Walter Roberson

Sheldon said:
I have a problem: when running the make command.

'make' is not part of the C language. You should consult a newsgroup
that discusses your development environment.
Now I have tried to pipe the makefile output to a file in
order to examine it from start to end but ">" doesn't work and the
terminal window only scrolls back so far.

The remedy for this depends upon your operating system and your
shell (and possibly on your choice of terminal windows).

[OT]

If you are using something unix-like, consider using the 'script'
command.
 
K

Keith Thompson

Sheldon said:
I have a problem: when running the make command. My script is compiled
but when the makefile gets to the library that is to be included, I
get a long long list of "undefined reference to " something in the
library. Now I have tried to pipe the makefile output to a file in
order to examine it from start to end but ">" doesn't work and the
terminal window only scrolls back so far. This has not happened to me
before so I am fresh out of ideas. Does anyone know how to pipe the
make output to a file or has something like this happened to you
before and you have some idea what the problem is?

tail of error results
snip.....
: undefined reference to `fio_fmtr_end'
/path/libbufr.a(emosnum.o)(.text+0x11d): In function `emosnum_':
: undefined reference to `fio_src_info'
snip....

I know that this library is good and functioning ok.

Questions about the "make" command should be directed to
comp.unix.programmer.

<OT>
The error messages are being written to stderr, not stdout. Redirect
both stdout and stderr with ">&" if you're using csh or tcsh, or with
">file 2>&1" if you're using sh, bash, ksh, or another Bourne shell
derivative. For more information about I/O redirection, consult the
documentation for your shell or post to comp.unix.shells (check for a
FAQ list first).
</OT>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top