小编arc*_*ian的帖子

C++(看似)随机编译器错误

感谢我在乐施会书店找到的一本小书和一本更大的书,我一直在玩C,C++和Allegro.我现在理解得很好,但我已经碰壁了...每当我编译时,我都会遇到这些错误:

archiboldian@archiboldian:~/Documents/C++ Projects/particles$ g++ particles.c -lalleg -lnoise -o particles
particles.c:19: error: array bound is not an integer constant before ‘]’ token
particles.c:20: error: ‘Vector2D’ does not name a type
particles.c:21: error: ‘Vector2D’ does not name a type
particles.c: In function ‘int main()’:
particles.c:26: error: ‘nPos’ was not declared in this scope
particles.c:28: error: ‘nVel’ was not declared in this scope
particles.c:29: error: ‘nvel’ was not declared in this scope
particles.c:31: error: ‘addParticle’ was not declared in this scope
particles.c: At …
Run Code Online (Sandbox Code Playgroud)

c c++ compiler-construction compiler-errors allegro

0
推荐指数
1
解决办法
1075
查看次数

标签 统计

allegro ×1

c ×1

c++ ×1

compiler-construction ×1

compiler-errors ×1