Compiler errors when a C++ function is imported
When I was compiling a quasar code which imported a c++ code, I encountered these errors (Ubuntu 19.04):
1- Error:
"Quasar/include/quasar_host.cpp:37:10: fatal error: glib.h: No such file or directory"
Solution:
Installing "libglib2.0-dev" package solved the problem.
2- Error:
/Quasar/include/quasar_rt_bindings.h:169:7: error: ‘cuda_execution_stream’ was not declared in this scope (cuda_execution_stream*)stream, T()...);
Solution:
I removed the pointer casting.
3- Error:
/Quasar/include/quasar_host.cpp:361:28: error: ‘LPSTR’ has not been declared bool(Type_GetClassInfo)(LPSTR moduleName, LPSTR* typeName, qhandle typeHandle, int *flags,
Solution:
The error was disappeared by changing LPSTR to LPTSTR.
Edited by Mohsen Nourazar