Hi,

I'm testing the samples/program_guide/*. The hello (inboard) and
hello_outboard
module did work fine. But when I try to compile hello_loadable, I got
the following
error message:

> make hello_loadable
/usr/local/dx/bin/mdf2c -m hello_loadable.mdf > userhello_load.c
gcc -I/usr/local/dx/include -g -O2 -I/usr/X11R6/include -D_GNU_SOURCE -c
hello.c
gcc -I/usr/local/dx/include -g -O2 -I/usr/X11R6/include -D_GNU_SOURCE -c
userhello_load.c
gcc -I/usr/local/dx/include userhello_load.o hello.o -o hello_loadable
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function
`_start':
/usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18):
undefined reference to `main'
userhello_load.o: In function `DXEntry':
/home/kccheng/projs/samples/math/dx/c/extend/module/tmp/userhello_load.c:20:
undefined reference to `DXAddModule'
hello.o: In function `m_Hello':
/home/kccheng/projs/samples/math/dx/c/extend/module/tmp/hello.c:15:
undefined reference to `DXNewString'
/home/kccheng/projs/samples/math/dx/c/extend/module/tmp/hello.c:11:
undefined reference to `DXExtractString'
collect2: ld returned 1 exit status
make: *** [hello_loadable] Error 1


I also try to link library "-lDX" or "-lDXlite" ... neither of them work.
What's wrong here ?

Thanks


Kuang-Chun Cheng
[EMAIL PROTECTED]

Reply via email to