æ¬äººå¨DEV C +++ æµè¯è¿äºï¼ä¸è½è¿è¡ æ¥éå¦ä¸ï¼
好åæ¯ç¼ºå°åºæ件ï¼å¯è½å 为nge2æ¯å¨VCä¸ç¼è¯çï¼æ以ä¸è¡ï¼æä¸æç¨æºä»£ç éæ°ç¼è¯è¯è¯ç
PSï¼æ¬äººå¯è½æä½æ误ï¼æçDev c ç¯å¢é
ç½®æ¥éª¤ å¦ä¸ï¼
1.æå¼å·¥ç¨å±æ§å° nge2çincludeæ件ålibæ件å å
¥
2.å¨åæ°é项-è¿æ¥å¨ä¸å å
¥åº ./libnge2/lib/libnge2.a
main.o(.text+0x40):main.cpp: undefined reference to `BeginScene'
main.o(.text+0x78):main.cpp: undefined reference to `DrawLine'
main.o(.text+0x7d):main.cpp: undefined reference to `EndScene'
main.o(.text+0x92):main.cpp: undefined reference to `NGE_Init'
main.o(.text+0xae):main.cpp: undefined reference to `InitInput'
main.o(.text+0xbc):main.cpp: undefined reference to `ShowFps'
main.o(.text+0xc1):main.cpp: undefined reference to `InputProc'
main.o(.text+0xcd):main.cpp: undefined reference to `NGE_Quit'
D:/Program Files/DEV-CPP/Lib/libmingw32.a(main.o)(.text+0x106):main.c: undefined reference to `WinMain@16'
collect2: ld returned 1 exit status
make.exe: *** [å·¥ç¨1.exe] Error 1
æ§è¡ç»æ
温馨提示:答案为网友推荐,仅供参考