martinling / libserialport

Unofficial personal repository for libserialport - see git://sigrok.org/libserialport for official repo
http://sigrok.org/wiki/Libserialport
GNU Lesser General Public License v3.0
65 stars 34 forks source link

Add a note about building libserialport on Windows to README file #2

Closed ymyasoedov closed 9 years ago

ymyasoedov commented 10 years ago

Please, add a note, that make should be run with LDFLAGS=-no-undefined to be able to build shared library: $ make LDFLAGS=-no-undefined

Otherwise, without LDFLAGS you will get: $ make CC serialport.lo CCLD libserialport.la libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries

mbt commented 10 years ago

The undefined symbol was caused by a header not being included that needed to be. It's fixed in pull request #3, which I just submitted.

BTW, in this case adding -no-undefined would have failed to build the static library as well, instead of just not building the DLL.

ElectricRCAircraftGuy commented 9 years ago

Hi, can you help me build and use it in Windows please? See here: https://github.com/martinling/libserialport/issues/10