I was just kind of joking. Better said "compiling on windows for pd and max is a moving target". Thanks for advices i should get my way to cmake really ;-) 

Il mer 5 set 2018, 16:25 alfonso santimone <alfonso.santimone@gmail.com> ha scritto:
Hi Christof, thanks. I'm trying to build a 64bit external for 64bit pd.
I tried to remove pd.lib and pd.a from the linker settings and substitute them with pd.dll but comiplation fail because pd.dll file format is not recognized. I have no good knowledge of cmake. But i guess i have to study it. Coding for pd and max is always a moving target :-D

Il 5 set 2018 15:54, "Christof Ressi" <christof.ressi@gmx.at> ha scritto:
> 2. So i took pd.a form the src folder of my pd 32bit installation.

> Maybe the mingw64 compiler isn't working for pd 64x on windows?

are you trying to build a 64-bit external for a 64-bit Pd *or* a 32-bit external for a 32-bit Pd? I'm asking because you mention both 32bit and 64bit Pd.

---

another common mistake is to make the setup function in external static, so it doesn't get exported.

run your patch from the command line with -verbose to get more detailed error messages.


Christof 
 

Gesendet: Mittwoch, 05. September 2018 um 15:28 Uhr
Von: "alfonso santimone" <alfonso.santimone@gmail.com>
An: pd-list@lists.iem.at
Betreff: [PD] Setting Code::Blocks (MinGW64) to compile pd externals

Hi all,
i'm trying to get in my way to compile some external for pd on Win64.
I followed a Code::Blocks configuration tutorial here (which is about win32 tho).
 
https://www.youtube.com/watch?v=7hByIk-xXXw&index=11&list=PLn3ODBv0ka5g_zKRpmgc58-Tj-Qn-P5qz
 
1. It seems that the src folder for the last pd ( http://msp.ucsd.edu/Software/pd-0.48-2-64bit.msw.zip[http://msp.ucsd.edu/Software/pd-0.48-2-64bit.msw.zip] ) doesn't contain pd.a no more.

 
2. So i took pd.a form the src folder of my pd 32bit installation.
 
3. The external (i named it "blank") compiles with no errors but when i try to load it in pd 
C:\\Users\\Live Machine\\Documents\\Pd\\externals\\blank\\blank.dll: couldn't load
 
Maybe the mingw64 compiler isn't working for pd 64x on windows?
 
any help appreciated!
 
best