[PD] Re: [PD-dev] more windows compile issues

Hans-Christoph Steiner hans at eds.org
Tue Dec 6 00:40:13 CET 2005


On Dec 5, 2005, at 6:00 PM, Martin Peach wrote:

> Ed Kelly wrote:
>
>> The actual problem is thus:
>> unresolved external symbol framescore_tilde_setup
>> framescore~.lib : fatal error LNK1120:1 unresolved externals
>>
>> I put framescore_tilde_setup in the makefile explicitly - the same as  
>> for dspobj~.dll in the doc/6.externals folder.
>>
> For MSVC, not MinGW, you need to put
> __declspec(dllexport)
> in front of the declaration of framescore_tilde_setup in order for  
> MSVC to export the name so the linker will find it.

So you could either:

#ifdef _MSC_VER /* MSVC */
__declspec(dllexport)
#endif

or

#ifndef __GNUC__
__declspec(dllexport)
#endif

.hc


________________________________________________________________________ 
____

                     There is no way to peace, peace is the way.
						        				-A.J. Muste





More information about the Pd-list mailing list