Sorry for newbie question. New to C++, new to FMOD. Just trying to add some sound to a video game I’m attempting to make.
I downloaded the latest fmod ex directories.
include "fmod/examples/common/wincompat.h" //Only included this line because the examples did
int main(int argc, char argv)
result = FMOD::System_Create(&system);
At this point, my code breaks. It doesn’t break for the #include lines, and it allows the creation of the FMOD::System* and the FMOD_RESULT.
fmod/api/inc/fmod.hpp:45: undefined reference to
Been searching around as to what I’m missing, but can’t figure it out. Can someone help this newbie start his code?
- twigs666 asked 5 years ago
Firstly you don’t need wincompat.h, that’s just a little helper we have in our examples to make the code work on other platforms.
Your undefined symbol error is most likely related to not linking the FMOD library, if you are on Linux (a guess based on the wincompat.h) take a look at our makefiles to ensure you link the library correctly.
Please login first to submit.