<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        panose-1:3 0 5 9 0 0 0 0 0 0;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@DengXian";
        panose-1:3 0 5 9 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-NZ link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Hi All,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Yes a module definition file (.def) is one way to define the functions exported from a DLL.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a href="https://docs.microsoft.com/en-us/cpp/build/exporting-from-a-dll-using-def-files">https://docs.microsoft.com/en-us/cpp/build/exporting-from-a-dll-using-def-files</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Dan<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif'> proj-bounces@lists.maptools.org [mailto:proj-bounces@lists.maptools.org] <b>On Behalf Of </b>Kurt Schwehr<br><b>Sent:</b> Thursday, November 09, 2017 5:44 AM<br><b>To:</b> proj <proj@lists.maptools.org><br><b>Subject:</b> [Proj] What is src/proj.def for?<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>Hi all,<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Maybe a dumb question, but what is src/proj.def for? Is this a MSVC only thing? It looks like something that controls share lib entry points. I'm not a Windows dev, so maybe that's why I don't know what it is.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Am I missing some location where it's documented? The closest I got was:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><a href="https://github.com/OSGeo/proj.4/issues/214">https://github.com/OSGeo/proj.4/issues/214</a><o:p></o:p></p></div><div><p class=MsoNormal><a href="https://github.com/OSGeo/proj.4/pull/355">https://github.com/OSGeo/proj.4/pull/355</a><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>I've been patching my bazel based build that has this file, but it doesn't seem to be used by anything.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>-kurt<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal>find . -type f | grep -v git | xargs egrep 'proj[.]def'<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>./ChangeLog: * src/proj.def: add pj_get_spheroid_defn to proj.def. (#214)<o:p></o:p></p></div><div><p class=MsoNormal>./ChangeLog: * proj.def: added lots of methods, including some private ones used<o:p></o:p></p></div><div><p class=MsoNormal>./ChangeLog: * src/pj_pr_list.c, proj.def, proj_api.h: Added the pj_get_def()<o:p></o:p></p></div><div><p class=MsoNormal>./ChangeLog: * src/proj.def: added pj_strerrno and pj_errno as per request from<o:p></o:p></p></div><div><p class=MsoNormal>./ChangeLog: * Added proj.def to extra_dist in src/Makefile.am.<o:p></o:p></p></div><div><p class=MsoNormal>./src/lib_proj.cmake: set(ALL_LIBPROJ_SOURCES ${ALL_LIBPROJ_SOURCES} proj.def )<o:p></o:p></p></div><div><p class=MsoNormal>./src/Makefile.am:EXTRA_DIST = <a href="http://makefile.vc">makefile.vc</a> proj.def bin_cct.cmake bin_gie.cmake bin_cs2cs.cmake \<o:p></o:p></p></div><div><p class=MsoNormal>./src/<a href="http://makefile.vc">makefile.vc</a>: link /debug /dll /def:proj.def /out:$(PROJ_DLL) /implib:proj_i.lib \<o:p></o:p></p></div><div><p class=MsoNormal>./wince/msvc80/projce_dll/projce_dll.vcproj: <Tool Name="VCLinkerTool" AdditionalOptions=" /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE" AdditionalDependencies="ccrtrtti.lib" OutputFile="$(OutDir)/proj.dll" LinkIncremental="2" AdditionalLibraryDirectories="" ModuleDefinitionFile="..\..\..\src\proj.def" DelayLoadDLLs="$(NOINHERIT)" GenerateDebugInformation="true" ProgramDatabaseFile="$(OutDir)/proj_dll.pdb" SubSystem="0" ImportLibrary="$(OutDir)/proj_i.lib"/><o:p></o:p></p></div><div><p class=MsoNormal>./wince/msvc80/projce_dll/projce_dll.vcproj: <Tool Name="VCLinkerTool" AdditionalOptions=" /subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE" OutputFile="$(OutDir)/proj.dll" LinkIncremental="1" ModuleDefinitionFile="..\..\..\src\proj.def" DelayLoadDLLs="$(NOINHERIT)" GenerateDebugInformation="true" ProgramDatabaseFile="$(OutDir)/projce_dll.pdb" SubSystem="0" OptimizeReferences="2" EnableCOMDATFolding="2" ImportLibrary="$(OutDir)/proj_i.lib"/><o:p></o:p></p></div><div><p class=MsoNormal>./wince/msvc80/projce_dll/projce_dll.vcproj: <File RelativePath="..\..\..\src\proj.def"><o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal><o:p> </o:p></p></div></div></div></div></body></html>