最近在学习bgfx,在参考了如下两篇链接后终于将.build的工程文件生成成功
1. http://blog.youkuaiyun.com/huangzhipeng/article/details/54672949
2. https://bkaradzic.github.io/bgfx/build.html
可是在运行的bgfx自带测试用例时却出现了:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
系统为win10,IDE为VS_2015_Pro.
注:网上很多针对这个错误的修改方法我都试过了,包括修改调用约定为_stdcall 和 修改运行检查为默认值等,均无效。
后通过修改调用约定为_cdecl ,同时修改基本运行检查和关闭最小生成后重启编译器来解决问题。