[Audiere] ciągle błąd
Ostatnio zmodyfikowano 2009-06-05 11:40
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? |
|
DejaVu |
» 2009-06-05 13:15:47 |
|
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ą. |
|
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 #include <audiere.h> #include <iostream> using namespace audiere; using namespace std; int main() { AudioDevicePtr audiodevice( OpenDevice() ); OutputStreamPtr graj( OpenSound( audiodevice, "/morse_code.ogg", true ) ); graj->setVolume( 0.5 ); graj->setRepeat( false ); graj->play(); { cout << "Zycze miłego sluchania ;-) "; system( "PAUSE" ); } return 0; } i pokazuje błędy ciagle ... |
|
macieja92 Temat założony przez niniejszego użytkownika |
» 2009-06-05 08:16:29 ------ Build started: Project: hhhh, Configuration: Debug Win32 ------ 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, |
|
macieja92 Temat założony przez niniejszego użytkownika |
» 2009-06-05 11:40:05 #include <iostream> #include <C:\\Dev-Cpp\\include\\audiere.h> using namespace audiere; using namespace std; int main() { AudioDevicePtr audiodevice( OpenDevice() ); OutputStreamPtr graj( OpenSound( audiodevice, "\0_number_morse_code", true ) ); graj->setVolume( 0.5 ); graj->setRepeat( false ); graj->play(); { cout << "Zycze miłego sluchania ;-) "; system( "PAUSE" ); } 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 |
|
« 1 » |