I was having a problem linking a few functions with our game, such as system->playSound() and system->playDSP(). It turned out to be a problem of mismatched export/inport signatures.
Our game library #defines bool as an int (I disagree with that decision for reasons such as this, btw). It ended up that this was causing a mismatch between the static library and the linker. I was surprised to see that you weren’t using your FMOD_BOOL typedef, but instead using actual bool types (although it seemed to vary). I guess you use FMOD_BOOl for C, and true bool for the C++ interface, which makes sense.
Fixing this was easy enough for our project, but I thought I’d point this out as a potential source of confusion (took me a couple of hours to figure this out).
- JamesB asked 12 years ago
- You must login to post comments