Hi Jonathon,
First, I would like to bring to your attention that Makefile to compile example.c is not correct. There is no compiler specified like gcc or mpicc.
Even after giving the correct dependencies and include files and compiler, if i run this command,
raghav@raghav-Lenovo-G505s:~/DIC_PROJECT/codesross/codes-base/doc/example$
mpicc -I/home/raghavDIC_PROJECT/codesross/codes-base/install/include -I/home/raghavDIC_PROJECT/codesross/codes-net/install/include/codes -L/home/raghav/DIC_PROJECT/codesross/ROSS/install/lib -L/home/raghavDIC_PROJECT/codesross/codes-base/install/lib
-L/home/raghavDIC_PROJECT/codesross/codes-net/install/lib example.c -lROSS -lm -L/home/raghav/DIC_PROJECT/codesross/codes-net/install/lib/codes-net -L/home/raghav/DIC_PROJECT/codesross/codes-base/install/codes-base -o example
1. I had to change in many .h files to set the correct path etc.
Second after using the above command, I get lot of undefined references like
/tmp/ccle6WVw.o: In function `get_next_server':
/home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:403: undefined reference to `codes_mapping_get_lp_info'
/home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:408: undefined reference to `codes_mapping_get_group_reps'
/home/raghav/DIC_PROJECT/codesross/codes-base/doc/example/example.c:411: undefined reference to `codes_mapping_get_lp_id'
/tmp/ccle6WVw.o: In function `handle_ack_rev_event':
The include files are there as i have specified in the above command.
Not sure what is going wrong.
Can you help.
Regards,
Raghav
ᐧ