Hello All,<div><br></div><div>I&#39;m writing two new drivers ( For ALOS PRISM and AVNIR-2 ) and I&#39;m trying to add them to the list of drivers.</div><div><br></div><div>I&#39;ve added them to gdal_frmts.h:</div><div><br>
</div><div><div>void CPL_DLL GDALRegister_PRISM(void)</div><div>void CPL_DLL GDALRegister_AVNIR2(void)</div><div><br></div><div>And provisionally, I&#39;ve added them to gdalallregister.cpp, joining them to the jaxapalsar driver, which I&#39;m sure I&#39;m including</div>
<div><br></div><div><div> #ifdef FRMT_jaxapalsar</div><div><br></div><div>    GDALRegister_AVNIR2();</div><div>    GDALRegister_PRISM();</div><div>    GDALRegister_PALSARJaxa();</div><div><br></div><div>#endif</div></div>
<div><br></div><div>But I&#39;ve no way of gdalallregister.cpp to see the declaration of the functions of these drivers. </div><div><br></div><div><br></div><div><div>gdalallregister.cpp: In function &#39;void GDALAllRegister()&#39;:</div>
<div>gdalallregister.cpp:483: error: &#39;GDALRegister_AVNIR2&#39; was not declared in this scope</div><div>gdalallregister.cpp:484: error: &#39;GDALRegister_PRISM&#39; was not declared in this scope</div></div><div><br></div>
<div><br></div><div>BTW, I&#39;, using a CMake script to compile, but the library compiles just fine with jaxapalsar support, if I delete the references to the new file formats, and at the point of compilation this bug triggers, the only requirement is that the GDALRegister functions have to be declared, and the gdal_frmts.h file is available.</div>
<div><br></div><div>Many thanks in advance.</div><div><br></div><br>-- <br><span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">Ing. Rodolfo Bonnin<br>SUR Emprendimientos Tecnológicos<br><br>
Perú 345  Piso 5to Oficina &quot;B&quot; (C1067AAG)<br>Ciudad de Buenos Aires, Argentina<br>Tel. +54 (11) 4342-2976/84<br>rodolfobonnin@<a href="http://suremptec.com.ar/" style="color:rgb(7, 77, 143)" target="_blank">suremptec.com.ar</a><br>
<a href="http://www.suremptec.com/" style="color:rgb(7, 77, 143)" target="_blank">www.suremptec.com</a></span><br>
</div>