Skip to Content.
Sympa Menu

charm - Re: [charm] charm++ compiling problems

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] charm++ compiling problems


Chronological Thread 
  • From: Phil Miller <mille121 AT illinois.edu>
  • To: Haowei Huang <huangh AT in.tum.de>
  • Cc: Charm Mailing List <charm AT cs.illinois.edu>
  • Subject: Re: [charm] charm++ compiling problems
  • Date: Tue, 1 Jun 2010 13:17:41 -0500
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

On Sun, May 30, 2010 at 14:39, Haowei Huang
<huangh AT in.tum.de>
wrote:
>
> Hi Phil:
>
>            Sorry to bother you a lot. I am just a Charm++ beginner and it is
> not easy for me to debug it especially the error in Main.decl.h and
>   Main.def.h. ,which are generated by Main.ci automatically.
>            I encounter such error from compiler:
>
> Main.def.h: In static member function ‘static void
> CkIndex_Main::_call_Main_CkArgMsg(void*, Main*)’:
> Main.def.h:250: error: invalid use of incomplete type ‘struct Main’    this
> line is :new (impl_obj) Main((CkArgMsg*)impl_msg);
> Main.decl.h:74: error: forward declaration of ‘struct Main’   this line is:
> class Main;
> In file included from Ensemble.C:174:
> Main.def.h: In function ‘void _registerMain()’:
> Main.def.h:1002: error: invalid application of ‘sizeof’ to incomplete type
> ‘Main’    this line is CkIndex_Main::__register("Main", sizeof(Main));
>
>            Do you have any idea about these problems related to the
> definition of main function? Did I miss some requirements in Main function?

Is Ensemble.C the file that defines the methods of the Main class?
Main.def.h should be included somewhere after the complete definition
of 'class Main' is visible.




  • Re: [charm] charm++ compiling problems, Phil Miller, 06/01/2010

Archive powered by MHonArc 2.6.16.

Top of Page