C/C++ Development Examples
If you need to pass in parameters for loading and executing the dynamic library, you need to force the entry point and then parse the parameters passed in.
The following code shows the definition of the function type that needs to be exported and the analysis of the incoming parameters
int crossc2_entry(int argc, char **argv) {
printf("into crossc2_entry():\n");
printf("\t-> argc = %d\n", argc);
int i = 0;
for (i = 0; i < argc; ++i) {
printf("\t->%s\n", argv[i]);
}
return 1;
}