Hi all, This question is about module programming. When I try to compile even a simple file, gcc throws an error. And it looks like whenever I use DX function, it cannot find the reference of that function.
The following is the error message from compilation. gcc -I./ -I/usr/local/dx/include -I/root/prog/myincl -I/opt/fftw-2.1.3/include -L/usr/local/dx/lib_linux -L/root/prog/mylib -L/opt/fftw-2.1.3/lib hello.c -o hello /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' /tmp/cccKOS68.o: In function `m_Hello': /tmp/cccKOS68.o(.text+0x32): undefined reference to `DXExtractString' /tmp/cccKOS68.o(.text+0x5d): undefined reference to `DXNewString' collect2: ld returned 1 exit status Can you tell me why I am getting this error? I have libDX.a and libDXlite.a file in proper library path. Thank you in advance, Juw Won
