My header file

header.h
#ifndef HEADER_TEST
#define HEADER_TEST
static test_variable;

#endif

now i am including this in two source files IN THE SAME PROJECT.
multiple definition error.
i have used static specifier in header file . please help me understand this.i think static makes internal linkage.
regards,
ravi

Post exact error message as well as your compiler.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.