Obviously this must be a problem with g++ because that header does have the extern "C" wrappers around them. Has anybody reported this to the gnu guys as a bug?

David

Hello,

I do not know if this letter is going to be of any help for you
because I do not know if you have a problem with writing modules for
OpenDX.  I have written two modules (I am not an expert) for OpenDX in
C++ and I have got no problems with OpenDX.  There was one problem
with GCC 3.1 though.  It was:

 included from /usr/local/dx-4.2.0/dx/include/dx/dx.h:56,
                  from ImportHDF5Field.cc:1:
 /usr/local/dx-4.2.0/dx/include/dx/array.h:481: parse error before `||'

The problem can be cured with CHANGING (so far I do not know a better
solution) the dx/include/dx/array.h header file on line 481 from:
                            void (*or)(int, Pointer, Pointer), Pointer d);
to:
                            void (*)(int, Pointer, Pointer), Pointer d);

This change can be made, because we are allowed to stip a parameter's
name in a function declaration.  For some reason the compiler
interprets the 'or' name as the '||' operator.  We had this problem on
a Linux with GCC 3.2 and on a Mac with GCC 3.1.

You can have a look how to build a C++ module by examining the C++ module
at:
http://www-beams.colorado.edu/dxhdf5/


Ireneusz


On Tue, 10 Sep 2002, Vahid Zahiri wrote:


  hello

  i need use Kde/Qt for make GUI .
  but when  i use OpenDX ,my compiler(g++ on linux) return  Error
  from some Header files of OpenDX for "Pointer" typedef
  (OpenDx define "Pointer" in error.h -> "typedef void *Pointer;")
  how i can compile my C++ program?
  anyone work with OpenDX in C++?
  thanks in advance
  Vahid
 _________________________________
  Vahid Zahiri
  Isfahan University of Technology (I.U.T)
  Isfahan IRAN
  work Phone : +98 (311) 3915824



--
.............................................................................
David L. Thompson                   Visualization and Imagery Solutions, Inc.
mailto:[EMAIL PROTECTED]    5515 Skyway Drive, Missoula, MT 59804
                                    Phone : (406)257-8530

Reply via email to