[PD-dev] Problem building pdlua on MinGW (solved for now)

Frank Barknecht fbar at footils.org
Wed Sep 3 09:06:05 CEST 2008


Hallo,
PSPunch hat gesagt: // PSPunch wrote:

> -------------
> 3. Modify Makefile.static
> 
> - line:5  Comment out (#PLATFORM = linux)
> - line:7  Uncomment (PLATFORM = mingw)
> - line:30
>    Before:
>     CFLAGS_mingw = -export_dynamic -shared
> 
>    After:
>     CFLAGS_mingw = -shared -D MSW -D PD_INTERNAL -I./

Could you try if this: 
  
  CFLAGS_mingw = -shared -D MSW -I./

works as well?

I think, defining PD_INTERNAL is not necessary, as in (my) m_pd.h not
defining it should have the same results: 

  #ifdef MSW
  #ifdef PD_INTERNAL
  #define EXTERN __declspec(dllexport) extern
  #else
  #define EXTERN __declspec(dllimport) extern
  #endif /* PD_INTERNAL */
  #else
  #define EXTERN extern
  #endif /* MSW */

Ciao
-- 
 Frank Barknecht                                     _ ______footils.org__




More information about the Pd-dev mailing list