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.
Tool/software: TI-RTOS
Hi,
I´d like to code my application in C++. I´ve wrote a main.cpp file, which calls Board_init().
I´ve put Board_init() prototype within "extern "C" {}" as following:
extern "C" {
Board_STATUS Board_init(Board_initCfg cfg);
}
When I compile I get the following error:
"conflicting declaration of 'Board_STATUS Board_init(Board_initCfg)' with 'C' linkage"
Does someone can help me?
Installed itens:
CCS 7.2
GCC ARM Compiler 4.9.3
processor_sdk_rtos_am437x 4.00.00.04
am437x PDK v1.0.7
bios 6.46.05.55
xdctools 3.32.02.25_core
Board: AM437x Starter Kit
regards,
Part Number: PROCESSOR-SDK-AM437X
Tool/software: TI-RTOS
Hi,
I think a '}' is missing to close the 'extern "C"' in ti/drv/emac/src/v4/emac_drv_v4.h of Am437x PDK v1.0.7.
regards,
Marcio
Unfortunately not.
The problem persists after I fixed emac_drv_v4.h.
The problem goes away if I comment out the call to Board_init().
I can get rid of the problem by calling Board_init() from a wrap function on a .c file and then calling this function on my .cpp file, using extern "C".
regards,
Hi Eric,
The compiler options I took from an example, if I am not wrong, NIMU_BasicExample_skAM437x_armExampleproject.
The project is attached. Change all '#if 1' to '#if 0' compile without errors.
regards,
Marcio