Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 24 Sep 2004 17:47:58 +0400 From: Maarten Boekhold Subject: Re: Exporting const functions from DLL In-reply-to: <41541F33.90905@emirates.net.ae> To: cygwin AT cygwin DOT com Message-id: <4154258E.1050605@emirates.net.ae> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) References: <41541F33 DOT 90905 AT emirates DOT net DOT ae> X-IsSubscribed: yes Hi all, sorry, never mind. My mistake... As you probably noticed, I was looking at the wrong function! Maarten Maarten Boekhold wrote: > Hi, > > I ran into the following: > > icons.h: > const gchar * > resolve_folder_icon(tree_entry_t * en); > > icons.c: > __declspec(dllexport) > const gchar *resolve_folder_icon (tree_entry_t * en) > { > etc.. > } > > Compile error: > icons.c:562: error: external linkage required for symbol 'resolve_icon' > because of 'dllexport' attribute. > make: *** [libxffm_basic_la-icons.lo] Error 1 > > I found a reference to a similar problem at: > http://www.cygwin.com/ml/cygwin/2003-11/msg00654.html > > I tried removing the const, adding extern to the include file and all > possible combinations of that, but no luck... > > $ gcc --version > gcc (GCC) 3.3.3 (cygwin special) > $ uname -a > CYGWIN_NT-5.1 DXBM2003 1.5.11(0.116/4/2) 2004-09-04 23:17 i686 unknown > unknown Cygwin > > Does anybody know how to solve this? > > Maarten > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/