AnsweredAssumed Answered

Adding basic C libraries to PATH not working

Question asked by ianovsa on Dec 5, 2016

Hello, I am new to cross-compiling and would really appreciate any help available.

My host is Windows 10, and my target is a Raspberry Pi 3 Model B V1.2 (ARM v7-a)

When I compile a simple "Hello World" program using arm-none-linux-gnueabi-gcc, it compiles fine and then executes on the target.

The problem occurs when I try to compile a program that involves libraries. The basic C libraries which are found in <install_dir>/\MentorGraphics\Sourcery_CodeBench_Lite_for_ARM_GNU_Linux\arm-none-linux-gnueabi\include\c++\4.8.1 cannot be found. I receive the following error:

 

string: No such file or directory

#include <string>

compilation terminated^

 

So far my solutions have been to add the directory to PATH, as well as copy all of the header files to sys-root. Neither have worked yet

 

I would really appreciate any advice!

Thank you in advance!

Outcomes