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

M

Mopelee

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
 
J

Jaspreet

Mopelee said:
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.
 
M

Mopelee

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.
 
J

Jaspreet

Mopelee said:
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"
 
M

Mopelee

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/ .
 
M

Mopelee

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/"
 
M

Mopelee

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top