- 博客(5)
- 资源 (4)
- 收藏
- 关注
转载 makefile中all的作用
Makefile 的规则格式是这样的 target ... : prerequisites ... command ... ...比如 lz 要把一个 hello.cpp 文件编译成 helloall : hello another hello : hello.cpp g++ -o $@ $< another : another.cpp g++ -o $@ $<直接 make 或 make all 的话会执
2021-04-24 15:07:50 1468
原创 [原]自己编写makefile遇到的问题
makefile:4: *** missing separator. Stop.原因: 行首要加tab。makefile:4: *** recipe commences before first target. Stop.原因:直接写命令部分,而没有写依赖部分。makefiel格式为:target … : prerequisites …command
2021-04-24 14:38:12 355
原创 QtCore\qglobal.h:45: error: C1083: Cannot open include file: ‘type_traits‘: No such file or director
问题:win10 64 位安装qt5.9.9后,选择vs2015工具集,新建工程编译,报错:QtCore\qglobal.h:45: error: C1083: Cannot open include file: 'type_traits': No such file or director原因:
2021-04-21 11:19:37 5930 14
原创 qt程序报错error C2248: “ThreadTest::ThreadTest”: 无法访问 private 成员(在“ThreadTest”类中声明)
问题:在qt程序中新增一个类,未继承任何类,后来增加继承类的时候,添加继承类和Q_OBJECT宏后编译报错:error C2248: “ThreadTest::ThreadTest”: 无法访问 private 成员(在“ThreadTest”类中声明)原因:将Q_OBJECT没有放在类声明的第一行,放在了public后面。...
2021-04-08 19:24:13 637
原创 main.obj:-1: error: LNK2019: 无法解析的外部符号 “struct AVFrame * __cdecl av_frame_alloc(void)“ (?av_frame_al
问题:在c++项目中使用ffmpeg库时报错:“LNK2019: 无法解析的外部符号 “struct AVFrame * __cdecl av_frame_alloc(void)” (?av_frame_alloc@@YAPAUAVFrame@@XZ),该符号在函数 “int __cdecl ffmpeg_main(void)” (?ffmpeg_main@@YAHXZ) 中被引用”解决办法:在调用ffmpeg库的代码段前后添加代码段:#ifdef __cplusplusextern "C" {
2021-04-07 11:19:29 908
SDFormatter_V3.1.rar
2019-11-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人