Cannot compile t1.c
When I compile gmsh-4.7.0-source/tutorial/c/t1.c like
gcc -I/home/path/gmsh-4.7.0-Linux64-sdk/include -o t1 t1.c -L/home/path/gmsh-4.7.0-Linux64-sdk/lib -lgmsh I have got the following error:
In file included from t1.c:13:0:
/home/ttaka/gmsh-4.7.0-Linux64-sdk/include/gmshc.h:1421:14: note: expected ‘int’ but argument is of type ‘int *’ GMSH_API int gmshModelGeoAddCurveLoop(int * curveTags, size_t curveTags_n,
t1.c:86:3: error: too few arguments to function ‘gmshModelGeoAddCurveLoop’
gmshModelGeoAddCurveLoop(cl1, sizeof(cl1)/sizeof(cl1[0]), 1, &ierr);
In file included from t1.c:13:0:
/home/ttaka/gmsh-4.7.0-Linux64-sdk/include/gmshc.h:1421:14: note: declared here GMSH_API int gmshModelGeoAddCurveLoop(int * curveTags, size_t curveTags_n,
Acutually, the gmshModelGeoAddCurveLoop() needs four arguments. How should we modify t1.c?