// g++ -shared -o kitty.dll kitty_dll.res.o ../../kitty_dll.c -Wl,--whole-archive ../../base64.a -Wl,--no-whole-archive -DBUILD_DLL -static-libgcc #include #include #include #include #ifdef BUILD_DLL #define LINKDLL extern "C" __declspec(dllimport) #else #define LINKDLL #endif extern "C" const char * get_param_str( const char * val ) { if( !stricmp( val, "CLASS" ) ) return "KiTTY" ; return NULL ; }