First post, by personne
Okay, so as a bit of a foreword:
The last time I made a topic and was active on this forum, it was a long time ago. Since then I've actually learned some programming (JAVA and I'm starting C++ soon), so I have a more in-depth appreciation for coding now. I have really tried my best to solve the issue.
Anyways, I wanted to compile the ogg-winmm wrapper to make some old game audio working (the wrapper from here: https://github.com/hifi-unmaintained/ogg-winmm )
I installed MinGW with Msys. I then compiled libogg and libvorbis and vorbis-tools. Then I tried to compile the wrapper (as the guy on github said to).
And this is what happened:
C:\Users\Michael\Desktop\ogg-winmm-master>windres -i wav-winmm.rc.in -o wav-winmm.rc.oC:\Users\Michael\Desktop\ogg-winmm-master>gcc -std=c99 -Wl,--enable-stdcall-fixup -Ilibs/include -O2 -shared -s -o wav-winmm.dll wav-winmm.c player.c wav-winmm.def wav-winmm.rc.o -L. -lvorbisfile-3 -lwinmmwav-winmm.c: In function 'fake_mciSendStringA':wav-winmm.c:503:9: warning: passing argument 4 of 'fake_mciSendCommandA' makes integer from pointer without a cast [enabled by default]fake_mciSendCommandA(MAGIC_DEVICEID, MCI_STOP, 0, NULL);^wav-winmm.c:154:17: note: expected 'DWORD_PTR' but argument is of type 'void *'MCIERROR WINAPI fake_mciSendCommandA(MCIDEVICEID IDDevice, UINT uMsg, DWORD_PTRfdwCommand, DWORD_PTR dwParam)^wav-winmm.c:513:9: warning: passing argument 4 of 'fake_mciSendCommandA' makes integer from pointer without a cast [enabled by default]fake_mciSendCommandA(MAGIC_DEVICEID, MCI_PLAY, MCI_FROM|MCI_TO, &parms);^wav-winmm.c:154:17: note: expected 'DWORD_PTR' but argument is of type 'struct MCI_PLAY_PARMS *'MCIERROR WINAPI fake_mciSendCommandA(MCIDEVICEID IDDevice, UINT uMsg, DWORD_PTRfdwCommand, DWORD_PTR dwParam)^c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lvorbisfile-3collect2.exe: error: ld returned 1 exit status
I don't know enough about C coding to understand the initial errors (though speaking from my JAVA experience it looks like there was some form of compiling issue, though of course I'm sure some of you on the forum know more than me), but the missing lvorbisfile-3 error is more straightforward-seeming.
I don't know what is missing (or rather, how to take care of it). What should I do to get this to compile properly?
Edit:
For reference; Yes, I'm trying to patch Assault Rigs to allow the audio without the CD. I have already taken care of the glrage wrapper (which works beautifully)
ALSO: If I can get this wrapper working, I will modify the top post of this thread to give a full run-down of what I did in complete detail, that way anyone can get the wrapper compile without having to guess most of the way.