我开始学习allegro5库,当我制作该文件时,执行失败并退出代码4,有人可以帮助我解决问题吗?我搜索了互联网,但一无所获, 我在配备Mac OS Catalina的MacBook Pro上使用Clion 该文件是allegro Wiki中的一个简单示例:
Crashed Thread: 4
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [14017]
Application Specific Information:
-[NSOpenGLContext update] must be called from the main thread if the context has a view.
Thread 4 Crashed:
0 com.apple.AppKit 0x00007fff2971f360 -[NSOpenGLContext update] + 520
1 liballegro.5.2.dylib 0x000000010df81943 create_display_win + 1079
2 liballegro.5.2.dylib 0x000000010df463d4 al_create_display + 40
3 Gioco 0x000000010df24e89 _al_mangled_main + 105 (main.cpp:13)
4 liballegro.5.2.dylib 0x000000010df83d47 call_user_main + 23
5 liballegro.5.2.dylib 0x000000010df83d30 +[AllegroAppDelegate app_main:] + 9
6 com.apple.Foundation 0x00007fff2e848788 __NSThread__start__ + 1064
7 libsystem_pthread.dylib 0x00007fff63a0de65 _pthread_start + 148
8 libsystem_pthread.dylib 0x00007fff63a0983b thread_start + 15
这是崩溃的报告:
resources