Help in C/C++ hybrid programming

1 365

I have a main.c file and I can compile it using the following command :gcc -o test -L.-lftd2xx -Wl, -rpath /usr/local/lib main.c Then, I have to do it in C++, but somehow I can not change this main.c directly to C++, but I need those functions in this main.c and called by my other .cpp files.How to do this? And how to link those libs, (as you see, this main.c have to use a third party .o file) Glad if someone can give me a clue.

Any help will be apprecited.

I didn't find the right solution from the Internet.

Business Solution marketing example

Thank you.


According to this post: color switch

You have to log in before you can reply Login | Sign Up

Points Rules