Pradeep,<br><br>I see your ogr_core.h file is in a separate directory. Are you compiling ogr without the gdal files?<br><br>Also, I couldn't open the screenshots archive.<br><br><div class="gmail_quote">On Fri, May 6, 2011 at 9:33 AM, Pradeepkp <span dir="ltr"><<a href="mailto:pradeepkumar.penchala@iiitb.net">pradeepkumar.penchala@iiitb.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
While I am compiling the code (cpp version) given in<br>
<a href="http://www.gdal.org/ogr/ogr_apitut.html" target="_blank">http://www.gdal.org/ogr/ogr_apitut.html</a><br>
<br>
I am getting lot of compilation errors. I am not sure why they are coming as<br>
it is the code directly taken from the above given link. Can you please look<br>
at the screenshots attached and let me know if I am making any mistakes in<br>
running.<br>
<br>
<br>
These are few sample errors:<br>
<br>
Code:<br>
<br>
318: enum ogr_style_tool_param_pen_id<br>
319:{<br>
320: OGRSTPenColor = 0,<br>
321: OGRSTPenWidth = 1,<br>
322: OGRSTPenPattern = 2,<br>
323: OGRSTPenId = 3,<br>
324: OGRSTPenPerOffset = 4,<br>
325: OGRSTPenCap = 5,<br>
326: OGRSTPenJoin = 6,<br>
327: OGRSTPenPriority = 7,<br>
328: OGRSTPenLast = 8<br>
<br>
330: };<br>
<br>
332: enum ogr_style_tool_param_brush_id<br>
333: {<br>
334: OGRSTBrushFColor = 0,<br>
335: OGRSTBrushBColor = 1,<br>
336: OGRSTBrushId = 2,<br>
337: OGRSTBrushAngle = 3,<br>
338: OGRSTBrushSize = 4,<br>
339: OGRSTBrushDx = 5,<br>
340: OGRSTBrushDy = 6,<br>
342: OGRSTBrushPriority = 7,<br>
<a href="http://osgeo-org.1803224.n2.nabble.com/file/n6336405/screenshots_errors.tar.gz" target="_blank">http://osgeo-org.1803224.n2.nabble.com/file/n6336405/screenshots_errors.tar.gz</a><br>
screenshots_errors.tar.gz<br>
343: OGRSTBrushLast = 8<br>
344:<br>
345: };<br>
<br>
/home/pradeep/android maps/Ogr Tutorial/ogr_core.h:328: error: conflicting<br>
declaration ‘OGRSTPenLast’<br>
/home/pradeep/android maps/Ogr Tutorial/ogr_core.h:328: error:<br>
‘OGRSTPenLast’ has a previous declaration as ‘ogr_style_tool_param_pen_id<br>
OGRSTPenLast’<br>
<br>
/home/pradeep/android maps/Ogr Tutorial/ogr_core.h:332: error: multiple<br>
definition of ‘enum ogr_style_tool_param_brush_id’<br>
/home/pradeep/android maps/Ogr Tutorial/ogr_core.h:332: error: previous<br>
definition here<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://osgeo-org.1803224.n2.nabble.com/Ogr-tutorial-code-in-cpp-not-compiling-due-to-errors-tp6336405p6336405.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Ogr-tutorial-code-in-cpp-not-compiling-due-to-errors-tp6336405p6336405.html</a><br>
Sent from the GDAL - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>