1 2 3 4 5 6 7
#include "mylib.h" DO_EXPORT int retval = 42; DO_EXPORT int func(void) { return retval; }