![]() |
PCDVD數位科技討論區
(https://www.pcdvd.com.tw/index.php)
- 疑難雜症區
(https://www.pcdvd.com.tw/forumdisplay.php?f=34)
- - 有人用過Allegro Game Library嗎?
(https://www.pcdvd.com.tw/showthread.php?t=680687)
|
|---|
有人用過Allegro Game Library嗎?
經過一番混戰之後我終於找出安裝Allegro在Visual Studio 2005上的方法,但是卻發生一件很神奇的事情--我沒有辦法用其他不管是iostream、vector或著是 string之類的Library都沒辦法用!出現102個error C2143: syntax error : missing '{' before ':'之類的錯誤。請問有人知道問題是在哪嗎?會不會是我設定有錯誤?
代碼:
#include "allegro.h"
#include <vector>
using namespace std;
int main()
{
allegro_init();
allegro_message("Hello World!");
return 0;
}
END_OF_MAIN()
|
| 所有的時間均為GMT +8。 現在的時間是03:25 AM. |
vBulletin Version 3.0.1
powered_by_vbulletin 2025。