<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Ladies and Gents,<br><br>I have downloaded the v2 branch of openjpeg from the svn yesterday while using CMAKE to construct VS2005 static library projects.&nbsp; All went well to build the static library.&nbsp; I linked the static library via modifying nmake.opt to point to the path location of the library (.lib) file and the include file (openjpeg.h).<br><br>I issue the command via VS2005 command prompt:<br><br>nmake /f makefile.vc debug=1<br><br>GDAL can compile successfully, but when it tries to create gdal_i.lib, I get LNK2019 errors for all references to openjpeg library (file openjpegdataset.obj).&nbsp; The first two LNK2019 are in&nbsp; IReadBlock&nbsp; of <br>opj_end_decompress@8<br>opj_decode_tile_header@40<br><br>What steps do I have to take to make it work?&nbsp; Have I forgotten a step?&nbsp; This is what I have in nmake.opt:<br><br><p
 style="font-family: courier; font-size: 10pt;">OPENJPEG_ENABLED&nbsp;=&nbsp;YES<br>OPENJPEG_CFLAGS&nbsp;=&nbsp;-IC:\openjpeg\libopenjpeg<br>OPENJPEG_LIB&nbsp;=&nbsp;C:\openjpeg\bin\Release\openjpeg.lib</p><p style="font-family: courier; font-size: 10pt;"><br></p><p style="font-family: courier; font-size: 10pt;">CFLAGS should point to openjpeg.h and LIB should point to the openjpeg.lib file.&nbsp; It should work but I am puzzled?&nbsp; Any advice?&nbsp; Do I need to provide more information?&nbsp; Has anyone experienced this problem?<br></p><p style="font-family: courier; font-size: 10pt;"><br></p><p style="font-family: courier; font-size: 10pt;">FYI, I have performed a dumpbin.exe /SYMBOLS to verify the contents of the .lib file does have the requested functions to be used statically.</p><p style="font-family: courier; font-size: 10pt;"><br></p><p style="font-family: courier; font-size: 10pt">Robert<br></p><br></td></tr></table>