Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Compiling an OTL file
In article <3BFF123C.FC28B8BC_at_indra.com>, Ron Reidy wrote:
> "Alfredo C." wrote:
> You don't have the correct .h files included in your file samplOtl.pc. > -- > Ron Reidy > Oracle DBA > Reidy Consulting, L.L.C.
I think he has problems with librarys not header files, in the case posted. All header file issues will show up befor ld is called. ld is telling you here "I can not find this symbol in any library I can find to link against". You can use commands like 'nm' to dump the symbols in the library files you are not using, in the oracle dir's to find out which ones you need to add. Aslo remember that you need to add the libraries that you need to link in with the -l flag, my C is a pretty rusty but here is a striped down version, iff I remember correctly:
gcc -o fred fred.c -lm
notice how the -l is the last thing on the line, the -lm means link in libm.a to this application. All libraries are prefixed with lib so do not forget to only add from char 4 to the dot on the command line and ld will take care of the rest.
good luck
marc Received on Sat Nov 24 2001 - 03:52:59 CST
![]() |
![]() |