c++ - Path Include in Make/options file -
i have simple problem, think, can't find solution. i've included "mathcalls.h" file 1 of projects since need use pow(double, double)
method of it. therefore i've added filepath to...
... make/options file:
-iusr/include/i386-linux-gnu/bits
... include file of ide (qt creator):
/usr/include/i386-linux-gnu/bits
for include tried
#include "mathcalls.h" #include <mathcalls.h>
but when building project error:
/home/user/solvernew/multiphaseeulerfoamnew.c:46: error: mathcalls.h: no such file or directory
when looking @ this, seems compiler searching in project directory although have added path file? please note in "usr/include/i386-linux-gnu/bits" root has full access, others authorised "access files".
how can solve problem professionally?
the professional way gain access double pow(double x, double y)
is:
#include <cmath>
or, @ pinch:
#include <math.h>
then there no issues grovelling around sub-directories under /usr/include
.
Comments
Post a Comment