![]() ![]() I can’t explain why this is necessary, I suppose it may have to do with Linux needing to call the C++ compiler into the program but I’m no expert. Your CMakeLists.txt file should look similar to this gist: This is due to the c++ file not being added to the CMakeLists.txt file and will be corrected after it is added. ![]() “The file does not belong to any project target, code insight might not work properly”.For instance when I saw the teacher making a test.cpp file I decided to follow his lead and create it however it gave me an error saying: cpp files in a project then you will need to edit the “CMakeLists.txt” file and add that. I learned this off misunderstanding the videos but this possibly may be useful in the future. cpp file simply right click on the project name and select “New File” and type in “xxx.cpp” You may delete the main.cpp file by right clicking it along the Project menu located on the left and about half way down you will find “Delete.”.When a project has been created you will already have a main.cpp file in the project.Unfortunately there isn’t a way to select and name a Solution so the best work around I found was to navigate to the directory and create a folder as “Section_02” or “Solution” and move the project folder into there. I want to write this guide as it will help solidify the information I am learning as well as help other newbs such as myself to be able to navigate through this course with assistance.įor all projects made in CLion you will be prompted to choose a directory and name of the project. ![]() I’m not an expert by any means but I have the drive to learn both C++ and Linux at the same time and I am currently running Fedora 28 and utilizing CLion IDE for learning C++. I was not sure if there was a specific tutorial people where we are able to follow for the Linux run through for this. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |