I have A header file which contains declaration of a function, let's call it A.h, i have implementation of this function in file A1.cpp. Now A1.cpp has other file includes. Not all included files in A1.cpp are available (3rd party issue). Now my question is , Is it possible to make function call from a file let's say main.cpp, dynamically linking to A1.cpp(without compiling A1.cpp) as i have some files from 3rd party not available ?
My guess is no, because unless i have included files available i can't get object file of A1.cpp and hence i can't call function. However correct me if i am wrong , a compiled file of A1.cpp i.e A1.o can still be used as i can link to it and hence make function call without dependency on other include files(which i don't have?)
Go easy on me , i'm not a C++ guy :-) !! Any help or insight in this matter is appreciated !! Oh btw i have started to use ndk for android, n hence the trouble :-)