English 中文(简体)
我怎么能够把这一错误固定在没有装满的文号上?
原标题:How can I fix this error regarding no symbol file loaded?
  • 时间:2024-02-09 13:54:17
  •  标签:
  • c++
  • sdl

当我试图在音频组合中装上音响时,我总是把这一ir错误pop。 I m对SDL来说仍然非常新,我曾尝试过大量清醒战略,但在此,这部守则和错误最终将:

#include <SDL.h>
#include <SDL_image.h>
#include <SDL_mixer.h>
#include <stdio.h>
#include <string>

const int SCREEN_WIDTH = 1500;
const int SCREEN_HEIGHT = 1000;

Mix_Chunk* goku = NULL;

int SDL_main(int argc, char* argv[]) {
    if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0)
    {
        printf("SDL could not initialize! SDL Error: %s
", SDL_GetError());
    }
    if (Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 2048) < 0)
    {
        printf("SDL_mixer could not initialize! SDL_mixer Error: %s
", Mix_GetError());
    }
    goku = Mix_LoadWAV("goku.wav");
    Mix_PlayChannel(-1, goku, 0);
    SDL_Delay(5000);
    Mix_FreeChunk(goku);
    goku = NULL;
   
    SDL_DestroyWindow(gWindow);
    gWindow = NULL;
    Mix_Quit();
    IMG_Quit();
    SDL_Quit();
    return 0;
}

The Error:

SDL2.dll无文号

Unhandled exception at 0x7B58290E (SDL2.dll) in TheScorchGame.exe: 0xC0000005: 出入现场0xBE800008。

我试图重载装货单的符号,因为没有发现文号。 现在,我两次把SDL重新talled为一线,并尽一切力量努力使其发挥作用,似乎像Mem_OpenAudio一样是问题。 然而,我看不出有什么错误。

问题回答

目前,Im正出现非常类似的错误。 例外情况发生在我打电话SDL_CreateWindow()时,但只是在我打电话<代码>Mix_OpenAudio(之后。 不幸的是,我找到的唯一办法是将SDL降级为旧版本。





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签