Allegro without DirectX

Started by
4 comments, last by XTAL256 16 years ago
How can i use allegro without needing DirectX? I have included alleg_s.lib and defined ALLEGRO_STATICLINK but i get unresolved symbols _DirectDrawCreate@12 and others (such as __imp__waveOutPause@4 and __imp__midiOutReset@4).
[Window Detective] - Windows UI spy utility for programmers
Advertisement
Any help? Does anyone know what library the symbols waveOutPause and midiOutReset (among other wave & midi routines) are from. Is it allegro or DX, i am hoping that allegro doesn't use directX for it's sound routine because that's one of the main things i use allegro for (and i don't have DX).
[Window Detective] - Windows UI spy utility for programmers
Allegro uses DirectX for Windows. If you link with alleg_s.lib, you need to link against the DX libraries. It's all covered in the build instructions.
Even if i don't use DX? Darn. Oh, well, i guess i will just download the minimal DirectX 7 SDK from the alegro website. Seems like a waste since i'm using OpenGL.

EDIT: i downloaded DX from the allegro site (dx70_min.zip) and added all the .lib files to the linker's additional dependencies but i still get errors saying it can't find wave and midi routines:
alleg_s.lib(wtimer.obj) : error LNK2001: unresolved external symbol __imp__timeGetTime@0alleg_s.lib(wthread.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0alleg_s.lib(wthread.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInStart@4alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInGetDevCapsA@12alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutGetVolume@8alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutGetDevCapsA@12alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInReset@4alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutSetVolume@8alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInGetNumDevs@0alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInClose@4alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutGetNumDevs@0alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInStop@4alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutReset@4alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutOpen@20alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutShortMsg@8alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutClose@4alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInOpen@20alleg_s.lib(wdsinput.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutGetPosition@12alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutGetVolume@8alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutPause@4alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutWrite@12alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutPrepareHeader@12alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutClose@4alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutOpen@24alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutUnprepareHeader@12alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutSetVolume@8alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutReset@4alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutRestart@4alleg_s.lib(wjoyw32.obj) : error LNK2001: unresolved external symbol __imp__joyGetDevCapsA@12alleg_s.lib(wjoyw32.obj) : error LNK2001: unresolved external symbol __imp__joyGetPosEx@8alleg_s.lib(wjoyw32.obj) : error LNK2001: unresolved external symbol __imp__joyGetNumDevs@0

Is there something i'm not doing?

[Edited by - XTAL256 on April 1, 2008 6:38:41 PM]
[Window Detective] - Windows UI spy utility for programmers
DX also provides sound output. Link against winmm.lib.
thanks
[Window Detective] - Windows UI spy utility for programmers

This topic is closed to new replies.

Advertisement