<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div dir="ltr" id="yui_3_16_0_1_1470654247017_4732">Jan,<br id="yui_3_16_0_1_1470654247017_4756">
<br id="yui_3_16_0_1_1470654247017_4757">I'll dig into it and it let you know.<br id="yui_3_16_0_1_1470654247017_4760">
</div><div id="yui_3_16_0_1_1470654247017_4884" dir="ltr"><br id="yui_3_16_0_1_1470654247017_4763">
Mathieu Lattes<br id="yui_3_16_0_1_1470654247017_4764">
<br id="yui_3_16_0_1_1470654247017_4765">
<br id="yui_3_16_0_1_1470654247017_4766">
</div> <div class="qtdSeparateBR"><br><br></div><div style="display: block;" class="yahoo_quoted"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font face="Arial" size="2"> Le Samedi 6 août 2016 22h19, Jan Heckman <jan.heckman@gmail.com> a écrit :<br></font></div> <br><br> <div class="y_msg_container"><div id="yiv6459085016"><div><div dir="ltr">Hi Mateusz,<div>Thanks for your effort! It is really handy for me.<br clear="none"><div>FYI, a few more things I came across:<div>- In the dll post build event there are 3 copy commands (dll, lib and exp). The second and third command need a space before 'copy'.</div><div>- Enclosing source and destination file macros in quotes helps.</div><div>- in 64 bits compilation (VS2015 community update 1) the link fails with a C1001 (internal compiler error). This is incurred by gdalexif.cpp, which is not to blame btw.</div><div> The 'solution' is to turn off compiler optimization for this file only (and only for x64 compilation). Have not checked whether this happens e.g. in VS2013.</div><div>- diminishing the number of compiler warnings:</div><div> - /D _CRT_SECURE_NO_WARNINGS, if the secure versions are not going to be used anyway (portability?).</div><div> - change deprecated POSIX (acc. to VS), such as open, read, write, close, fdopen, setmode to underscored names (_open, _read etc.)</div><div> Not sure whether this is exclusively MS.</div><div>- warnings which are somewhat worryable: C4251, when compiling or using DLL: X used in clas Y needs dll-interface.</div><div> <a rel="nofollow" shape="rect" target="_blank" href="https://support.microsoft.com/en-us/kb/168958">article</a> claims to solve this, but not too well, imo, because the proposed solution then causes the same warning..</div><div> Advice (e.g. <a rel="nofollow" shape="rect" target="_blank" href="http://www.gamedev.net/topic/637431-dealing-with-needs-to-have-dll-interface-to-be-used-by-clients-of-class/">gamedev mails</a>) is not to export whole classes but only public members and ctor - dtor. More to be found <a rel="nofollow" shape="rect" target="_blank" href="http://stackoverflow.com/questions/767579/exporting-classes-containing-std-objects-vector-map-etc-from-a-dll?noredirect=1&lq=1">here</a>.</div><div> Claims that some STL (esp vector) can be safely exported, but not all (map has (or at least had) a static member).</div></div><div>I've never come to grief ignoring C2451, so far.</div><div>Jan</div></div></div><div class="yiv6459085016gmail_extra"><br clear="none"><div class="yiv6459085016yqt7787273575" id="yiv6459085016yqtfd00025"><div class="yiv6459085016gmail_quote">On Thu, Aug 4, 2016 at 4:07 PM, Mateusz Loskot <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:mateusz@loskot.net" target="_blank" href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>></span> wrote:<br clear="none"><blockquote class="yiv6459085016gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span class="yiv6459085016">On 4 August 2016 at 15:41, Ivan Lucena <<a rel="nofollow" shape="rect" ymailto="mailto:lucena_ivan@hotmail.com" target="_blank" href="mailto:lucena_ivan@hotmail.com">lucena_ivan@hotmail.com</a>> wrote:<br clear="none">
> Hi Mateusz,<br clear="none">
><br clear="none">
> I far as I know the project generated by makegdal_gen.bat does not work with newer version of VS.<br clear="none">
><br clear="none">
> It used to be the case that we can import the project to newer version of VS but I think that MS dropped the support for that feature.<br clear="none">
><br clear="none">
> Have one of you manage to load the generated .vcproj into VS > 2010? I would like to know how to do that!<br clear="none">
<br clear="none">
</span>Ivan,<br clear="none">
<br clear="none">
1. makegdal_gen 10.00 32 > makegdal10.vcproj<br clear="none">
2. Launch VS2015<br clear="none">
3. File > Open > Project/Solution...<br clear="none">
4. Select makegdal10.vcproj<br clear="none">
5. Accept to upgrade<br clear="none">
<br clear="none">
I can confirm it works for me.<br clear="none">
<div class="yiv6459085016HOEnZb"><div class="yiv6459085016h5"><br clear="none">
Best regards,<br clear="none">
--<br clear="none">
Mateusz Loskot, <a rel="nofollow" shape="rect" target="_blank" href="http://mateusz.loskot.net/">http://mateusz.loskot.net</a><br clear="none">
______________________________ _________________<br clear="none">
gdal-dev mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:gdal-dev@lists.osgeo.org" target="_blank" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/ mailman/listinfo/gdal-dev</a></div></div></blockquote></div><br clear="none"></div></div></div></div><br>_______________________________________________<br clear="none">gdal-dev mailing list<br clear="none"><a shape="rect" ymailto="mailto:gdal-dev@lists.osgeo.org" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br clear="none"><a shape="rect" href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br><br></div> </div> </div> </div></div></body></html>