Opened 18 years ago

Last modified 18 years ago

#1114 closed defect (duplicate)

Small Compilation Error in MSVC2005

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

Description

There's a small compilation error generated in MSVC2005 in the following file:

mitab_feature.cpp (6480) and (6485)

The problem is related to microsoft not liking to convert between char* and
const char* without an explicit cast anymore. Hence the two lines are easily fixed.

        if((pszPenId = (char*)strstr(pszPenName, "mapinfo-pen-")))

and 

        else if((pszPenId = (char*)strstr(pszPenName, "ogr-pen-")))

respectively.

Change History (1)

comment:1 by thalos@…, 18 years ago


*** This bug has been marked as a duplicate of 1083 ***
Note: See TracTickets for help on using tickets.