Re: Exporting const functions from DLL

2004-09-24 Thread Maarten Boekhold
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

Exporting const functions from DLL

2004-09-24 Thread Maarten Boekhold
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' a