Hello All,<div><br></div><div>I'm writing two new drivers ( For ALOS PRISM and AVNIR-2 ) and I'm trying to add them to the list of drivers.</div><div><br></div><div>I'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've added them to gdalallregister.cpp, joining them to the jaxapalsar driver, which I'm sure I'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'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 'void GDALAllRegister()':</div>
<div>gdalallregister.cpp:483: error: 'GDALRegister_AVNIR2' was not declared in this scope</div><div>gdalallregister.cpp:484: error: 'GDALRegister_PRISM' was not declared in this scope</div></div><div><br></div>
<div><br></div><div>BTW, I', 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 "B" (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>