我找不到让Allegro5在Windows上使用FreeBasic的方法。
我下载并安装了FreeBASIC-1.05.0-win32.exe。
我下载了快板二元化-5.0.10-混合-4.7.0。
安装的fbc版本是独立的。我创建了“寓言”文件夹,并将这些库从“快板”发行版复制到了“寓言库”:
liballegro_5.0.10-md.a
liballegro_font-5.0.10-md.a
liballegro_ttf-5.0.10-md.a 我在示例/图形/快板中添加了快板发行版中必要的快板dlls:
allegro_font-5.0.10-md.dll
allegro_ttf-5.0.10-md.dll
allegro-5.0.10-md.dll我从命令行运行fbc,试图从示例/图形/寓言5编译hello.bas:
fbc -s gui -p allegrolibs examples/graphics/allegro5/hello.bas程序编译得很好。
然而,在运行时hello.exe向我展示了这个错误:
The program can't start because libgcc_s_dw2_1.dll is missing from your computer. 将libgcc_s_dw2_1.dll从FreeBASIC\bin\bin 32复制到hello.exe所在的文件夹,然后运行:
The program can't start because libstdc++-6.dll is missing from your computer. 从ming4.7.0二进制发行版中添加libstdc++-6.dll,然后运行:
The program can't start because libgcc_s_sjlj-1.dll is missing from your computer. 从ming4.7.0二进制发行版中添加libgcc_s_sjlj-1.dll,然后运行:
The program can't start because libwinpthread-1.dll is missing from your computer. 从ming4.7.0二进制发行版中添加libwinp线程-1.dll,然后运行:
The procedure entry point __gxx_personality_v0 could not be located
in the dynamic link library libstd++-6.dll.在这一点上我被困住了。我做错什么了?有人尝试过同样的方法并且能够解决这个问题,谁愿意帮助解决这个问题呢?
发布于 2016-11-08 11:15:09
allegro-5.0.10-mingw-4.7.0用于Windows的二进制文件是用mingw-4.7.0编译器编译的.
freeBASIC是用混合W64编译器编译的。但就动态链接而言,它们可以一起工作。Windows快板的二进制包-5.0.10-mingw-4.7.0除其他外包含两个文件:
allegro-5.0.10-monolith-mt.dll
liballegro-5.0.10-monolith-mt.a它们中的任何一个都可用于将Alle格罗5库链接到exe:
复制快板-5.0.10-monolith-mt.dll或快板-5.0.10-monolith-MT.A在寓言文件夹中。修改allegro.bi、allegro_font.bi、allegro_ttf.bi,将第35行替换为:
#inclib "allegro-5.0.10-monolith-mt" 从控制台运行:
fbc -s gui -p allegrolib examples/graphics/allegro5/hello.bas快板-5.0.10-monolith-mt.dll需要与hello.exe放在同一个文件夹中。
https://stackoverflow.com/questions/40347089
复制相似问题