Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DyFxvt

Pages: [1]
1
Audio / Re: The program crashes when I use "sf::Music"
« on: October 15, 2020, 01:01:05 pm »
I haven't tried all of the example programs, but yes, I did get the same error for the ones I tried.
I checked the build info on the gcc compiler, and it says I have 32bit, and I'm definitely sure I have 32bit SFML... Should I try re-installing them anyways?

Edit: I tried both Code::Blocks 32bit and 64bit, it still doesn't work...

2
Audio / The program crashes when I use "sf::Music"
« on: October 15, 2020, 01:20:20 am »
When I use sf:Music my program crashes and a popup says "The application was unable to start correctly (0xc000007b). Click OK to close the application.". I looked it up for a few hours and saw it was because I didn't have a file called "libsndfile-1.dll". However I never got that file. When I try to re-install SFML I never get the file.
I install SFML by compiling with CMake.
What do I do?

3
32bit. I believe that's what I meant when I said I tried GCC 7.3.0 MinGW (DW2) 32bit and GCC 5.1.0 TDM (SJLJ) 32bit.

4
When I got this error message I believe I was using Code::Blocks 32bit with GCC 7.3.0 MinGW (DW2) 32bit.
I also got the same exact build log messages when I used GCC 5.1.0 TDM (SJLJ) 32bit.
Weird how this could have happened; or is there something else that's completely going over my head?

5
General / Code::Blocks cannot find sfml-graphics-d, sfml-audio-d, etc.
« on: August 15, 2020, 04:41:53 pm »
You've probably heard this one a million times, but in the IDE I'm using (Code::Blocks), it cannot find
the files I'm trying to link, like sfml-graphics-d, sfml-audio-d, etc.

I followed a tutorial, but when it didn't work I tried compiling the source like the video said,
but of course with my luck CMake couldn't find the files I was trying to use and gave an error.
(It's always the compilers that get me, I'm surprised I was even able to build a Hello World program :( )

I have tried this with both the "GCC 5.1.0 TDM (SJLJ)" and "GCC 7.3.0 MinGW (DW2)" versions,
and tried the ladder with both the 64 and 32bit versions of Code::Blocks.

The build log confuses me even more...
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\_Libraries\SFML-2.5.1\lib/libsfml-graphics-d.a when searching for -lsfml-graphics-d
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\_Libraries\SFML-2.5.1\lib\libsfml-graphics-d.a when searching for -lsfml-graphics-d
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: skipping incompatible C:\Program Files (x86)\CodeBlocks\MinGW\_Libraries\SFML-2.5.1\lib/libsfml-graphics-d.a when searching for -lsfml-graphics-d
C:/Program Files (x86)/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsfml-graphics-d
(I get these same 4 lines for the rest of the things I tried to link)

I have double, tripple, quadruple checked to make sure I got the linker settings right.
I also tried to set my project's build target to "release", but I get the same errors (minus the "-d" at the end of the file names)

Pages: [1]