• Advertisement
Sign in to follow this  

Allegro without DirectX

This topic is 3580 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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).

Share this post


Link to post
Share on other sites
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).

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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@0
alleg_s.lib(wthread.obj) : error LNK2001: unresolved external symbol __imp__CoUninitialize@0
alleg_s.lib(wthread.obj) : error LNK2001: unresolved external symbol __imp__CoInitialize@4
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInStart@4
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInGetDevCapsA@12
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutGetVolume@8
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutGetDevCapsA@12
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInReset@4
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutSetVolume@8
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInGetNumDevs@0
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInClose@4
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutGetNumDevs@0
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInStop@4
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutReset@4
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutOpen@20
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutShortMsg@8
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiOutClose@4
alleg_s.lib(wmidi.obj) : error LNK2001: unresolved external symbol __imp__midiInOpen@20
alleg_s.lib(wdsinput.obj) : error LNK2001: unresolved external symbol __imp__CoCreateInstance@20
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutGetPosition@12
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutGetVolume@8
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutPause@4
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutWrite@12
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutPrepareHeader@12
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutClose@4
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutOpen@24
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutUnprepareHeader@12
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutSetVolume@8
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutReset@4
alleg_s.lib(wsndwo.obj) : error LNK2001: unresolved external symbol __imp__waveOutRestart@4
alleg_s.lib(wjoyw32.obj) : error LNK2001: unresolved external symbol __imp__joyGetDevCapsA@12
alleg_s.lib(wjoyw32.obj) : error LNK2001: unresolved external symbol __imp__joyGetPosEx@8
alleg_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]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement