Hallo!
I tried cygwin to compile an external by me on windows (I modified the windows makefile from CVS). But I got some strange problems (everything compiled fine under linux and also with msvc): I have build the dll in the cygwin shell, but when I create the object in PD an error occurs (cygwin1.dll is needed). So I copied cygwin1.dll into c:/windows/system and tried it again, but then my computer was down!
Do I always need this cygwin1.dll to load such an external, and where should cygwin1.dll be ?
Thanks, LG Georg
PS: my windows-makefile:
--------------------------------------------------------------
TARGET = holzilib.dll
PD_PATH = "c:/pd"
SRC = $(shell ls *.c)
OBJ = $(SRC:.c=.o)
CFLAGS = -DPD -DWINDOWS -Wall -W -Wshadow -Wstrict-prototypes \ -Wno-unused -Wno-parentheses -Wno-switch
INCLUDE = -I. -I.. -I../include -I$(PD_PATH)/src
# -------------------------------------------------------------
.SUFFIXES: .dll
all: $(OBJ) @echo :: $(OBJ) gcc -shared -o $(TARGET) *.o $(PD_PATH)/bin/pd.dll \ `test -f $*.libs && cat $*.libs` rm *.o
$(OBJ): %.o : %.c touch $*.c cc $(CFLAGS) $(INCLUDE) -c -o $*.o $*.c
clean: -rm *.a *.def *.dll *.o
#install-doc: # @test -d $(PD_PATH)/doc/5.reference || mkdir -$(PD_PATH)/doc/5.reference # cp -r ../doc/* $(PD_PATH)/doc/5.reference
install: #install-doc @test -d $(PD_PATH)/extra || mkdir -p $(PD_PATH)/extra install *.dll $(PD_PATH)/extra
Do I always need this cygwin1.dll to load such an external, and where should cygwin1.dll be ?
AFAIK, you will always need the cygwin.dll ..unless there is a compiler switch for cygwin. You might try compiling with mingw. I think you can also do this under the cygwin environment. Another option, if you like IDE's, is to tryout the DevC++ IDE. It used mingw gcc as the compiler.
If you get any of those up and running, I'd love to hear about it. It's been on my todo list for over a year.
best -august.
On Fri, Jun 18, 2004 at 07:07:41PM +0200, Georg Holzmann wrote:
Hallo!
I tried cygwin to compile an external by me on windows (I modified the
...
cygwin1.dll be ?
kk
ive not had any luck with cygwin either, apparently it is supposed to be able to build free-standing dll's that do not depend on cygwin, but it always screwed up on the linking phase because its way too easy for it to include something it shouldnt (for standalone operation to work..)...
the only thing cygwin dll provides is POSIX call emulation, but the vast majority of those calls exist in NT anyways under a different name. so you can usually fix them by doing things like #define usleep(m) Sleep(m/1000) etc. i'm not a C programmer but via mingw was fairly easily able to get working irssi, pd+Externals, jack, pdp + gridflow (SDL output..), etc...no harder than i remmeber Slackware being anyways...
as for your external, perhaps try http://whats-your.name/pd/extra/mingw_makefile changing the name of the c file to your own...
cr