<div dir="ltr">Hello,<br><br>The def file was always a bit of a mystery to me, since you do not specify it on the command line but the linker just finds it magically. I much prefer the import/export mechanism.<br><br>Here is what I typically did when I still did some Win32 programming:<br>
<br>Add the following code in your header file:<br><br><pre>#if defined(_WIN32)<br>#if defined(mylib_EXPORTS)<br> #define MYLIB_EXPORT __declspec( dllexport ) <br> #else<br> #define MYLIB_EXPORT __declspec( dllimport ) <br>
#endif<br>#else<br> #define MYLIB_EXPORT<br>#endif<br><br>Then every symbol you want to use outside the shared lib export like this:<br><br>class MYLIB_EXPORT someClass {<br>...<br>};<br><br>and<br><br>MYLIB_EXPORT void someFunc();<br>
<br>and so on.<br><br>Hope this helps.<br><br>Andy<br><br><br></pre><br><div class="gmail_quote">On Tue, Oct 7, 2008 at 11:25 AM, Andrea Borsic <span dir="ltr"><<a href="mailto:Andrea.Borsic@dartmouth.edu">Andrea.Borsic@dartmouth.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All,<br>
<br>
Yes it is the .def file that defines the import/exports, but the linking stage fails before taking care of these aspects: it looks for triagle_lib.lib which is not there and stops before considering symbol resolutions.<br>
<br>
Thanks for your help, I will be reading all the emails that came in,<br>
<br>
Regards,<br><font color="#888888">
<br>
Andrea</font><div class="Ih2E3d"><br>
<br>
<br>
<br>
Joshua L. Blocher wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Isn't the def files the defines the export symbols.<br>
<br>
Boudewijn Rempt wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 7 Oct 2008, Andrea Borsic wrote:<br>
<br>
<br>
</blockquote></blockquote>
<br></div><div><div></div><div class="Wj3C7c">
_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lets bike the world together<br><a href="http://legoandy.com">http://legoandy.com</a><br>
</div>