typedef Union in a header file for loadlibrary
- From: "Lars " <codda@xxxxxx>
- Date: Wed, 30 Apr 2008 16:29:04 +0000 (UTC)
Hello,
I want to include some c++ dlls into Matlab. One of the
header-files defines a union e.g.
typedef union
{
int a;
unsigned int b;
} union_AB;
which is used to call one of the dll-functions. When I
include this header I get the warning
Failed to parse type 'union { int a ; unsigned int b ; }
union_AB' original input 'union { int a ; unsigned int b ; }
union_AB'.
It's possile to use unions as variables and there is no
problem, if I try to typedef a struct or any other type.
What is the reason for this, and is it possible to avoid it?
Thanks,
Lars
.
- Prev by Date: Re: problem with importdata
- Next by Date: Re: MATLAB Central Spring Contest
- Previous by thread: Mex - Resolving External dependency issues from C
- Next by thread: Animation timer
- Index(es):
Relevant Pages
|