I have a project I'm working on that has code from 1988 and is on Solaris Sparc machines.
I'm not a C programmer, but there is a header file and object file for the old code but no sourcecode.
I can live without it, if I can use the functions in the old object file to plug stuff into and prod the outputs.
/usr/sfw/bin/gcc -Wall -o test main.c
Outputs
Undefined first referencedsymbol in fileKES_ld_kb /var/tmp//cccjn5UP.o
Is there anything I can do to get gcc to build against the object so I can run some of this old code?
-- Edit --
got asked what the code looks like:
#include "kes.h"#include <stdio.h>int main(){ KES_ld_kb("/tmp/kb.kb", 50000L); return 0; }
-- Another Edit --
I have original .o and .h files, these are SPARC based and I'm doing my work on an old SPARC VM, so that much I do know.
I tried to create an archive with
ar ruv libkes.a kes.o
Which when I then build it returns
bash-3.2$ /usr/sfw/bin/gcc -L/export/home/zmmyks/ps -Wall -o test main.c -lkesld: warning: file /export/home/zmmyks/ps/libkes.a ignored: unable to locate archive symbol table