From: Dennis S. <sy...@yo...> - 2005-02-14 19:43:44
|
Heya reading the mingw docs, I keep across this: http://mingw.sourceforge.net/docs.shtml Here's an example. Cut and paste the following into a file named dllfct.h: #ifdef BUILD_DLL // the dll exports #define EXPORT __declspec(dllexport) #else // the exe imports #define EXPORT __declspec(dllimport) #endif // function to be imported/exported EXPORT void tstfunc (void); Cut and paste the following into a file named dllfct.c: #include <stdio.h> #include "dllfct.h" EXPORT void tstfunc (void) { printf ("Hello\n"); } This makes me nearly sick :), is there a way to get around this ?, because this would be a complete disaster within libvisual :) |