Use SDK with C API in a C program with C compiler?
Hi,
I wonder if it is possible to use the C API (from SDK 0.3.2) in a full C code and compile it with a C compiler?
When I try to do it the compiler says it does not know C++ things like namespace and so on.
Is there a compiling option suitable for this or the C API is just a wrapper for the SDK written in C++? In this case I would need to use a C++ compiler for my C code.
More specifically: I'm adapting a C program to the Oculus Rift and most sources files have this header:
I don't know if the question has already been asked, I have not found topics about that matter though.
Thanks for your answers.
I wonder if it is possible to use the C API (from SDK 0.3.2) in a full C code and compile it with a C compiler?
When I try to do it the compiler says it does not know C++ things like namespace and so on.
Is there a compiling option suitable for this or the C API is just a wrapper for the SDK written in C++? In this case I would need to use a C++ compiler for my C code.
More specifically: I'm adapting a C program to the Oculus Rift and most sources files have this header:
#ifdef __cplusplus
#error This source file is not C++ but rather C. Please use a C-compiler
#endif
I don't know if the question has already been asked, I have not found topics about that matter though.
Thanks for your answers.
