libftdi Archives

Subject: Re: Compiling libftdi with MSVC on Windows

From: Thomas Heller <theller@xxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 04 Apr 2012 15:51:04 +0200
Am 04.04.2012 15:45, schrieb Xiaofan Chen:
On Wed, Apr 4, 2012 at 5:57 PM, Thomas Heller<theller@xxxxxxxxxx>  wrote:

This library does not define any exported functions, I have made a patch
that fixes this which is appended.

Would a patch like this (it is against the libftdi-0.x branch of the git
repository) be accepted?


Usually people do this with a def file when building the DLL.
But I am not an expert in MSVC.

A def file works in the same way afaik, and does not add any 'noise'
for non-windows developers.  However, IMO the EXPORT definitions are
less error-prone to maintain; when someone adds a new function to the
api it is easy to forget to add this function to the .def file.

Thomas

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
Current Thread