27 September, 2007

Charm++: Using ROV in module

Charm++ compiler will compile the .ci file into two files, .decl.h and .def.h.

But there is a little bug in this scenario, the compiler put the "extern rov" in the .def.h file.
What is wrong with that? Because when we write a module for other application, other users will only include the .decl.h file but not the .def.h file. So the extern statement should be in the .decl.h file. However, you can extern the rov in your .h file, then other users who want to use your module have to include that file too.

No comments: