hi, i'm trying to create a shared object. the files i want to put in the shared object use a properties file to read some of the data. is there a way to include the properties file in the so file? if not, then how do i refer the properties file from the classes in the shared object? (i want to refer to the relative path). thanks.
You can include the relative path name of the file in the shared object as part of the object data. Just declare it at the top of one of your source files. Alternatively if you want to include the file itself in the shared object that imples the file is unchanging. If this is the case just rewrite it as a data structure and declare it as before. Code: char *props_file="../../foo.properties"; void mySOfunc() { // ... }