***菜鸟求助,函数内的函数???
===== c1.cpp =====
#include "c1.h"
namespace testDLL
{
void testFunc1()
{
......
}
}
===== c2.cpp =====
#include "c2.h"
namespace testDLL
{
void testFunc2()
{
void testFunc1(); // ???? error LNK2019: 无法解析的外部符号 "void __cdecl testFunc1(void)" ....
testFunc1(); // ????
}
}
=============================编译时不通过==========================
XXX.obj : error LNK2019: 无法解析的外部符号 "void __cdecl testFunc1(void)" (?testFunc1@@YAXXZ),
该符号在函数 "public: void __thiscall testDLL::Class2::DestructInterfaces(void)" (?DestructInterfaces@Class2@testDLL@@QAEXXZ) 中被引用