Re: How to add new library into GCC source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le Ton Chanh <letonchanh@xxxxxxxxx> writes:

> Thanks for your help and I'm sorry because of providing less
> information for you. I have only one *.h file; in this file I define
> a struct A and a variable which has A type. I use this variable in
> many other files. I see this variable is like as the targetm
> variable. How do I do to make GCC understand this declaration.

If I understand correctly, this is a basic C language question.  In C,
it is not sufficient to merely declare a variable.  You must also
define the variable in some source file.  E.g., targetm is defined in
the config/CPU/CPU.c file.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux