473,324 Members | 2,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

how to make gcc know #inlcude<framework/filename.h> ?

Hi,everyone

I'm using gcc to compile a program with a thirdpart framework.
but i find some precompile in *.h file of framework like this

#include <DKFramework/filename.h>

So, when i compile my program,gcc will return some error to tell that
cann't find
the path DKFramework.

then my question is how to let gcc know DKFramework equal to which dir,
how can
i do that, to make a makefile ?

Thanks

Best Regards!
Mopelee

Apr 5 '06 #1
7 1558

Mopelee wrote:
Hi,everyone

I'm using gcc to compile a program with a thirdpart framework.
but i find some precompile in *.h file of framework like this

#include <DKFramework/filename.h>

So, when i compile my program,gcc will return some error to tell that
cann't find
the path DKFramework.

then my question is how to let gcc know DKFramework equal to which dir,
how can
i do that, to make a makefile ?

Thanks

Best Regards!
Mopelee


I am not sure what exactly is your problem but it seems you have some
header files which are not in standard header directory and you are
including them in your program. If thats the case, then you could use
the -I option to specify the include files path.

Apr 5 '06 #2
thank you, Jaspreet.

I have used param -I of GCC to tell the *.h file of framework at eg.
gcc - I /home/root/framework. however this cann't solve the error.
because gcc don't know what means of #include <DKFramework/filename.h>
, it look DKFramework/filename.h as a file. i think perhaps i should
find a way to let gcc know #include <DKFramework/??> means the file
should be find at /home/root/framework.

Apr 5 '06 #3

Mopelee wrote:
thank you, Jaspreet.

I have used param -I of GCC to tell the *.h file of framework at eg.
gcc - I /home/root/framework. however this cann't solve the error.
because gcc don't know what means of #include <DKFramework/filename.h>
, it look DKFramework/filename.h as a file. i think perhaps i should
find a way to let gcc know #include <DKFramework/??> means the file
should be find at /home/root/framework.


Try #include "DKFramework/filename.h"

Apr 5 '06 #4
Because of the #include <DKFramework/??> is in thirdpart *.h file. and
i should to modify it. So, i must got some way to let gcc know the
means of <DKFramework/ .

Apr 5 '06 #5
I think it just like linux kernel code, some of linux kernel code have
#inlcude <kernel/??>
and when compile, gcc can know what means of "kernel/"

Apr 5 '06 #6
thx, i have find a way to resolve the problem but i think there must be
some better way!!

Apr 5 '06 #7

Mopelee wrote:
thx, i have find a way to resolve the problem but i think there must be
some better way!!


So, how did you solve the problem ??

Apr 5 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Nachi | last post by:
I am getting 2 resultsets depending on conditon, In the second conditon i am getting the above error could anyone help me.......... CREATE proc sp_count_AllNewsPapers @CustomerId int as...
11
by: Scott Brady Drummonds | last post by:
Hi, everyone, I've checked a couple of on-line resources and am unable to determine how reinterpret_cast<> is different from static_cast<>. They both seem to perform a compile-time casting of...
2
by: Bill Roper | last post by:
Did you know that the #include directive when using angle brackets works substantially differently in VC7 than it did in VC6? It used to be that the reference for the additional include...
4
by: matty.hall | last post by:
I have two classes: a base class (BaseClass) and a class deriving from it (DerivedClass). I have a List<DerivedClass> that for various reasons needs to be of that type, and not a List<BaseClass>....
3
by: | last post by:
I have been researching articles on google on how to create a simple RSS feed that sucks <title><blurb><link><date> out of a sql server 2000 database via an aspx page. I know it has to be pushed...
1
by: mike | last post by:
I've got some code like this: gametype_id = Request.Form("gametype_id") response.write "<br>gametype_id from form>" & gametype_id & "<" response.write "<br>gametype_id from database>" &...
4
by: Anastasios Hatzis | last post by:
I'm looking for a pattern where different client implementations can use the same commands of some fictive tool ("foo") by accessing some kind of API. Actually I have the need for such pattern for...
2
by: -Karl | last post by:
Couls someone please advise me on this error. What I am trying to do is be able to convert an XML document into arrays. I read that the subs & functions have to be in <scripttags. Thanks! ...
1
by: yawnmoth | last post by:
http://www.frostjedi.com/terra/scripts/demo/download2.php Whenever I get that page, I get the following error: --------------------- Internet Explorer cannot download download2.php from...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.