主要使用过时的类
Main using outdated classes
本文关键字:过时 更新时间:2023-10-16
我的主用的类方法已经过时了。我已经更新了方法以输出到终端,但没有显示任何内容。我在方法调用之前和之后放了一个 cout,并且它们都在打印。这让我觉得我编译错了。
我已经附上了我的制作文件:
RM = rm -f
SRCPATH = .
SRC = actors/actor.h controllers/AiController.h controllers/Controller.h
controllers/PlayerController.h states/BrawlState.h states/DrinkState.h
states/IdleState.h states/IStateCallback.h states/MineState.h
states/SingState.h states/SleepState.h states/state.h states/statemachine.h
resources/dynamicarray.h resources/hashmap.h resources/hashnode.h
resources/heap.h resources/queue.h resources/stack.h resources/vector3d.h
TESTNAME = test
TESTSRC = main.cpp
#
retest: re test
clean:
-$(RM) *.o
-$(RM) *~
-$(RM) #*
-$(RM) *.core
-$(RM) *.gch
fclean: clean
-$(RM) $(TESTNAME)
re: fclean
test:
g++ $(SRC) $(TESTSRC) -Wall -Werror -std=c++0x -o $(TESTNAME)
您需要
使test
目标依赖于所有源文件和标头,以便下次运行make test
时,其中任何一个的更改都会触发重新编译:
test: $(TESTSRC) $(SRC)
g++ $(SRC) $(TESTSRC) -Wall -Werror -std=c++0x -o $(TESTNAME)
相关文章:
- 针对过时的模板显式实例化进行编译
- C++使用现代编译器编译的项目,但链接到过时的libstdc++
- 无法使用 openssl 服务器,因为密码已过时...什么的...ERR_SSL_VERSION_OR_CIPHER_MISMATCH
- 移动构造函数是否C++过时?
- decltype(auto) 是否使尾随返回类型过时?
- C++ 每次字符串通过时递减值
- 过时的编码(C )的确切含义是什么?
- 赫伯·萨特在 GotW #35 中关于字体名的代码笑话过时了吗?
- 检查动态链接库是否已过时
- 这个项目已过时
- 过时的含义
- VS2010:项目已过时
- 错误:过时的旧式基类初始值设定项
- 自lambdas进入C++以来,“回调”接口是否已过时
- HANDLE(IntPtr)已过时,kernel32.dll,安全文件句柄到IntPtr
- 简单的代码,看似随机的结果——这是由于过时的引用造成的吗
- 让年龄过时的结构
- 既然智能指针已经存在,那么使用C型指针是不是已经过时了
- TCP 连接已接受,但写入数据会导致它使用过时的连接
- 我是否仍然需要多线程或它已经过时了