This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DBlibrary problem


At 10.52 03/12/01 (GMT +0000), kabir.patel@uk.andersen.com wrote:

>I tried what you suggested but it still doesn't work.....
>The structure of my directory is as follows:
>
>Location of "gcc" : /var/gnuc/usr/local/bin
>Location of C code: /d5/ctest/nwe/pv5/syb2pv.c
>Location of header file: /d5/ctest/include/syb2pv.h
>Location of DBLIBRARY: /d5/OCS-12_5/include/
>
>So I run: > gcc /d5/ctest/nwe/pv5/syb2pv.c -o /d5/ctest/nwe/pv5/syb2pv.out
>-I/d5/OCS-12_5/include/
>
>Is this right?
>
>Thanks
>Kabir

If you are including syb2pv.h with

#include "../../include/syb2pv.h"

that should be OK.
But if you just

#include "syb2pv.h"

you need to add "-I/d5/ctest/include" to the command line.
That is, type:
 > gcc /d5/ctest/nwe/pv5/syb2pv.c -o /d5/ctest/nwe/pv5/syb2pv.out 
-I/d5/ctest/include/ -I/d5/OCS-12_5/include/

If still this doesn't work - what are the errors you get from this ?
Note - the above line will make an executable from "syb2pv.c" file only. I 
assume this is what you want to do.

HTH
fwyzard



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]