菜鸟问题:全局变量的数组变量和单个变量有什么不同的定义要求?
我定义了全局变量info,编译、连接成功,可是当我定义成info[20]时,却产生了如下的错误,其他方面没有任何错误,错误如下:
------------------------------------------------------------------------
Linking...
AddPro.obj : error LNK2005: "class Process info" (?info@@3VProcess@@A) already defined in 22Dlg.obj
AddPro.obj : error LNK2005: "class Process info" (?info@@3VProcess@@A) already defined in 22Dlg.obj
Process.obj : error LNK2005: "class Process info" (?info@@3VProcess@@A) already defined in 22Dlg.obj
Debug/22.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
-----------------------------------------------------------------------
以上为定义info[20]时出现的错误,而在此之前,定义info却编译、连接成功,我不知道怎么回事,高手赐教。