[gdal-dev] Can't compile GDAL 2.4.0 with Visual 2017 - 32 bits

Jeff McKenna jmckenna at gatewaygeomatics.com
Fri Feb 22 11:47:56 PST 2019


Hi Remi,

Personally I'd recommend using the provided nmake.opt inside GDAL's root 
directory, and modifying that for your own local libraries.  (note that 
the cleanest way to do this is to create a new file 'nmake.local' and 
put your settings in there, leaving the distributed nmake.opt as 
reference only, and then execute that with the command:

	nmake /f makefile.vc

(others may recommend using the *.bat magic, but sometimes the raw 
commandline is more fun ha)

Have a nice weekend,

-jeff




On 2019-02-21 9:18 AM, PROVIN wrote:
> Hello,
> 
> I am trying to compile GDAL (version 2.40, but I also tried 2.3.1) with 
> Visual 2017 in 32 bits.
> 
> I used the generate_vcxproj.bat to generate my Visual project / 
> solution, this way (as indicated) :
> 
> generate_vcxproj.bat   15.0 32 gdal_vs2017
> 
> The compilation gives the following error :
> 
> fatal error C1083: Impossible d'ouvrir le fichier include : 'stdio.h' : 
> No such file or directory (compilation du fichier source cpl_list.cpp)
> 
> I have this error for all the files cpl_XXXX.cpp  of "port" folder.
> 
> It is strange because these files are accessible when I right click on 
> the line
> 
> #include <stdio>
> 
> and open the file.
> 
> I tried to retarget the project, tried to reinstall Visual 2017.
> 
> I would be glad if anyone had any advice !
> 
> Thank you,
> 
> REMI
> 

-- 
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/


More information about the gdal-dev mailing list