How to add new library into GCC source
Ian Lance Taylor
iant@google.com
Wed Dec 3 07:01:00 GMT 2008
Le Ton Chanh <letonchanh@yahoo.com> 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
More information about the Gcc-help
mailing list