I'm trying to use FLTK to develop an MPI program with OpenGL. It's
computationally intensive, but the results are relatively compact, so I just
send them to the root processor and draw it. To make a long story short, the
following program fails to compile with FLTK 2.0:
#include <FL/Fl.H>
#include <mpi.h>
int main() {
return 0;
}
It does work with FLTK 1.1.9, so I will rely on that for now, although I
haven't tried 1.3.x. To be specific, I am using MPICH2 1.0.8 and gcc-4.3.2 on
Ubuntu 8.10, and it looks like the key problem is an interference with a Status
class. Frankly, I don't know the c++ scoping and namespace rules well enough
to know if there is a simple solution, but it seemed worth asking. Thanks in
advance for any advice or stern lectures about asking dumb questions...
- Ricky
Here is the output:
/opt/mpich2-1.0.8/include/mpicxx.h:147: error: expected identifier before
âintâ
/opt/mpich2-1.0.8/include/mpicxx.h:147: error: multiple types in one declaration
/opt/mpich2-1.0.8/include/mpicxx.h:147: error: friend declaration does not name
a class or function
/opt/mpich2-1.0.8/include/mpicxx.h:477: error: expected identifier before
âintâ
/opt/mpich2-1.0.8/include/mpicxx.h:477: error: expected unqualified-id before
â{â token
And here is mpicxx.h:477:
class Status {
friend class Comm;
friend class File;
friend class Request;
(...)
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk