[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-source-highlight] Is it possible to build shared source-highli
From: |
Lorenzo Bettini |
Subject: |
Re: [Help-source-highlight] Is it possible to build shared source-highlight library in windows? |
Date: |
Wed, 10 Feb 2016 17:03:01 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
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