<div dir="ltr">Hello<div><br></div><div>Reporting some cosmetic issues during compiling PTLib on VS2008-SP1. The files:</div><div><br></div><div><span class="Apple-style-span" style="font-style: italic;">vsdl.cxx<br clear="all">
pvfiledev.cxx</span></div><div><span class="Apple-style-span" style="font-style: italic;">pstun.cxx</span></div><div><br></div><div>Have the macro '#define P_FORCE_STATIC_PLUGIN', the VS compiler outputs:</div><div>
<br></div><div><div><span class="Apple-style-span" style="font-style: italic;">1>..\..\ptclib\{one of above} : warning C4603: 'P_FORCE_STATIC_PLUGIN' : macro is not defined or definition is different after precompiled header use</span></div>
<div><span class="Apple-style-span" style="font-style: italic;">1>        Add macro to precompiled header instead of defining here</span></div><div><span class="Apple-style-span" style="font-style: italic;">1>        ..\..\ptclib\{one of above} : use of precompiled header</span></div>
</div><div><br></div><div><br></div><div>But the <ptlib/pluginmgr.h> includes <ptlib/plugin.h>, the later already define 'P_FORCE_STATIC_PLUGIN' when compiling under _WIN32.</div><div>So remove or comment the</div>
<div><br></div><div><span class="Apple-style-span" style="font-style: italic;">#define P_FORCE_STATIC_PLUGIN</span><br></div><div><br></div><div>from:</div><div><br></div><div><div><span class="Apple-style-span" style="font-style: italic;">vsdl.cxx<br clear="all">
pvfiledev.cxx</span></div><div><span class="Apple-style-span" style="font-style: italic;">pstun.cxx</span></div><div><br></div></div><div><div>//============================</div><div>sockets.cxx</div><div><br></div><div>
The '#include <ptlib.h>' is the pre-compiled header and MUST come 1st so, changing '#include <ptlib.h>' to come before '#ifdef __NUCLEUS_PLUS__'</div><div><br></div><div>>>>before:</div>
<div>#ifdef __NUCLEUS_PLUS__</div><div>#include <ConfigurationClass.h></div><div>#endif</div><div><br></div><div><br></div><div>#include <ptlib.h></div><div><br></div><div>>>>after:</div><div>#include <ptlib.h></div>
<div><br></div><div>#ifdef __NUCLEUS_PLUS__</div><div>#include <ConfigurationClass.h></div><div>#endif</div></div><div><br></div><div>//============================<br></div><div>Error: sphelper.h(1170)</div><div><br>
</div><div>GetUserDefaultUILanguage(): identifier not found<br></div><div><br></div><div><br></div><div>Configure is using c:\program files\microsoft sdks\windows\v6.0a\ for Located Speech API</div><div>compile without speech support.</div>
<div><br>-- <br>-----<br>Jogue RPG, alimente o lado criativo!<br>
</div></div>