使用netbeans设置sfml

问题描述 投票:-1回答:1

[嗨,我在尝试使sfml与netbeans一起使用时遇到问题。这是我所做的简短视频。 video

听完HEKTO之后,我现在下载了MSYS。我删除了静态库并立即收到此错误:

    The application failed with exit code -1073741515 (0xc0000135). 
This could indicate that no required .dll was found in the PATH. 
Please try to start the following command from the command shell (cmd.exe). 
This may give some additional information. 

C:\Users\david\Documents\NetBeansProjects\tester\dist\Debug\MinGW_1-Windows\tester.exe 

RUN FAILED (exit value -1,073,741,515, total time: 58ms)
c++ netbeans sfml
1个回答
0
投票

SFML开发人员建议您的MinGW版本与SFML版本完全匹配-请参见this页面,尤其是以下三行:

The compiler versions have to match 100%!
Here are links to the specific MinGW compiler versions used to build the provided packages:
TDM 5.1.0 (32-bit), MinGW Builds 7.3.0 (32-bit), MinGW Builds 7.3.0 (64-bit) 

您的MinGW编译器为8.2.0-不匹配。因此,您需要使用此页面上的链接下载MinGW并手动安装。

[您也尝试链接静态库(后缀_s)。在这种情况下,您必须将其他库添加到链接器设置中-请参见here。如果要使用动态库,则不需要任何其他库,但是需要将带有DLL的SFML目录添加到系统路径中。

© www.soinside.com 2019 - 2024. All rights reserved.