Hae*_*eri 5 c++ opengl glfw visual-studio visual-studio-2017
我目前正在使用 C++ 开发游戏引擎。随着我进一步深入该项目,我注意到生成的可执行文件通常不反映最新的代码更改。但完全清理解决方案并重建它可以解决问题。不幸的是,对于更大的代码库来说,完全重建不再是一个可行的选择。
我已经在 stackoverflow 上检查过不同的解决方案:
附加信息:
OpenGL项目GLFWglad这是一个非常烦人的问题,会导致大量生产力损失,因为每次我想看到更改时都必须完全重建整个解决方案。如果有任何意见,我将不胜感激。请询问是否需要更多信息。
我不知道这是否有任何相关性,但这是我对 TestScene.cpp 进行小更改并重新运行代码时得到的结果:

更新
以下是对该问题的深入解释:
1>------ 构建开始:项目:Star-Engine,配置:调试 x64 ------
1>TransformerScript.cpp
1>c:\users\haeri\documents\github\space-engine\star-engine\src\header\matrix4f.h(44): 警告 C4267: 'argument': 从 'size_t' 到 'unsigned int' 的转换,可能丢失数据
1>c:\users\haeri\documents\github\space-engine\star-engine\src\header\matrix4f.h(44): 警告 C4244: '初始化': 从 'float' 到 'int' 的转换,可能数据丢失
1>c:\users\haeri\documents\github\space-engine\star-engine\src\header\matrix4f.h(45): 警告 C4267: 'argument': 从 'size_t' 到 'unsigned int' 的转换,可能丢失数据
1>c:\users\haeri\documents\github\space-engine\star-engine\src\source\transformerscript.cpp(13): 警告 C4244: 'argument': 从 'double' 到 'float' 的转换,可能数据丢失
1>编译...
1>生成代码...
1>正在跳过...(未检测到相关更改)
1>测试场景.cpp
1>Star-Engine.vcxproj -> C:\Users\haeri\Documents\github\Space-Engine\x64\Debug\Star-Engine.exe
c:\users\haeri\documents\github\space-engine\star-engine\src\source\glad.c(51): 警告 C6308: 'realloc' 可能返回空指针:将空指针分配给 'exts_i',其中作为参数传递给“realloc”,将导致原始内存块泄漏。
c:\users\haeri\documents\github\space-engine\star-engine\include\stb\stb_image.h(3667):警告 C6001:使用未初始化的内存“coutput”。
1>Star-Engine.vcxproj -> C:\Users\haeri\Documents\github\Space-Engine\x64\Debug\Star-Engine.pdb(部分 PDB)
1>完成构建项目“Star-Engine.vcxproj”。
========== 构建:1 成功,0 失败,0 最新,0 跳过 ==========
替代方法