> Replying to myself with more info, I tried once again to compile FFTW
> as an non-CLR .lib rather than a CLR .dll. This causes it to link but
[quoted text clipped - 10 lines]
> which I am using. Do I need to do something to expose this struct to
> the unmanaged CLR C++ code?
What version of the compiler are you using? If it is the 2003 / 7.1
version you need to add an empty definition for fftw_plan_s. If you are
using the 2005 / 8.0 version the linker will add that for you (and
generate a warning telling you it did).
The CLR needs to have a definition of a type available even to create a
pointer to it.
Ronald Laeremans
Visual C++ team
Brian Victor - 09 Jun 2005 16:16 GMT
> > Additional information: Could not load type fftw_plan_s from assembly
> > MyModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null.
[quoted text clipped - 7 lines]
> using the 2005 / 8.0 version the linker will add that for you (and
> generate a warning telling you it did).
Thanks for replying, Ronald. I am using 2003/7.1. I've become pretty
comfortable in my workaround at this point, but if I come across the
problem again I'll give that a shot.

Signature
Brian