romydmisc <[EMAIL PROTECTED]> writes: > But when i try to compile it on linux, i get these errors: > libserverusage.c: In function `__declspec': > libserverusage.c:33: error: parse error before '{' token
That's because __declspec is a Windows-specific extension, which UNIX compilers generally don't understand. Here is one solution: #if _MSC_VER /* compiling with MSVC */ #define DllExport __declspec( dllexport ) #else #define DllExport /* nothing on UNIX */ #endif Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus