Those two modules are in libDXcallm.a include it in your link line as well. By the way, linking order can make a difference. You should probably use the order something along the lines of: -lDXcallm -lDX -lMagick -ltiff -ldf -lcdf -lnetcdf -lGL -lglx -lXm -lXt -lXp -lX11 -lm

David

Thanks David.
after including the other libraries (cdf, netcdf ...) in my link line I only get
two undefined references. Here is the make output:

make Simple
gcc Simple.o -L/usr/local/dx/lib_linux -L/usr/lib -L/usr/X11R6/lib -L/usr/X11R6/lib/modules/extensions -L/usr/X11/lib -L/usr/X11R6/LessTif/Motif1.2/lib -lm -lMagick -ltiff -lGL -lglx -lX11 -lXm -lXt -lXp -lDX -ldf -lcdf -lnetcdf -o Simple
Simple.o: In function `main':
Simple.o(.text+0x32): undefined reference to `DXInitModules'
Simple.o(.text+0x1ae): undefined reference to `DXCheckRIH'
collect2: ld returned 1 exit status
make: *** [Simple] Error 1

Do I need to include another library or  should I do something else?
Thanks again for your help.

Mahmud

--
.............................................................................
David L. Thompson                          The University of Montana
mailto:[EMAIL PROTECTED]                 Computer Science Department
http://www.cs.umt.edu/u/dthompsn           Missoula, MT  59812
                                           Work Phone : (406)257-8530

Reply via email to