Top "Extern" questions

extern is an access-specifier in C and C++ which defines a global variable that is visible to all object modules.

Redefinition; different basic types (typedef struct)

I'm having a bit of trouble trying to get structs to work properly when they are defined in different files. …

c struct typedef extern
Okay to declare static global variable in .h file?

static keyword keeps the scope of a global variable limited to that translation unit. If I use static int x …

c++ c static global extern
Is extern "C" only required on the function declaration?

I wrote a C++ function that I need to call from a C program. To make it callable from C, …

c++ c extern extern-c
undefined reference when using extern

I have the following setup (hopefully this is not too bare an example): A.h typedef std::map<unsigned …

c++ extern undefined-reference
C: What is the use of 'extern' in header files?

Pardon me if this sounds a question that has been asked many times but I assure you this is a …

c extern
Objective C - How to use extern variables?

I am trying to use extern variables. It complains that because of using numberWithInt I am not passing a contants …

objective-c global-variables extern
extern on a static function in C++

I don't know why this is driving me nuts but it is. I have a function defined and forward declared …

c++ function extern
Javascript and WebGL, external scripts

Just curious; How do I place my webgl shaders, in an external file? Currently I'm having; <script id="shader-fs" …

javascript external extern webgl opengl-es-2.0
3 questions about extern used in an Objective-C project

When I use the word extern before a method or variable declaration, am I making it global and therefore readable/…

objective-c c extern globals
Compiling program containing extern "C"

I'm trying to use a makefile to compile a program someone else has written, using cygwin. I get a lot …

c++ c header-files extern