“struct _tg_Edge * g_Edge” (?g_Edge@@3PAU_tg_Edge@@A) 已經在 GUIContainer.lib(gui16.obj) 中定義
且爲之奈何?
簡單!在Linker選項中選擇命令行頁面,加上一個選項:
/FORCE:MULTIPLE
FORCE:MULTIPLE 這個選項告訴鏈接器去創建一個有效的exe文件或dll文件,即使一個函數或變量被引用,但多處定義。
這樣生成的文件可能不會按照我們想象的那樣執行。
1)/FORCE:MULTIPLE:to create an output file whether or not LINK finds more than one definition for a symbol.
2)A file created with this option may not run as expected.