Hi, I am trying to compile and use outboard modules on Intel with Win2k
using both
the 4.0.9 cygwin release and the 4.1.1 Microsoft Visual C++ version posted
recently.
I can compile a module (well it doesn't complain) using cygwin 1.1.1
and the Makefile below. However when I go to run a net which uses the
module I get a "failed to send data to module"
message from both distributions. Snippet from mdf file I load up is also
below.
Any pointers would be appreciated (ok what I really want is a well
documented example ;-),
Simon.
MODULE ScreenObject
CATEGORY U of M
DESCRIPTION Turn an Object into a Screen Object
OUTBOARD /usr/local/share/dx/modules/screen-cygwin.exe;
INPUT Object; field or group or object; (none); Object to be made into
a Screen Object
INPUT Position; integer; 1; Final Screen Position
INPUT Display; integer; 1; {-1, 0, 1} : Behind, Equal, In Front
OUTPUT SObject; group; SOject
FILES_ScreenObject = userScreenObject.o ScreenObject.o
BASE = /usr/local/dx
BIN = $(BASE)/bin
CFLAGS = -O -Dcygwin -I$(BASE)/include
LDFLAGS=-L$(BASE)/lib_cygwin
OLIBS = -lDXlite -lm
# create the necessary executable
screen: $(FILES_ScreenObject) outboard.o
$(CC) $(LDFLAGS) $(FILES_ScreenObject) outboard.o $(OLIBS) -o screen.exe
# how to make the outboard main routine
outboard.o: $(BASE)/lib/outboard.c
$(CC) $(CFLAGS) -DUSERMODULE=m_ScreenObject -c $(BASE)/lib/outboard.c
# make the user files
userScreenObject.c: ScreenObject.mdf
$(BIN)/mdf2c -m ScreenObject.mdf > userScreenObject.c