当前位置: 动力学知识库 > 问答 > 编程问答 >

class - Defining classes using Allegro in XCODE

问题描述:

Hi I have managed to get Allegro working within XCODE 5.1.1. I am working through the tutorials and examples and have come across this error when defining the class:

Can anyone help? The writing is not purple as should be either, have I missed a vital include file or something?

网友答案:

Found the problem on a post here https://www.allegro.cc/forums/thread/613728 I needed to create the file as C++ and not C as I had done. This fixed it.

分享给朋友:
您可能感兴趣的文章:
随机阅读: