Re: Multiple declaration problem

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

 



Thanks to all who replied.

I found a different solution, which is by declaring the variables static. Find attached solutions.

But still the C parser (or what is it?) did throw up an error with the
const variable, which C++ did not.

@Andre: Is there any I should not declare a variable in a header file if
I want that variable to be visible to many cpp files? I can avoid
writing many "extern" lines by using static.

Thanks again,

Shriramana.

Attachment: multiple-declaration-problem-solutions.tar.gz
Description: application/gzip


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux