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

[Audiere] ciągle błąd

Ostatnio zmodyfikowano 2009-06-05 11:40
Autor Wiadomość
DejaVu
» 2009-06-05 02:56:17
1. Jakie błędy?
2. Czy zainstalowałeś bibliotekę (pliki nagłówkowe + lib'y)?
3. Czy zlinkowałeś niezbędne lib'y?
P-7444
DejaVu
» 2009-06-05 13:15:47
Pierwszy wynik w googlach po wpisaniu błędu naprowadza odrazu na rozwiązanie: http://archiwum.ddt.pl/?GroupId=2792
P-7447
manfred
» 2009-06-05 08:19:16
Kompilator o tym wie i przepuszcza kod, to linker się pluje - dołącz plik .lib (albo .a), który był w paczce z biblioteką.
P-18944
macieja92
Temat założony przez niniejszego użytkownika
[Audiere] ciągle błąd
» 2009-06-04 22:16:47
Mam kod od państwa ze strony, plik znajduje się w dysku C
C/C++
#include <audiere.h>
#include <iostream>
using namespace audiere;
using namespace std;
int main()
{
    //tworzymy obiekt odwołujący się do urządzenia
    AudioDevicePtr audiodevice( OpenDevice() );
   
    //wczytujemy plik, parametr true oznacza że nasz utwór nie jest wczytywany w całościku do pamięci.
    OutputStreamPtr graj( OpenSound( audiodevice, "/morse_code.ogg", true ) );
   
    //ustawiamy siłę dźwięku
    graj->setVolume( 0.5 );
    //false nie zapętla utworu, true lopu'je nasz utworek
    graj->setRepeat( false );
    //odtwarzamy
    graj->play();
   
    {
        cout << "Zycze miłego sluchania ;-)  ";
        system( "PAUSE" ); //zatrzymanie programu do nacisniecia jakiegos przycisku
    }
    return 0;
}
i pokazuje błędy ciagle ...
P-19418
macieja92
Temat założony przez niniejszego użytkownika
» 2009-06-05 08:16:29
------ Build started: Project: hhhh, Configuration: Debug Win32 ------
C/C++
Compiling...
jf.cpp
Linking...
jf.obj: error LNK2028: unresolved token( 0A0003A6 ) "extern " C " class audiere::AudioDevice * __stdcall AdrOpenDevice(char const *,char const *)"( ? AdrOpenDevice @ @ $ $ J18YGPAVAudioDevice @ audiere @ @ PBD0 @ Z ) referenced in function "class audiere::AudioDevice * __cdecl audiere::OpenDevice(char const *,char const *)"( ? OpenDevice @ audiere @ @ $ $ FYAPAVAudioDevice @ 1 @ PBD0 @ Z )
jf.obj
    : error LNK2028
    : unresolved token( 0A0003AA ) "extern " C " class audiere::OutputStream * __stdcall AdrOpenSound(class audiere::AudioDevice *,class audiere::SampleSource *,bool)"( ? AdrOpenSound @ @ $ $ J212YGPAVOutputStream @ audiere @ @ PAVAudioDevice @ 2 @ PAVSampleSource @ 2 @ _N @ Z ) referenced in function "class audiere::OutputStream * __cdecl audiere::OpenSound(class audiere::RefPtr<class audiere::AudioDevice> const &,class audiere::RefPtr<class audiere::SampleSource> const &,bool)"( ? OpenSound @ audiere @ @ $ $ FYAPAVOutputStream @ 1 @ ABV ? $ RefPtr @ VAudioDevice @ audiere @ @ @ 1 @ ABV ? $ RefPtr @ VSampleSource @ audiere @ @ @ 1 @ _N @ Z ) jf.obj
    : error LNK2028
    : unresolved token( 0A0003B4 ) "extern " C " class audiere::SampleSource * __stdcall AdrOpenSampleSource(char const *,enum audiere::FileFormat)"( ? AdrOpenSampleSource @ @ $ $ J18YGPAVSampleSource @ audiere @ @ PBDW4FileFormat @ 2 @ @ Z ) referenced in function "class audiere::SampleSource * __cdecl audiere::OpenSampleSource(char const *,enum audiere::FileFormat)"( ? OpenSampleSource @ audiere @ @ $ $ FYAPAVSampleSource @ 1 @ PBDW4FileFormat @ 1 @ @ Z ) jf.obj
    : error LNK2019
    : unresolved external symbol "extern " C " class audiere::AudioDevice * __stdcall AdrOpenDevice(char const *,char const *)"( ? AdrOpenDevice @ @ $ $ J18YGPAVAudioDevice @ audiere @ @ PBD0 @ Z ) referenced in function "class audiere::AudioDevice * __cdecl audiere::OpenDevice(char const *,char const *)"( ? OpenDevice @ audiere @ @ $ $ FYAPAVAudioDevice @ 1 @ PBD0 @ Z ) jf.obj
    : error LNK2019
    : unresolved external symbol "extern " C " class audiere::SampleSource * __stdcall AdrOpenSampleSource(char const *,enum audiere::FileFormat)"( ? AdrOpenSampleSource @ @ $ $ J18YGPAVSampleSource @ audiere @ @ PBDW4FileFormat @ 2 @ @ Z ) referenced in function "class audiere::SampleSource * __cdecl audiere::OpenSampleSource(char const *,enum audiere::FileFormat)"( ? OpenSampleSource @ audiere @ @ $ $ FYAPAVSampleSource @ 1 @ PBDW4FileFormat @ 1 @ @ Z ) jf.obj
    : error LNK2019
    : unresolved external symbol "extern " C " class audiere::OutputStream * __stdcall AdrOpenSound(class audiere::AudioDevice *,class audiere::SampleSource *,bool)"( ? AdrOpenSound @ @ $ $ J212YGPAVOutputStream @ audiere @ @ PAVAudioDevice @ 2 @ PAVSampleSource @ 2 @ _N @ Z ) referenced in function "class audiere::OutputStream * __cdecl audiere::OpenSound(class audiere::RefPtr<class audiere::AudioDevice> const &,class audiere::RefPtr<class audiere::SampleSource> const &,bool)"( ? OpenSound @ audiere @ @ $ $ FYAPAVOutputStream @ 1 @ ABV ? $ RefPtr @ VAudioDevice @ audiere @ @ @ 1 @ ABV ? $ RefPtr @ VSampleSource @ audiere @ @ @ 1 @ _N @ Z ) C:\D ocuments and Settings\Sony Ericsson\Moje dokumenty\Visual Studio 2008\Projects\hhhh\Debug\hhhh.exe
    : fatal error LNK1120
    : 6 unresolved externals Build log was saved at "file://c:\Documents and Settings\Sony Ericsson\Moje dokumenty\Visual Studio 2008\Projects\hhhh\hhhh\Debug\BuildLog.htm" hhhh - 7 error( s )
    , 0 warning( s ) ========== Build
    : 0 succeeded
    , 1 failed
    , 0 up - to - date
    , 0 skipped ==========

takie bledy, no przeciez jest zadeklarowana biblioteka audiere na gorze,
P-19422
macieja92
Temat założony przez niniejszego użytkownika
» 2009-06-05 11:40:05
C/C++
#include <iostream>
#include <C:\\Dev-Cpp\\include\\audiere.h>
using namespace audiere;
using namespace std;
int main()
{
    //tworzymy obiekt odwołujący się do urządzenia
    AudioDevicePtr audiodevice( OpenDevice() );
   
    //wczytujemy plik, parametr true oznacza że nasz utwór nie jest wczytywany w całościku do pamięci.
    OutputStreamPtr graj( OpenSound( audiodevice, "\0_number_morse_code", true ) );
   
    //ustawiamy siłę dźwięku
    graj->setVolume( 0.5 );
    //false nie zapętla utworu, true lopu'je nasz utworek
    graj->setRepeat( false );
    //odtwarzamy
    graj->play();
   
    {
        cout << "Zycze miłego sluchania ;-)  ";
        system( "PAUSE" ); //zatrzymanie programu do nacisniecia jakiegos przycisku
    }
    return 0;
}



plik ogg jest na pulpicie tam gdzie plik exe wiec powinno go odebrac ale w devie pokazuje dalej blad


[Linker error] undefined reference to'_imp__AdrOpenSound@12'
[Linker error] undefined reference to'_imp__AdrOpenSampleSource@8'
[Linker error] undefined reference to'_imp__AdrOpenDevice@8'
pliki ktore byly w paczce do audiere to

bin - audiere.dll
include - audiere.h
lib - audiere.lib
P-19423
« 1 »
  Strona 1 z 1