Opened 21 years ago

Last modified 21 years ago

#365 closed defect (fixed)

compiler error visualc++

Reported by: MMHJBOLT@… Owned by: warmerdam
Priority: high Milestone:
Component: default Version: unspecified
Severity: minor Keywords:
Cc:

Description

Hello,

I wanted to use the GDAL library to create a computermodel which is capable of
reading ESRI-shape files and rasterfiles. I downloaded the source (gdal119.zip)
from the website. While compiling using visualc++ on Windows98 io got the
following error:

	cd port
	nmake /nologo /f makefile.vc
	cd ..
	cd frmts/iso8211
	nmake /nologo /f makefile.vc
	cl /nologo /Ox /MD -I..\..\port -I..\..\ogr -I..\..\core  /c ddfmodule.cpp
ddfmodule.cpp
	cl /nologo /Ox /MD -I..\..\port -I..\..\ogr -I..\..\core  /c ddfutils.cpp
ddfutils.cpp
	cl /nologo /Ox /MD -I..\..\port -I..\..\ogr -I..\..\core  /c ddffielddefn.cpp
ddffielddefn.cpp
	cl /nologo /Ox /MD -I..\..\port -I..\..\ogr -I..\..\core  /c ddfrecord.cpp
ddfrecord.cpp
	cl /nologo /Ox /MD -I..\..\port -I..\..\ogr -I..\..\core  /c ddffield.cpp
ddffield.cpp
	cl /nologo /Ox /MD -I..\..\port -I..\..\ogr -I..\..\core  /c ddfsubfielddefn.cpp
ddfsubfielddefn.cpp
	copy *.obj ..\o
ddfmodule.obj
ddfutils.obj
ddffielddefn.obj
ddfrecord.obj
ddffield.obj
ddfsubfielddefn.obj
        6 bestand(en) gekopieerd.
	cd ..\sdts
	nmake /nologo /f makefile.vc
	cl /nologo /Ox /MD -I..\..\port -I..\..\ogr -I..\..\core -I..\iso8211 /c
sdtsdataset.cpp
sdtsdataset.cpp
sdtsdataset.cpp(79) : fatal error C1083: Cannot open include file:
'gdal_priv.h': No such file or directory


I fixed this by changing line 99 from the file namek.opt to:

INC	=	-I$(GDAL_ROOT)\port -I$(GDAL_ROOT)\ogr -I$(GDAL_ROOT)\gcore


Is this adjustment correct or do other things go wrong?
Why isn't a project file for VC++ distibuted?

Matthieu Bolt

Change History (2)

comment:1 by warmerdam, 21 years ago

Your fix looks fine.  I will look into why this wasn't in the distribution 
build files. 

I don't prepare Visual Studio project files because I am more comfortable 
using NMAKE files, and working from the commandline.  I have no interest in
maintaining more build environments than I actually use. 

comment:2 by warmerdam, 21 years ago

this is fixed in CVS now. 

Thanks for reporting it. 

Note: See TracTickets for help on using tickets.