这是我的生成文件。我还想生成 .pdb 文件。我已经在使用 -g 选项,但是我没有看到任何使用 .pdb 扩展名创建的文件。此处的帖子还说明使用 -g 选项。
CXX = g++
CXXFLAGS = -Wall -g
all: comment \
test
comment:
@echo ------Starting Build Process-----------------
test: main.o car.o student.o house.o
$(CXX) $(CXXFLAGS) -o test main.o car.o student.o house.o
main.o: student.h house.h main.cpp
$(CXX) $(CXXFLAGS) -c main.cpp
car.o: car.h
student.o: student.h car.h
house.o: house.h
clean:
rm -rf *.o test
Run Code Online (Sandbox Code Playgroud)
关于如何生成 pdb 文件的任何建议?
归档时间: |
|
查看次数: |
3619 次 |
最近记录: |