oracle Solaris Studio 12.3 IDE 环境下调试

本文详细介绍了如何在Debug模式下,通过编辑subdir.mk文件,为g++添加-g参数,以增强代码调试能力。具体步骤包括输入输出文件的配置以及针对特定目录的编译规则。

编译时在Debug下的subdir.mk文件下的g++行加上 -g 参数






################################################################################
# Automatically-generated file. Do not edit!
################################################################################


# Add inputs and outputs from these tool invocations to the build variables 
CPP_SRCS += \
../src/MyString.cpp \
../src/main.cpp \
../src/utils.cpp 

OBJS += \
./src/MyString.o \
./src/main.o \
./src/utils.o 

CPP_DEPS += \
./src/MyString.d \
./src/main.d \
./src/utils.d 

# Each subdirectory must supply rules for building sources it contributes
src/%.o: ../src/%.cpp
	@echo 'Building file: $<'
	@echo 'Invoking: Cygwin C++ Compiler'
	g++ -g -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o "$@" "$<"
	@echo 'Finished building: $<'
	@echo ' '


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值