For learning purposes, students should use a consistent environment. Because students submitted their assignments through an online system that used gcc, the GNU compiler collection, students were recommended to use the same in their local environment.
Compiler tools: gcc, g++, make
Debugging: gdb, valgrindNote that gcc/g++ should be at least version 4.7 or higher in order to use their more complete C++11 functionality. Everyone using these tools should also be using the following Makefile:
CC := gcc CFLAGS := -O0 -g -std=c99 -Wall -Wextra -Wshadow -pedantic –Werror CXXFLAGS := -O0 -g -std=c++11 -Wall -Wextra -Wshadow -pedantic -Weffc++ -Werror
Save the above code as "Makefile" in the directory where you are compiling your program.
I'm trying to learn C++ on my own, and I recently downloaded Eclipse by recommendation of some stackoverflow questions. The above is from one of MIT OCW's courses. However, I have no familiarity with what any of this means. I downloaded valgrind, and I believe I have it installed, but the rest (gdb, gcc, g++, make), I have no idea if that's included in Eclipse.
Can someone please help me figure out what needs to be done to match the above criteria? I'm also not sure what to do with the "Makefile" mentioned above.
(I'd like to apologize for how much of a beginner I am.)
Aucun commentaire:
Enregistrer un commentaire