Hi, I’m new to Fmod
what I’m trying to do is use fmod in a simple opengl game I’ve made to stream background music, but all i can manage to do is run it in a console window, as soon as i add Fmod to the game, i get linking errors. I was wondering if there is an easy fix, or if someone could provide code for a simple opengl window with a square in the middle, streaming music through fmod.
Hopefully you can help me, or at least point me in the right direction 😀
- madcoretom asked 9 years ago
You need to add fmodex_XX.lib or libfmodex.a to you linker options… Choose the lib that matches your compiler.
IN Visual Studio, I can’t remember where that darn thing is… Every time I need to add a lib it takes me hours to find it.
IN Dev-C++ it’s in Project/Project options/Paramiters/Add Library or Object
- icuurd12b42 answered 9 years ago
that helped a bit, but here’s my output:
c:\documents and settings\owner\my documents\visual studio 2008\projects\fmodtest\fmodtest.cpp(55) : warning C4129: ‘ ‘ : unrecognized character escape sequence
c:\documents and settings\owner\my documents\visual studio 2008\projects\fmodtest\fmodtest.cpp(20) : warning C4101: ‘msg’ : unreferenced local variable
fmodtest.obj : error LNK2019: unresolved external symbol "long stdcall WndProc(struct HWND *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAUHWND__@@IIJ@Z) referenced in function _WinMain@16
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
C:\Documents and Settings\Owner\My Documents\programming\fmod\Debug\fmodtest.exe : fatal error LNK1120: 2 unresolved externals[/code:fq7gsn1o]
can you tell anything from that?
Please login first to submit.