UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Adventurer
Adventurer
1,413 Views
Registered: ‎07-09-2017

add c++ library in SDK

Hi, everyone,

 

In SDK how can I add the basic libraries for c++, like iostream, fstream?

 

Regards

 

snip_20170928221353.png

0 Kudos
4 Replies
Teacher muzaffer
Teacher
1,350 Views
Registered: ‎03-31-2012

Re: add c++ library in SDK

@jianmingli1 the libraries you want (iostream, fstream etc.) come from the standard C++ library. There is no reason to add them, they are linked automatically. Just make sure you're creating a C++ project. If in doubt create a new C++ project from scratch and try.

- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give Kudos to a post which you think is helpful and reply oriented.
Observer su.li@bd.com
Observer
884 Views
Registered: ‎10-18-2018

Re: add c++ library in SDK

I have the same problem and already made sure the project I created is C++:

arm-linux-gnueabihf-g++ -Wall -O0 -g3 -c -fmessage-length=0 -MT"src/main.o" -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.cc"

0 Kudos
Observer su.li@bd.com
Observer
880 Views
Registered: ‎10-18-2018

Re: add c++ library in SDK

Adding screen shot.

Error.JPG
0 Kudos
Xilinx Employee
Xilinx Employee
866 Views
Registered: ‎12-21-2016

Re: add c++ library in SDK

Hi,

Can you please post your entire file content here ?

Regards,
Raju
----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.

0 Kudos