c++ headers in cross compilation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

c++ headers in cross compilation

540 次查看
zohargolan
Contributor III

Hi Imx8mp,

 

I Have a question for you regarding c++ standard headers.

We have setup a development environment with Eclipse cross compiling and we are working with C projects without problems. Now we try to integrate a c++ component, and we have problems cross compiling the code for the imx8mp platform. It doesn’t seams that the SDK include the C++ standard headers like <iostream>.

 

15:52:32 **** Rebuild of configuration Debug for project hello_world ****

Info: Internal Builder is used for build

aarch64-fslc-linux-g++ -std=c++17 -O0 -g3 -Wall -c -fmessage-length=0 -o src/hello_world.o ../src/hello_world.cpp

../src/hello_world.cpp:9:10: fatal error: iostream: No such file or directory

    9 | #include <iostream>

      |          ^~~~~~~~~~

compilation terminated.

 

15:52:33 Build Failed. 1 errors, 0 warnings. (took 620ms)

 

Do we need to build the kernel with implicit c++ headers support? How do we do that?

 

Thank you for your help

Zohar

0 项奖励
回复
0 回复数