Panel użytkownika
Nazwa użytkownika:
Hasło:
Nie masz jeszcze konta?

Brak libgcc_s_dw2-1.dll, oraz brak działania pobranego DLL'a. (Allegro 5)

Ostatnio zmodyfikowano 2014-03-24 21:02
Autor Wiadomość
kolor200
Temat założony przez niniejszego użytkownika
Brak libgcc_s_dw2-1.dll, oraz brak działania pobranego DLL'a. (Allegro 5)
» 2014-03-20 12:10:35
Od tygodnia próbuję zainstalować w Visual Studio 2013, Alegro 5. Zainstalowałem, je (tzn. przekopiowałem lib itd.)
Dodałem do zależności kompilatora: liballegro-5.0.10-monolith-md-debug.lib;%(AdditionalDependencies).
Napisałem prosty program:
C/C++
#include <stdio.h>
#include <allegro5/allegro.h>
#include <allegro5/allegro_native_dialog.h>
int main()
{
    ALLEGRO_DISPLAY * display;
    display = al_create_display( 800, 600 );
   
    return 0;
}
Taki program, bez błędów się komplikuje I co ciekawe da się go włączyć, ale sam już nie działa, po prostu się zacina, i trzeba go zamknąć(nic nie wyświetla).

A podczas Debugowania wyświetla mi się coś takiego:
Unhandled exception at 0x6B807277 (allegro-5.0.10-monolith-mt-debug.dll) in jakies tam.exe: 0xC0000005: Access violation reading location 0x00000000

Próbowałem też z -static, ale nic to nie dawało.
Macie na to jakąś rade?
P-106832
maly
» 2014-03-20 12:31:43
libgcc_s_dw2-1.dll jest od MinGW czyli masz złą wersję.

Przed utworzeniem "dispaly" musisz całe allegro zainicjować.
C/C++
al_init()
al_install_keyboard()
al_install_mouse()
al_install_joystick()
al_init_ ***()
P-106833
kolor200
Temat założony przez niniejszego użytkownika
» 2014-03-20 15:49:57
@Mały, dzięki bardzo, teraz przynajmniej program się uruchamia ;D., "al_init_***();" jest wyświetlane, jako nie zdefiniowane, tylko.
Teraz może się wyda że się nie znam, ale MinGW, nic mi nie mówi?
I jeszcze jedno pytanie, czy można po prostu " al_init() al_install_keyboard() al_install_mouse() al_install_joystick() al_init_***() " napisać w nagłówku, i dodać do programu dyrektywą #include?
Dobra jednak program nie działa, po prostu się zacina...
Jest na to jakieś rozwiązanie?

A przy uruchomieniu Debugera, jest nadal magia:
jakies tam.exe' (Win32): Loaded 'C:\Users\Jan\Documents\Visual Studio 2013\Projects\jakies tam\Debug\jakies tam.exe'. Symbols loaded.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Users\Jan\Documents\Visual Studio 2013\Projects\jakies tam\Debug\allegro-5.0.10-monolith-mt-debug.dll'. Module was built without symbols.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.18120_none_72d2e82386681b36\GdiPlus.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\lpk.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\usp10.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\comdlg32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shlwapi.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5\comctl32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\shell32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\opengl32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\glu32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ddraw.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dciman32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\setupapi.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\oleaut32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\devobj.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dwmapi.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\psapi.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winmm.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcp120d.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcr120d.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msctf.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d9.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\version.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\d3d8thk.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nvd3dum.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dinput8.dll'. Cannot find or open the PDB file.
The thread 0x1364 has exited with code 0 (0x0).
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\hid.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wintrust.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\crypt32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msasn1.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntmarta.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\Wldap32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ole32.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\ole32.dll'
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\clbcatq.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\powrprof.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Program Files (x86)\NVIDIA Corporation\3D Vision\nvSCPAPI.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\apphelp.dll'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cmd.exe'. Cannot find or open the PDB file.
'jakies tam.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\cmd.exe'
The thread 0x1368 has exited with code 0 (0x0).
'jakies tam.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\dinput8.dll'
'jakies tam.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\hid.dll'
The thread 0x137c has exited with code 0 (0x0).
'jakies tam.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\powrprof.dll'
The thread 0x136c has exited with code 0 (0x0).
'jakies tam.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\nvd3dum.dll'
'jakies tam.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\d3d9.dll'
'jakies tam.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\d3d8thk.dll'
The program '[4928] jakies tam.exe' has exited with code 0 (0x0).
P-106845
maly
» 2014-03-20 16:12:56
al_init_ ***()
 chodzi oto że takich init-ów jest więcej.

Co do włożenie tego do nagłówków daj to do jakiejś funkcji "uruchom_allegro()".

Dobra jednak program nie działa, po prostu się zacina...
Niewiem co masz na myśli "zacina" ale z loga wynika że wszysko jest chyba prawidłowo.

Poszukaj sobie kursów tam będą jakieś proste przykłady.
P-106847
kolor200
Temat założony przez niniejszego użytkownika
» 2014-03-20 17:38:04
Znalazłem taki kod:
C/C++
#include <stdio.h>
#include <allegro5/allegro.h>

int main( int argc, char ** argv ) {
   
    ALLEGRO_DISPLAY * display = NULL;
    ALLEGRO_EVENT_QUEUE * event_queue = NULL;
   
    if( !al_init() ) {
        fprintf( stderr, "failed to initialize allegro!\n" );
        return - 1;
    }
   
    display = al_create_display( 640, 480 );
    if( !display ) {
        fprintf( stderr, "failed to create display!\n" );
        return - 1;
    }
   
    event_queue = al_create_event_queue();
    if( !event_queue ) {
        fprintf( stderr, "failed to create event_queue!\n" );
        al_destroy_display( display );
        return - 1;
    }
   
    al_register_event_source( event_queue, al_get_display_event_source( display ) );
   
    al_clear_to_color( al_map_rgb( 0, 0, 0 ) );
   
    al_flip_display();
   
    while( 1 )
    {
        ALLEGRO_EVENT ev;
        ALLEGRO_TIMEOUT timeout;
        al_init_timeout( & timeout, 0.06 );
       
        bool get_event = al_wait_for_event_until( event_queue, & ev, & timeout );
       
        if( get_event && ev.type == ALLEGRO_EVENT_DISPLAY_CLOSE ) {
            break;
        }
       
        al_clear_to_color( al_map_rgb( 0, 0, 0 ) );
        al_flip_display();
    }
   
    al_destroy_display( display );
    al_destroy_event_queue( event_queue );
   
    return 0;
}
Wszystko poprawnie się kompiluje, lecz przy uruchomieniu:
http://imgur.com/FJwS7bv
(program "jakies tam")
Chyba się podaje...
P-106849
maly
» 2014-03-20 18:02:14
P-106854
kolor200
Temat założony przez niniejszego użytkownika
» 2014-03-24 21:02:18
@Mały, przepraszam że tak późno, ale cóż praca.

Otóż zainstalowałem to co mi podrzuciłeś, i wyskakuję nadal ten sam błąd(podrzuciłem zdjęcie w ostatnim moim poście), a program z 64kb, zmienił wagę na 33kb ;_;. Nie wiem, chyba nie ma na to rady, chyba przerzucam się na coś innego.
P-107155
« 1 »
  Strona 1 z 1