Re: Is it possible to build shared source-highlight library in windows?
Lorenzo Bettini <[email protected]> Wed, 10 Feb 2016 17:03:01 +0100
| Newsgroups | gmane.comp.gnu.source-highlight.general |
|---|---|
| Message-ID | <[email protected]> |
On 08/02/2016 09:23, liangjs wrote: > I'm using msys2 on windows. I have successfully built the static > library, and it works well. > But it's just a little big for me, for example "source-highlight.exe" is > about 32MB, and my software using the library is likely to be large. > I want to build a shared source-highlight library under msys2, but I > failed with: > libtool: warning: undefined symbols not allowed in x86_64-pc-mingw64 > shared libraries; building static only > > I think it is because there is no things like this in the library source > > |#ifdef_WIN32 # ifdef DLL_EXPORT# define LIBRARY_API > __declspec(dllexport)# else# define LIBRARY_API __declspec(dllimport)# > endif#endif#ifndef_WIN32 # define LIBRARY_API#endif > > So is it possible to build shared source-highlight library in windows? Hi I never tried that... probably you need that adjustment, and I guess you need that in many places... probably. I have no experience on windows dlls, I'm afraid. cheers Lorenzo -- Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze HOME: http://www.lorenzobettini.it Xtext Book: http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book