[PD-dev] building vanilla on win32

martin.peach at sympatico.ca martin.peach at sympatico.ca
Fri Aug 20 18:41:31 CEST 2010


patrice wrote:

>  Hello, is there someone using MSVC that would give an help?
> 
> I'd like to know if adding this line to g_canvas.h would fix the gridflow external loading
> 
> 
> EXTERN void canvas_setgraph(t_glist *x, int flag, int nogoprect);
> 

You can add a line in the Property -> Linker -> Command Line -> Additional Options:
/export: canvas_setgraph

Or you can write a text file something.def with this text:
LIBRARY whatever.dll
EXPORTS
    canvas_setgraph

Or you can change the line in g_canvas.h

__declspec(dllexport) void canvas_setgraph(t_glist *x, int flag, int nogoprect);

EXPORT would also do this, it's defined in m_pd.h.
It seems you would also have to define PD_INTERNAL.
And EXPORT also prefixes the keyword 'extern', which you may not want.

Martin

> Vanilla doesn't compile on MinGW because it can not compile last releases of portaudio and portmidi
> 
> Also I've never used MSVC, is there a documentation somewhere for building pd with it?
> 
> thanks
> 
> -- 
> Patrice Colet 
> 
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20100820/0f499a64/attachment.htm>


More information about the Pd-dev mailing list