10-16-2018 12:28 PM - edited 10-16-2018 01:14 PM
10-18-2018 06:50 AM
07-02-2019 09:40 AM
Do you have any idea in the case of c-compiled .so libraries which are being called from .h headers surrounded by the #ifdef __cplusplus extern "C" included in the actual C++ main program?
If I use a C main program calling the c-compiled libraries, the program works but when using a simple c++ program calling the C-compiled libraries, they return failed, and the thing is that I do not want to implement <vector>, <boost_options> and some other functions in c. any idea about .so libraries which are linked at the application startup? Not sure if I need to twick something in SDK project properties to make it work.
08-01-2019 10:11 AM - edited 08-02-2019 09:29 AM
I finally managed to make it work.
My final goal was using C-compiled code (RFDC drivers for the ZCU111 board) and add the functionality like c++ vectors along with some other c++ cool stuff like boost libraries.
Firs of all, because I am using RFDC drivers compiled in C, I decided to use C in XSDK and invoking C++ .hpp and cpp code within my main program like “cpp_header.hpp”. This header is language mapped with C++ in source file properties, like it is explained in this forum. However, because I am using C language I had to do few things:
Hopefully, this will help you to use in XSDK the ability to wrap c++ code using C compiler for the whole project and for those c++ files the g++ compiler.