libgdx / fbx-conv

Command line utility using the FBX SDK to convert FBX/Collada/Obj files to a custom text/binary format for static, keyframed and skinned meshes.
Apache License 2.0
447 stars 117 forks source link

Compilation failes on VS2015 #95

Closed noosxe closed 5 years ago

noosxe commented 8 years ago

Hi! I'm trying to build fbx-conv's master branch source using VS2015 and get this error:

error C2338: va_start argument must not have reference type and must not be parenthesized (compiling source file ....\src\main.cpp)

any ideas how to fix this ?

Tuee22 commented 8 years ago

I had a similar issue with some code I had written, and which successfully compiled and ran, using VS2013 express. As soon as I upgraded to 2015 (professional in my case) I got the error you described.

I was able to resolve the problem via:

define _CRT_NO_VA_START_VALIDATION

(I just added _CRT_NO_VA_START_VALIDATION to the preprocessor definitions under C/C++ -> preprocessor under project properties.)

Tom-Ski commented 5 years ago

Thanks for the workaround @Tuee22