Original Post
Trying to create a managed wrapper for C# this extractor:libextractor http://gnunet.org/libextractor/ It is for a friend and he needs it this way. and this is the error: EXTRACTOR_Keywords': a __gc type object cannot be passed by value It is pointing to: ExtractMethod extractMethod; in struct EXTRACTOR_Extractor. If I remove this line it compiles, but of course it doesn't work properly. Any ideas? thanks in advance, ~guyaton
typedef __gc struct EXTRACTOR_Keywords
{
/* the keyword that was found */
char * keyword;
/* the type of the keyword (classification) */
EXTRACTOR_KeywordType keywordType;
/* the next entry in the list */
__gc struct EXTRACTOR_Keywords * next;
} EXTRACTOR_KeywordList;
typedef EXTRACTOR_KeywordList *(*ExtractMethod)(
const char * filename,
char * data,
size_t filesize,
EXTRACTOR_KeywordList * next,
const char * options);
typedef __gc struct EXTRACTOR_Extractor
{
void * libraryHandle;
char * libname;
ExtractMethod extractMethod;
__gc struct EXTRACTOR_Extractor * next;
char * options;
} EXTRACTOR_ExtractorList;