comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: In case someone has trouble including export.h
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: In case someone has trouble including export.h [message #29045 is a reply to message #29037] Tue, 29 January 2002 07:33 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Ruediger Kupper wrote:

> Hi!
>
> We just ran into a problem with IDL5.5's export.h file, when
> including it from a c++ source file:
> I tested g++-2.95 and g++-3.0, and both (most annoyingly)
...

> extern char *IDL_CDECL IDL_VarMakeTempFromTemplate
> IDL_ARG_PROTO((IDL_VPTR template, int type, IDL_StructDefPtr sdef,
> IDL_VPTR *res, int zero));
>
> P.S.:
> The IDL_ARG_PROTO(...) macro is defined near the beginning of the file.
> It acts as a null-filter, reproducing it's argument. It can be used to
> completely turn off prototypes in this file, for compatibility to
> non-ANSI-compilers. We could have utilised this by #define-ing
> IDL_CC_NOT_ANSI, which also seemed to fix the above mentioned problem.
> But I felt this being much more interfering than simply respelling the
> name.

How did that work? If it turns off prototypes, you shouldn't be able to
compile the code using C++. Prototypes are optional in C, but mandatory
in C++.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Question again :)
Next Topic: Integration of a complex function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 21:37:37 PDT 2025

Total time taken to generate the page: 1.36333 seconds