How to import CS libraries - Apprentice Tutorial

Post Reply
andrew
Posts: 2
Joined: Sun Oct 23 2022 10:38 am

How to import CS libraries - Apprentice Tutorial

Post by andrew »

Hello everyone :D I'm Andrew. I'm really interested in CS and I've watched a lot of videos about. I'm a junior programmer with JS, Java, VB and C++.

It's so strange but I've tried for months to use CS libraries, but I wasn't able, since I do not know how to build or import them in C++.

I've watched many videos and tutorial too.

I would like to ask a few questions.

Which IDE should I use? For C++ I usually use Dev-C++ but I think it's to amateur (or maybe not...(?)) I've also Visual Studio installed in my PC (I have Windows).

Later I would like to ask how to import the libraries to use them.

(For example I usually in JS/React write 'import X from 'x.js' ' and it's all done., but I noticed in C++ is quite more complex )

barbara
Posts: 370
Joined: Sat Apr 04 2015 2:32 am
Contact:

Re: How to import CS libraries - Apprentice Tutorial

Post by barbara »

Thank you for reaching out to us.
Which IDE should I use? For C++ I usually use Dev-C++ but I think it's to amateur (or maybe not...(?)) I've also Visual Studio installed in my PC (I have Windows).
You can use any IDE or editor which works for you. Personally I use our Diamond Editor which I wrote using CopperSpice.
I would like to ask how to import the libraries to use them.
In C++ you do not import a library. To access functionality in a third party library you must include the headers in your source code and then link your application with the library.

(A) Please take a look at our Journal / Blog. The following link will take you to the Table of Contents. The first example will explain how to link with CopperSpice on all of our supported platforms. A link to the full source code and build files can be found on the bottom of each example. We currently have over 30 examples.

https://journal.copperspice.com/?page_id=932

(B) Take a look at the following page in our "CopperSpice Overview" documentation. We have included a C++ sample project which links with CS.

https://www.copperspice.com/docs/cs_overview/sample-cs-cmake.html

(C) You can also take a look at the build files for our KitchenSink demo application.

https://www.copperspice.com/docs/cs_overview/demo-ks.html

Barbara

andrew
Posts: 2
Joined: Sun Oct 23 2022 10:38 am

Re: How to import CS libraries - Apprentice Tutorial

Post by andrew »

OK thanks very much

Post Reply