Hi David Thompson, Following, there is the makefile that we are using. The module style is INBOARD.
Thanks for any help ! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>MAKEFILE<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< HELLO = userhello.c hello.c BASE = /usr/local/dx include $(BASE)/lib_$(ARCH)/arch.mak INCLUDES = -I$(BASE)/include DXLIB = -L$(BASE)/lib_$(ARCH) -lDX DXLIBLITE = -L$(BASE)/lib_$(ARCH) -lDXlite hello: $(HELLO) $(DXCC) $(INCLUDES) $(DXCFLAGS) $(HELLO) $(DXLIB) $(DXEXECLINKLIBS) -Wl,-export-dynamic -o dxexec >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>ARCH.MAK>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> DXCC = gcc DXCFLAGS = -g -O2 -Wall -g -O2 -I/usr/X11R6/include -D_GNU_SOURCE DXEXECLINKLIBS = -lnsl -lXpm -ldl -lXm -lXp -lGLU -lGL -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib -ltiff -lfreetype -ljpeg -lpng -ldpstk -ldps -lXt -lXext -lSM -lICE -lX11 -lxml2 -lz -lpthread -lm DXEXECLINKFLAGS = DXRUNTIMELOADFLAGS = DXFMTLIBS = libtiff.a libdf.a libcdf.a libnetcdf.a libMagick.a DXLDFLAGS = -L/usr/local/lib OBJEXT = o EXEEXT = DXABI = DX_X_LINK_LIBS = -lXm -lXp -lGLU -lGL -lm -lXext -lXt -lX11 -lSM -lICE -L/usr/X11R6/lib -lpthread DX_GL_LINK_LIBS = -lGL DOT_EXE_EXT = # the var ARCH may change to DXARCH due to namespace ARCH = linux JINC = -I/usr/java/j2sdk1.4.1_03/include -I/usr/java/j2sdk1.4.1_03/include/linux DX_JAVA_CLASSPATH = /usr/java/j2sdk1.4.1_03/jre/lib/rt.jar:/home/dthompsn/dx/java40.jar:/home/dthompsn/dx/npcosmop211.jar:./ DX_RTL_CFLAGS = -D_GNU_SOURCE -Dlinux DX_RTL_LDFLAGS = --shared DX_RTL_SYSLIBS = SHARED_LINK = $(CC) DX_OUTBOARD_LIBS = >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > Which Makefile are you trying to use? There isn't one specifically > written for linux--so any one that you use, you are going to have to > modify to add gcc specific flags. > > Which style of module are you trying to write (loadable/inboard/outboard)? > > David > > >I have installed opendx 4.3.2 in a PC running Fedora core 1. > >When I try to add the "Hello Module" I get the following > >error message during the compilation: > > > >make hello > >/usr/bin/gcc -I/usr/local/dx/include/ -Wall -I/usr/X11R6/include - > >D_GNU_SOURCE userhello.c hello.c -L/usr/local/dx/lib_linux -lDX -lnsl -lXpm > - > >ldl > >-lXm -lXp -lGLU -lGL -L/usr/local/lib -L/usr/X11R6/lib -L/usr/lib -lMagick > - > >ltiff -lfreetype -ljpeg -lpng -ldpstk -ldps -lXt -lXext -lSM -lICE -lX11 > >-lbz2 -lxml2 -lz -lpthread -lm -L/usr/local/dx/lib_linux -lDXlite -o > dxexec > >/usr/local/dx/lib_linux/libDXlite.a(lbmessage.o)(.text+0x599): In function > >`DXPrintError': > >/home/dthompsn/dx/dx-4.3.2/src/exec/libdx/lbmessage.c:322: warning: > >`sys_errlist' is deprecated; use `strerror' or `strerror_r' instead > >/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x18): In > >function `_start': > >: undefined reference to `main' > >/tmp/cc38by4v.o(.text+0x1a): In function `_dxf_user_modules': > >: undefined reference to `m_AmbientLight' > >/tmp/cc38by4v.o(.text+0x24): In function `_dxf_user_modules': > >... > >etc > > > >I get the same error on the Linux Red Hat 9.0 > > > >Thanks for your attention ! > > > > -- > ............................................................................. > David L. Thompson Visualization and Imagery Solutions, > Inc. > mailto:[EMAIL PROTECTED] 5515 Skyway Drive, Missoula, MT 59804 > Phone : (406)756-7472 > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/