Tag Archives: g++

Beginner’s Guide to Linkers

Beginner’s Guide to Linkers This article is intended to help C & C++ programmers understand the essentials of what the linker does. I’ve explained this to a number of colleagues over the years, so I decided it was time to write it down so that it’s more widely available (and so that I don’t have [...]

  • Share/Bookmark

Setting up to compile C++ on Linux

Firts, check if you have g++ instaled. Run this on console: g++ -v If show version, g++ installed. Now, create a simple shell script to compile you cpp file #/bin/bash # gpp compiller g++ -pedantic-errors -ansi -Wall -o $1 $1.cpp Now, to compile the str.cpp use this: gpp str

  • Share/Bookmark