yvanvds / yse-soundengine

advanced 3D sound engine
Eclipse Public License 1.0
234 stars 33 forks source link

YSE errors when used within custom static library #13

Closed cappah closed 6 years ago

cappah commented 8 years ago

I'm trying to use YSE within a static game engine library I'm writing, but when it comes to compiling, I get: C2059 syntax error: 'cdecl' synth.hpp line 37 (CALLBACK,) **C3805 'cdecl': unexpected token, expected either '}' or a ',' at the same line in synth.hpp C2059 syntax error** for "RELATIVE" at line 36 in sound.hpp And both having errors (abc) saying "expected an identifier.

To make sure that the YSE library worked, I created a simple console application just to play a sound and it worked flawlessly. So I don't know what the issue may be when I try to use it with my library. The only other libraries in my engine are glm, Bullet Physics, Assimp and Vulkan.

cappah commented 8 years ago

Update: I finally got it to work in my static library by changing "CALLBACK" and "RELATIVE" to CALLBACK_YSE and RELATIVE_YSE.

So if this is a problem with others and you get the same errors, this is a possible solution.

yvanvds commented 6 years ago

I think we can close this now :-)