> 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
>
>
once i got the same error. then i changed the order of include files
then it worked.
in my case, previous
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/fl_ask.H>
#include "general.h"
#include <FL/Fl_File_Chooser.H>
ths order gives me the same error.
then i changed it to
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_File_Chooser.H>
#include <FL/fl_ask.H>
#include "general.h"
then it worked.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk