DLLCC Header Parsing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

DLLCC Header Parsing

grovesr
I know the "challenges" of the DLLCC  header parser have been addressed before on this forum.  As with others, I do this rarely and it is an extreme pain each time.  This time I came across a new wrinkle and wanted to see if anyone knew what caused it.

After specifying stdlib.h and a path to Visual Studio Express 2008 header install (C:\Program Files\Microsoft Visual Studio 9.0\VC\include)  I ask the DLLCC External Interface Builder to parse the file.  What results is a "not enough elements available" error dialog and in the Transcript I see: ERROR : Only Win32 target supported!

Any idea what I can do to make this work?
Reply | Threaded
Open this post in threaded view
|

Re: DLLCC Header Parsing

Reinout Heeck
grovesr wrote:

> I know the "challenges" of the DLLCC  header parser have been addressed
> before on this forum.  As with others, I do this rarely and it is an extreme
> pain each time.  This time I came across a new wrinkle and wanted to see if
> anyone knew what caused it.
>
> After specifying stdlib.h and a path to Visual Studio Express 2008 header
> install (C:\Program Files\Microsoft Visual Studio 9.0\VC\include)  I ask the
> DLLCC External Interface Builder to parse the file.  What results is a "not
> enough elements available" error dialog and in the Transcript I see: ERROR :
> Only Win32 target supported!
>
> Any idea what I can do to make this work?



One thing that makes a huge difference: make sure you #define all the
macros the library expects. When compiling the C preprocessor
automatically defines a set of macros to communicate the current target
platform, version etc. So when parsing in VW you'll need to set up the
same set of macros prior to #including stdlib.h.

On unix it is easy to obtain the set of predefined macros and their
values by running the C preprocessor with a certain command line switch,
unfortunately I know of no such option in Visual Studio, so you'll need
to retrieve their values on your platform some other way....

See also

http://msdn2.microsoft.com/en-us/library/b0084kay.aspx

http://predef.sourceforge.net/preos.html#sec22
http://predef.sourceforge.net/precomp.html#sec32
http://predef.sourceforge.net/prelib.html#sec10



HTH,

Reinout