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






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




To:   Kabir Patel, me@rupey.net
cc:   gcc-help@gcc.gnu.org
Date: 01/12/2001 01:15
From: fwyzard@inwind.it
Subject:  Re: DBlibrary problem




At 17.18 30/11/01 (GMT +0000), kabir.patel@uk.andersen.com wrote:

>I have (somehow) successfully installed gcc, and it works!!
>
>I have also installed SYBASE Open Client 12.5.
>
>Whenever, I try running gcc test.c -o test.out, where test makes use of the
>dblibrary,
>I get errors like "cannot find sybfront.h", even though sybfront.h exists
>in the
>include folder
>that it should exist in.
>
>Any ideas why?

Maybe that dir is not in the include searc path.
You can add it calling gcc like

gcc test.c -o test.o -I"directory where the .h file is"

If the header file is #included with something like
#include "subdir/sybfront.h"
you should use
gcc test.c -o test.o -I"directory where subdir is"

HTH
fwyzard









*******************Internet Email Confidentiality Footer*******************


Privileged/Confidential Information may be contained in this message.  If you
are not the addressee indicated in this message (or responsible for delivery of
the message to such person), you may not copy or deliver this message to anyone.
In such case, you should destroy this message and kindly notify the sender by
reply email. Please advise immediately if you or your employer does not consent
to Internet email for messages of this kind.  Opinions, conclusions and other
information in this message that do not relate to the official business of my
firm shall be understood as neither given nor endorsed by it.



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