I need to implement a program that uses runtime linking and calls a created header file. The header file is simple, it defines a function double mean(double, double); This function (calc_mean.h) accepts two doubles and returns the mean value between the two. I have the .so file also called libcalc_mean.so
I do not have an IDE, so I am trying to run this using GCC.
My first question is this: How do I run this using GCC?
Second: Can someone tell me if I am doing the right thing here in my code? I feel like it isnt correct, but I can't tell because I can't compile just yet.