æ¹æ³1ï¼
è¦å
·ælibæ件å.hæ件
1.å å
¥è¯å¥ #pragma comment(lib, 'C:\\test\\Debug\\test.lib'
2.项ç®å³é®-ãå±æ§-ãc++ -ã常è§-ãéå å
å«ç®å½-ãå¡«å
¥test.hæ件çæ件夹 ../../include
æ¹æ³2ï¼
è¿ç§æ¹æ³å¯è½ç§»æ¤çæ¶åæ´æ¹ä¾¿ä¸äº
1.项ç®å³é®-ãå±æ§-ãé¾æ¥å¨ ->å¸¸è§ ->éå åºç®å½å¡«å
¥libæå¨çæ件夹./lib/debug
项ç®å³é®-ãå±æ§-ãé¾æ¥å¨ ->è¾å
¥ ->éå ä¾èµé¡¹å¡«å
¥libæ件çå称.
2.项ç®å³é®-ãå±æ§-ãc++ -ã常è§-ãéå å
å«ç®å½-ãå¡«å
¥test.hæ件çæ件夹 ../../include
NOTE:
注æå¦æ.hæ件å¨includeçæ个æ件夹ä¸,使ç¨æ¶ä¸å®è¦å¨#include çæ¶åå¼å
¥è·¯å¾,å¦#include 'Utility\Process.h'
å¦æå¼å
¥ååºç°LNK 2005é误,éè¦å¨è¿æ¥å¨å½ä»¤è¡å å
¥/force
温馨提示:内容为网友见解,仅供参考