In my main function I have a const integer declared as a global variable. When I try to use extern const int <name> in another module, the linker tells me that it is an undefined reference. It will work if I pull out the const from the declarator and the module. Is there a way to share const data in the global namespace? I know it's a bad idea to use globals, but that's not the question.