[oracle@localhost proc]$ make -f /home/oracle/816/precomp/demo/proc/demo_proc.mk OBJS=sample1.o EXE=sample1 build
cc -o sample1 sample1.o -L/home/oracle/816/lib/ -lclntsh `cat /home/oracle/816/lib/sysliblist` -ldl -lm
sample1.o: In function `main':
sample1.o(.text+0x67b): the `gets' function is dangerous and should not be used.
/usr/i386-glibc-2.1-linux/i386-glibc21-linux/bin/ld: warning: libwtc8.so, needed by /home/oracle/816/lib//libclntsh.so, not found (try using -rpath or -rpath-link)
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtcstu'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtclkm'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtcsrin'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtcMerr'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtcsrin0'
/home/oracle/816/lib//libclntsh.so: undefined reference to `wtcLerr'
collect2: ld returned 1 exit status
make: *** [build] Error 1
라고 에러가 발생하면..
김명화님께서
라이브러리 PATH를 /etc/ld.so.conf에도 넣어주세요.
ldconfig 명령하시고, 그래야, 링크가 됩니다.
라이브러리 링크가 안되서 나는 에러입니다.
라고 올려주신게 있네요..
다른 님들..좀더 쉽게 찾으시라구.. 제가 여기다 함 더 올림다..
^^
|