Reputation: 7353
I'm trying to compile on an environment where the -Wl,-whole-library
flag is not supported (emscripten). How can I trick to force the compiler to include the exported symbols ? The solution should met as many of these properties as possible :
I thought about computing a file with something like :
int x = (int)(&func_a)+(int)(&func_b)+...;
But it doesn't work with member functions, which cannot be casted to int (and can be private).
Do you have any idea ?
Upvotes: 1
Views: 98
Reputation: 321
Ideas:
Upvotes: 0