- #1
Atr cheema
- 69
- 0
For a program to use I have to compile some .c files which include #include''header.h'' statements and I have tried different commands to compile but it gives me errors like 'No such file or directory'.
Here is start of my file named
while start of
My current folder containing einter_mex.c and einterp.h is 'interp'. The .h files mention inside 'einterp.h' are present in folder 'libutils'. The folder 'mutils' is the parent folder containing both 'interp' and 'libutils' folders.
Can anybody guid me what command with gcc compiler should I use. Thank you.
Here is start of my file named
einterp_mex.c
Code:
#include "einterp.h"
file looks like thiseinterp.h
Code:
#ifndef _EINTERP_H
#define _EINTERP_H
#include <libutils/config.h>
#include <libutils/utils.h>
#include <libutils/parallel.h>
#include <libutils/debug_defs.h>
#include <libmatlab/mesh.h>
#ifdef MATLAB_MEX_FUNCTION
#include <libmatlab/mexparams.h>
#endif
#include "interp_opts.h"
#include "einterp_tri_templates.h"
#include "einterp_quad_templates.h"
My current folder containing einter_mex.c and einterp.h is 'interp'. The .h files mention inside 'einterp.h' are present in folder 'libutils'. The folder 'mutils' is the parent folder containing both 'interp' and 'libutils' folders.
Can anybody guid me what command with gcc compiler should I use. Thank you.
Last edited: