<div>Hi</div>
<div> </div>
<div>I did the change you mentioned but it does not work. Still gives the same warnings.</div>
<div> </div>
<div>..\ogr\geos_c.h(134) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(135) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(151) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(154) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(168) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(174) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(225) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(226) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(227) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(234) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(236) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(239) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(256) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(257) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(258) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(260) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(261) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(262) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(264) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(265) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(266) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(267) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(274) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(277) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(278) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(279) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(344) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(357) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
<br>..\ogr\geos_c.h(364) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored<br>..\ogr\geos_c.h(373) : warning C4518: '__declspec(dllexport ) ' : storage-class or type specifier(s) unexpected here; ignored
</div>
<div> </div>
<div>It gives these warnings while compiling ogrgeometryfactory.cpp, ogrpolygon.cpp and ogrgeometry.cpp. Here is the compile command</div>
<div> </div>
<div>cl /nologo /MD /EHsc /Ox /DHAVE_GEOS=1 -I..\port -I..\ogr -I..\gcore -I..\alg -I\inc -I"D:\Software\VStudio\VC98\ATL\Include" -DWIN32 -I. -Iogrsf_frmts -I..\frmts\gtiff\libgeotiff -IC:/GEOS/trunk/capi -DHAVE_GEOS=1 /c
ogrgeometry.cpp</div>
<div> </div>
<div>Are all the flags and options correct?</div>
<div> </div>
<div>And these are the errors i get at the end when it tries to link:</div>
<div> </div>
<div>Creating library gdal_i.lib and object gdal_i.exp<br>ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol _GEOSGeomFromWKB_buf referenced in function "public: virtual struct GEOSGeom_t * __thiscall OGRGeometry::exportToGEOS(void)const " (
<a href="mailto:?exportToGEOS@OGRGeometry@@UBEPAUGEOSGeom_t@@XZ">?exportToGEOS@OGRGeometry@@UBEPAUGEOSGeom_t@@XZ</a>)<br>ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol _GEOSConvexHull referenced in function "public: virtual class OGRGeometry * __thiscall OGRGeometry::ConvexHull(void)const " (
<a href="mailto:?ConvexHull@OGRGeometry@@UBEPAV1@XZ">?ConvexHull@OGRGeometry@@UBEPAV1@XZ</a>)<br>ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol _GEOSBoundary referenced in function "public: virtual class OGRGeometry * __thiscall OGRGeometry::getBoundary(void)const " (
<a href="mailto:?getBoundary@OGRGeometry@@UBEPAV1@XZ">?getBoundary@OGRGeometry@@UBEPAV1@XZ</a>)<br>ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol _GEOSBuffer referenced in function "public: virtual class OGRGeometry * __thiscall OGRGeometry::Buffer(double,int)const " (
<a href="mailto:?Buffer@OGRGeometry@@UBEPAV1@NH@Z">?Buffer@OGRGeometry@@UBEPAV1@NH@Z</a>)<br>ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol _GEOSIntersection referenced in function "public: virtual class OGRGeometry * __thiscall OGRGeometry::Intersection(class OGRGeometry const *)const " (
<a href="mailto:?Intersection@OGRGeometry@@UBEPAV1@PBV1@@Z">?Intersection@OGRGeometry@@UBEPAV1@PBV1@@Z</a>)<br>ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol _GEOSUnion referenced in function "public: virtual class OGRGeometry * __thiscall OGRGeometry::Union(class OGRGeometry const *)const " (
<a href="mailto:?Union@OGRGeometry@@UBEPAV1@PBV1@@Z">?Union@OGRGeometry@@UBEPAV1@PBV1@@Z</a>)<br>ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol _GEOSDifference referenced in function "public: virtual class OGRGeometry * __thiscall OGRGeometry::Difference(class OGRGeometry const *)const " (
<a href="mailto:?Difference@OGRGeometry@@UBEPAV1@PBV1@@Z">?Difference@OGRGeometry@@UBEPAV1@PBV1@@Z</a>)<br>ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol _GEOSSymDifference referenced in function "public: virtual class OGRGeometry * __thiscall OGRGeometry::SymmetricDifference(class OGRGeometry const *)const " (
<a href="mailto:?SymmetricDifference@OGRGeometry@@UBEPAV1@PBV1@@Z">?SymmetricDifference@OGRGeometry@@UBEPAV1@PBV1@@Z</a>)<br>ogr.lib(ogrpolygon.obj) : error LNK2019: unresolved external symbol _GEOSGetCentroid referenced in function "public: virtual int __thiscall OGRPolygon::Centroid(class OGRPoint *)const " (
<a href="mailto:?Centroid@OGRPolygon@@UBEHPAVOGRPoint@@@Z">?Centroid@OGRPolygon@@UBEHPAVOGRPoint@@@Z</a>)<br>gdal13.dll : fatal error LNK1120: 9 unresolved externals</div>
<div> </div>
<div>Any clue?</div>
<div> </div>
<div>Best regards</div>
<div> </div>
<div>Mir<br><br> </div>
<div><span class="gmail_quote">On 11/14/06, <b class="gmail_sendername"><a href="mailto:strk@refractions.net">strk@refractions.net</a></b> <<a href="mailto:strk@refractions.net">strk@refractions.net</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Tue, Nov 14, 2006 at 12:50:33PM +0000, Mir Hassan Ali wrote:<br>> Hi<br>><br>> I am also getting these warnings for geos_c.h file. Are these of any
<br>> significance?<br><br>mmm... maybe the type specifier is just placed in the wrong<br>way:<br><br><br>133: extern GEOSGeometry* GEOS_DLL GEOSGeomFromWKT(const char *wkt);<br>134: extern char GEOS_DLL *GEOSGeomToWKT(const GEOSGeometry* g);
<br><br>Since you don't get a warning on 134 I suppose it should be:<br><br>134: extern char * GEOS_DLL GEOSGeomToWKT(const GEOSGeometry* g);<br><br>Can you try ?<br><br>--strk;<br><br>><br>> ..\ogr\geos_c.h(134) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(151) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(154) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(168) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(174) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(225) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(226) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(227) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(234) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(236) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(239) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(256) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(257) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(258) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(260) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(261) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(262) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(264) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(265) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(266) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(267) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(274) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(277) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(278) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(279) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(344) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(357) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(364) : warning C4518: '__declspec(dllexport ) ' :<br>> storage-class or type specifier(s) unexpected here; ignored<br>> ..\ogr\geos_c.h(373) : warning C4518: '__declspec(dllexport ) ' :
<br>> storage-class or type specifier(s) unexpected here; ignored<br>><br>> I am still unable to build GDAL with GEOS.<br>><br>> Best Regards<br>><br>> Mir<br>><br>><br>> On 11/14/06, <a href="mailto:strk@refractions.net">
strk@refractions.net</a> <<a href="mailto:strk@refractions.net">strk@refractions.net</a>> wrote:<br>> ><br>> >Argh.. sounds related to latest 'const-correctness' or 'integer<br>> >signedness'<br>> >changes in the CAPI header file, is this possible ?
<br>> >I'm not an expert of the __declspec(dllexport) thing ...<br>> ><br>> >--strk;<br>> ><br>> >On Mon, Nov 13, 2006 at 05:13:30PM +0000, Mir Hassan Ali wrote:<br>> >> Hi Frank,<br>
> >><br>> >> I downloaded the GDAL snapshot on 6th November 2006, so i assume it<br>> >includes<br>> >> the latest changes. When I compile it without the GEOS support, i.e the<br>> >> following lines are commented in the
nmake.opt file are commented:<br>> >><br>> >><br>> >> GEOS_CFLAGS = -IC:/GEOS/trunk/capi -DHAVE_GEOS<br>> >><br>> >> GEOS_LIB = C:/GEOS/trunk/source/geos_c_i.lib<br>> >> But when I uncomment these lines and try to build the API it gives me
<br>> >the<br>> >> following link errors:<br>> >><br>> >> Creating library gdal_i.lib and object gdal_i.exp<br>> >> ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol
<br>> >> _GEOSGeomFr<br>> >> omWKB_buf referenced in function "public: virtual struct GEOSGeom_t *<br>> >> __thiscall<br>> >> OGRGeometry::exportToGEOS(void)const " (<br>> >> ?exportToGEOS@OGRGeometry@@UBEPAUGEOSGe
<br>> >> om_t@@XZ)<br>> >> ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol<br>> >> _GEOSConvex<br>> >> Hull referenced in function "public: virtual class OGRGeometry *
<br>> >__thiscall<br>> >> OGRG<br>> >> eometry::ConvexHull(void)const " (?ConvexHull@OGRGeometry@@UBEPAV1@XZ )<br>> >> ogr.lib(ogrgeometry.obj ) : error LNK2019: unresolved external symbol
<br>> >> _GEOSBounda<br>> >> ry referenced in function "public: virtual class OGRGeometry *<br>> >__thiscall<br>> >> OGRGeo<br>> >> metry::getBoundary(void)const " ( ?getBoundary@OGRGeometry@@
UBEPAV1@XZ)<br>> >> ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol<br>> >> _GEOSBuffer<br>> >> referenced in function "public: virtual class OGRGeometry * __thiscall<br>
> >> OGRGeome<br>> >> try::Buffer(double,int)const " ( ?Buffer@OGRGeometry@@UBEPAV1@NH@Z)<br>> >> ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol<br>> >> _GEOSInters
<br>> >> ection referenced in function "public: virtual class OGRGeometry *<br>> >> __thiscall OG<br>> >> RGeometry::Intersection(class OGRGeometry const *)const "<br>> >> (?Intersection@OGRGeom
<br>> >> etry@@UBEPAV1@PBV1@@Z)<br>> >> ogr.lib(ogrgeometry.obj ) : error LNK2019: unresolved external symbol<br>> >> _GEOSUnion<br>> >> referenced in function "public: virtual class OGRGeometry * __thiscall
<br>> >> OGRGeomet<br>> >> ry::Union(class OGRGeometry const *)const "<br>> >> (?Union@OGRGeometry@@UBEPAV1@PBV1@@Z<br>> >> )<br>> >> ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol
<br>> >> _GEOSDiffer<br>> >> ence referenced in function "public: virtual class OGRGeometry *<br>> >__thiscall<br>> >> OGRG<br>> >> eometry::Difference(class OGRGeometry const *)const " (
<br>> >> ?Difference@OGRGeometry@@<br>> >> UBEPAV1@PBV1@@Z)<br>> >> ogr.lib(ogrgeometry.obj) : error LNK2019: unresolved external symbol<br>> >> _GEOSSymDif<br>> >> ference referenced in function "public: virtual class OGRGeometry *
<br>> >> __thiscall O<br>> >> GRGeometry::SymmetricDifference(class OGRGeometry const *)const "<br>> >> (?SymmetricDif<br>> >> ference@OGRGeometry@@UBEPAV1@PBV1@@Z)<br>> >>
ogr.lib(ogrpolygon.obj) : error LNK2019: unresolved external symbol<br>> >> _GEOSGetCent<br>> >> roid referenced in function "public: virtual int __thiscall<br>> >> OGRPolygon::Centroid<br>
> >> (class OGRPoint *)const " ( ?Centroid@OGRPolygon@@UBEHPAVOGRPoint@@@Z)<br>> >> gdal13.dll : fatal error LNK1120: 9 unresolved externals<br>> >> NMAKE : fatal error U1077: 'link' : return code '0x460'
<br>> >> Stop.<br>> >><br>> >> Is there something else that I need to do in addition to the changes<br>> >> mentioned above to the nmake.opt file. Please note that I am using the<br>> >> latest version of the GEOS API. I checked it out from the subversion
<br>> >trunk<br>> >> and built it. It builds fine without any errors or warnings.<br>> >><br>> >> Best Regards<br>> >_______________________________________________<br>> >geos-devel mailing list
<br>> ><a href="mailto:geos-devel@geos.refractions.net">geos-devel@geos.refractions.net</a><br>> ><a href="http://geos.refractions.net/mailman/listinfo/geos-devel">http://geos.refractions.net/mailman/listinfo/geos-devel
</a><br>> ><br><br>> _______________________________________________<br>> geos-devel mailing list<br>> <a href="mailto:geos-devel@geos.refractions.net">geos-devel@geos.refractions.net</a><br>> <a href="http://geos.refractions.net/mailman/listinfo/geos-devel">
http://geos.refractions.net/mailman/listinfo/geos-devel</a><br><br><br>--<br><br>/"\ ASCII Ribbon Campaign<br>\ / Respect for low technology.<br>X Keep e-mail messages readable by any computer system.<br>/ \ Keep it ASCII.
<br><br>_______________________________________________<br>geos-devel mailing list<br><a href="mailto:geos-devel@geos.refractions.net">geos-devel@geos.refractions.net</a><br><a href="http://geos.refractions.net/mailman/listinfo/geos-devel">
http://geos.refractions.net/mailman/listinfo/geos-devel</a><br></blockquote></div><br>