c++ - GCC compiler cannot find hpp files -


i trying install hep-mc library listed here: https://github.com/cschwan/hep-mc use on compute using instructions listed in documentation here: https://github.com/cschwan/hep-mc#installation . compile 1 of example files, typed terminal:

g++ -l/usr/local/hep-mc/include vegas_mpi_ex.cpp -o vegas_mpi 

but these error messages:

mpi_vegas_ex.cpp:1:22: error: hep/mc.hpp: no such file or directory mpi_vegas_ex.cpp:2:26: error: hep/mc-mpi.hpp: no such file or directory mpi_vegas_ex.cpp:8:17: error: mpi.h: no such file or directory 

in beginning of code, declarations this:

#include "hep/mc.hpp" #include "hep/mc-mpi.hpp"  #include <mpi.h> 

the tutorial states should point compiler location of "include" folder contains .hpp files, have done. guys have idea i'm doing wrong?

it should noted compiler cannot find mpi.h directory though have loaded openmpi module.

-l sets paths linker searches libraries link. option you're looking -i, sets paths compiler searches #included files.


Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

SQL Server - MyCTE query based on 24 hour period (next day) -

php - Using str_replace to translate a MySQL Table in html -