Skip to contentSkip to conversation

How to change $(CC) to use g++ version

DISCUSSION Elvis Dowson 2 participants 2 messages Jun 21, 2009

lore
Share & tools
lore
#0 lore raw

Hi,
How can I change my compiler from gcc to g++ in an OE recipe?

For example,

do_compile () {
${CC} ${CFLAGS} ${LDFLAGS} ${WORKDIR}/read_port.cpp -o libserial-
test-read-port
}

here CC should be calling the g++ version of the arm-g++ compiler.

Best regards,

Elvis

#1 lore raw
Quoted 2 lines · Elvis Dowson

Hi,
How can I change my compiler from gcc to g++ in an OE recipe?

${CXX}