XXX.h
static void functionA();
XXX.cpp
static void functionA()
{
// do something
}
We have to remove the key word static from XXX.cpp, or the compiler will regard they are two different functions.
Further more, if you call the functionA(), you may also got the message, error LNK2019: unresolved external symbol
沒有留言:
張貼留言