TI E2E™ 英文论坛海量技术问答的中文版全新上线,可点击相关论坛查看,或在站内搜索 “参考译文” 获取。

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5708在linux环境下makefile编译c++

Other Parts Discussed in Thread: MATHLIB

代码c++,编译使用类class报错,identifier “class” is undefined。

WINODWS下CCS编译是没问题的,因为加了IPC双核通讯的,需要linux下编译,linux这个需要添加什么库吗?

# ======== toolchain macros ========
CGTOOLS = $(ti.targets.elf.C66)

CC = $(CGTOOLS)/bin/cl6x -c
LD = $(CGTOOLS)/bin/cl6x -z

CPPFLAGS =
CFLAGS = -qq -pdsw225 -ppd=$@.dep -ppa $(CCPROFILE_$(PROFILE)) -@$(CONFIG)/compiler.opt -I. \
-I ../source/DSPLib/ \
-I ../source/MathLib/ \

# entry point is set to an aligned address so that IPC can load the slave
LDFLAGS = -w -q -u _c_int00 -c -m $(@D)/obj/$(@F).map
LDLIBS = -l $(CGTOOLS)/lib/libc.a \
-l ../source/dsplib.ae66 \
-l ../source/mathlib.ae66 \

CCPROFILE_debug = -D_DEBUG_=1 --symdebug:dwarf
CCPROFILE_release = -O2

///////////////////////////////////////////////////////////////////////

对比CCS下的编译自动生成的makefile,没发现区别,而且将CCS下makefile编译选项复制到linux下的makefile报相同错误