put automatic suffix on symbol of variables of module c
Ian Lance Taylor
iant@google.com
Tue Sep 8 23:52:00 GMT 2009
david bonnin <davidbonnin@free.fr> writes:
> i have a closed software that convert .jpg in .c file.
> This .c file, it allways the same variables at eatch generated time.
>
> The probleme is that i have 10 files in this type.(so_mylogo.c,
> so_mylogo_hd.c).
> But, i can't compile in same project because same symbol in multipe
> files.......(and not like char my_var_so_mylogo[JPG_LENGTH] char
> my_var_so_mylogo_hd[JPG_LENGTH])
>
> What can i do?
>
> Is it possible when i compile so_mylogo.c , gcc put an automatic
> suffix "so_mylogo" at eatch symbol/variable?
No, gcc does not have such a feature.
You will have to modify your program into correct C code.
Ian
More information about the Gcc-help
mailing list