[PD] MinGW + Eclipse + MSWIN helloworld

luca paganotti luca.paganotti at gmail.com
Thu Jul 14 18:54:13 CEST 2011


Hi Mathieu,

thank you for the prompt answer, here it is the portion of my makefile that
governs the windows build:

# ----------------------- NT -----------------------
pd_nt: $(TARGETS)

MINGWCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer \
    -Wall -W -Wshadow -Wstrict-prototypes -Werror \
    -Wno-unused -Wno-parentheses -Wno-switch -mms-bitfields

MINGWLDFLAGS =   -shared -lm -lkernel32 -lcoldname -lcrtdll -L$(PDLIBDIR)
-lpd

MINGWINCLUDE =  -I$(PDSRCDIR)

CC = mingw32-gcc.exe

%.pd_nt: %.c
    $(CC) $(MINGWLDFLAGS) $(MINGWCFLAGS) $(MINGWINCLUDE) -o $*.dll $*.c

and these are the command lines eclipse issues:

mingw32-make pd_nt
mingw32-gcc.exe -shared -lm -lkernel32 -lcoldname -lcrtdll
-Lc:/Programmi/pd/bin -lpd -DPD -O2 -funroll-loops -fomit-frame-pointer
-Wall -W -Wshadow -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses
-Wno-switch -mms-bitfields -Ic:/Programmi/pd/src -o helloworld.dll
helloworld.c

so I'm using the -shared linker option and -lpd dowsn't mean that I'm
linking against the pd dll?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20110714/93ad1cee/attachment.htm>


More information about the Pd-list mailing list