Compiling C code with external library references
I am on RHEL 6.0 and got hold of the source code for join
command(hopefully from the right source!!). I rarely work on a C code and
hence finding this difficult. I am trying to compile and run the C code
for join, but running into compile time errors.
g++ join.c
join.c:19:20: error: config.h: No such file or directory
join.c:25:20: error: system.h: No such file or directory
join.c:27:25: error: hard-locale.h: No such file or directory
join.c:28:24: error: linebuffer.h: No such file or directory
join.c:29:24: error: memcasecmp.h: No such file or directory
join.c:30:19: error: quote.h: No such file or directory
join.c:31:21: error: stdio--.h: No such file or directory
join.c:32:22: error: xmemcoll.h: No such file or directory
join.c:33:21: error: xstrtol.h: No such file or directory
join.c:34:22: error: argmatch.h: No such file or directory
Since I am not aware of where to find these libraries(I did google for
each one and they are spread all over different websites), can anyone
please guide me as to how I can link these libraries together and compile
the source code of join command?
No comments:
Post a Comment