Open SPARKtechBD opened 7 years ago
The TERN code is standards compliant C++11. This means that you may use any standards compliant C++11 compiler you prefer.
You could use Microsoft Visual Studio, any version that supports C++11. However, I do not recommend doing so. There are three reasons for this:
Microsoft Visual Studio is proprietary software. There are many fine free, open source compilers and IDEs available
The Microsoft C++ compiler is not standards compliant. You may have to alter the code here and there to adjust for the Microsoft peculiarities. This is usually not a big deal, but it is a nuisance to maintain.
For the above two reasons, I do not support Microsoft Visual Studio. This means that you will have to construct your own project files. Again, this is not a lot of work, but it is an unnecessary nuisance.
I do recommend using the CODE::BLOCKS IDE, which uses the standards compliant C++ compiler gcc
The advantage here is that I provide project files for this IDE in the code repository, which you are welcome to use and will build the projects "out of the box" with no more required by you. You can download the IDE from http://www.codeblocks.org/
However, as I said before, you can use any compiler and IDE you prefer so long as you are willing to maintain your own project files.
The simplest place to start is to build the tern_in_console unit tests.
Here is the step by step procedure to build using CODE::BLOCKS.
Download and install CODE::BLOCKS. from http://www.codeblocks.org/
Download the boost code from http://www.boost.org/
Clone this repository
Open the project file ...\TERN\tern_in_console\tst\tst1\tst1.cbp
Double click on this file and it will open automatically in CODE::BLOCKS
You will prompted to set the boost global variable. Set it to the folder where you installed boost.
Press the F9 key ( "Build and Run")
A console window will open and display the results of the unit tests. The last line should show "ALL unit tests PASSED"
Using another IDE is a similar procedure, with a few more steps
Download and install your preferred IDE
Download the boost code from http://www.boost.org/
Clone this repository
Construct a project by creating a console application and inserting these files:
Add the boost include folder to the project's compiler search path
Build. If your compiler is not standards compliant, you may get some compiler errors which you will need to fix as required.
Run. A console window will open and display the results of the unit tests. The last line should show "ALL unit tests PASSED"
Please be aware that this procedure is not supported. This means that you will have to maintain the project file and any changes to the code required b y your compiler.
Hello? Have you decided which IDE you want to use?
This issue has been open for three days now. I have provided you with detailed responses, but have not yet received anything back from you.
I have failed to open this code in VS2015 C++