From jhammond at alcf.anl.gov Thu Aug 25 13:05:10 2011 From: jhammond at alcf.anl.gov (Jeff Hammond) Date: Thu, 25 Aug 2011 12:05:10 -0500 Subject: [PFunc] missing includes in dag.h Message-ID: The file dag.h needs to include stdio.h and stdlib.h (or cstdio and cstdlib if one wants proper C++) to address the following errors: In file included from /software/pfunc/PFunc-1.0.1/examples/cxx/while.cpp:25:0: /software/pfunc/PFunc-1.0.1/examples/cxx/dot_reader/dag.h: In function ?void add_edge(vertex_t*, vertex_t*, int)?: /software/pfunc/PFunc-1.0.1/examples/cxx/dot_reader/dag.h:105:66: error: ?malloc? was not declared in this scope /software/pfunc/PFunc-1.0.1/examples/cxx/dot_reader/dag.h: In function ?void pretty_print()?: /software/pfunc/PFunc-1.0.1/examples/cxx/dot_reader/dag.h:142:56: error: ?printf? was not declared in this scope /software/pfunc/PFunc-1.0.1/examples/cxx/dot_reader/dag.h:154:17: error: ?printf? was not declared in this scope make[2]: *** [examples/cxx/CMakeFiles/while.dir/while.cpp.o] Error 1 make[1]: *** [examples/cxx/CMakeFiles/while.dir/all] Error 2 I am using the GNU 4.5.0 C++ compiler. Thanks, Jeff -- Jeff Hammond Argonne Leadership Computing Facility University of Chicago Computation Institute jhammond at alcf.anl.gov / (630) 252-5381 http://www.linkedin.com/in/jeffhammond https://wiki.alcf.anl.gov/index.php/User:Jhammond