<div dir="ltr">Hi, I am trying to build QGIS 3.16 on Window 10 Pro and I am getting error messages:<div><br></div><div>Error C1189 #error: 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' qgisgrass7 C:\OSGeo4W64\include\proj_api.h 37 <br>Error C1189 #error: 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassplugin.cpp) grassplugin7 C:\OSGeo4W64\include\proj_api.h 37 <br>Error C1189 #error: 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrasstools.cpp) grassplugin7 C:\OSGeo4W64\include\proj_api.h 37 <br>Error C1189 #error: 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmapcalc.cpp) grassplugin7 C:\OSGeo4W64\include\proj_api.h 37 <br>Error C1189 #error: 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmodule.cpp) grassplugin7 C:\OSGeo4W64\include\proj_api.h 37 <br>Error C1189 #error: 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmoduleinput.cpp) grassplugin7 C:\OSGeo4W64\include\proj_api.h 37 <br>Error C1189 #error: 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmoduleparam.cpp) grassplugin7 C:\OSGeo4W64\include\proj_api.h 37 <br>Error C1189 #error: 'To use the proj_api.h you must define the macro ACCEPT_USE_OF_DEPRECATED_PROJ_API_H' (compiling source file D:\Repositories\QGIS-release-3_16\src\plugins\grass\qgsgrassmoduleoptions.cpp) grassplugin7 C:\OSGeo4W64\include\proj_api.h 37 <br></div><div><br></div><div><br></div><div><br></div><div>I had added the following lines in files given below :</div><div><br></div><div><br>#ifndef ACCEPT_USE_OF_DEPRECATED_PROJ_API_H<br>#define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H<br>#endif <br>#include <proj_api.h><br></div><div><br></div><div><br></div><div>Files are mentioned in error: </div><div>qgsgrassplugin.cpp</div><div>qgsgrasstools.cpp <br></div><div>
qgsgrassmapcalc.cpp
<br></div><div>qgsgrassmodule.cpp <br></div><div>qgsgrassmoduleinput.cpp</div><div>qgsgrassmoduleparam.cpp <br></div><div>qgsgrassmoduleoptions.cpp <br></div><div><br></div><div><br></div><div>Thanks in advance.</div><div><br></div><div>Any help?</div><div><br></div><div>Paul N</div><div> <br></div></div>