Displaying 1 result from an estimated 1 matches for "linuxfunc_h_".
2008 May 18
2
problem build wine lib
...pec(dllexport) char * winFunc(bool select)
{
if (select)
return "winString1";
else
return "winString2";
}
These have been compiled using MinGW on linux and produced files that work on windows, and with wine.
File 4. ? Linux Shared library header
#ifndef LINUXFUNC_H_
#define LINUXFUNC_H_
extern "C"
{
char * linuxFunc(bool select);
}
#endif /*LINUXFUNC_H_*/
File 6 ? Linux Shared library cpp
#include "LinuxFunc.h"
#include <stdio.h>
char * linuxFunc(bool select)
{
if (select)
return "linuxString1";
else...