Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8719419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:47:37+00:00 2026-06-13T06:47:37+00:00

Is there a good ‘how-to’ or ‘getting started’ guide for getting started using g++

  • 0

Is there a good ‘how-to’ or ‘getting started’ guide for getting started using g++ and gdb?

Some background. Decent programmer, but so far I have done everything on Windows in Visual Studio.

I have a little experience using terminal to compile files (not much beyond a .h and 1 or 2 .cpp). But nothing beyond that.

Anyone know of a good primer on on how to get started coding on Linux?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T06:47:39+00:00Added an answer on June 13, 2026 at 6:47 am

    Read some good books, notably Advanced Linux Programming and Advanced Unix Programming. Read also the advanced bash scripting guide and other documentation from Linux Documentation Project

    Obviously, install some Linux distribution on your laptop (not in some VM, but on real disk partitions). If you have a debian like distribution, run aptitude build-dep gcc-4.6 gedit on it to get a lot of interesting developers packages.

    Learn some command line skills. Learn to use the man command; after installing manpages and manpages-dev packages, type man man (use the space bar to “scroll text”, the q key to quit). Read also the intro(2) man page. When you forgot how to use a command like cp try cp --help.

    Use a version control system like git, even for one person tiny projects.

    Backup your files.

    Read several relevant Wikipedia pages on Linux, kernels, syscalls, free software, X11, Posix, Unix

    Try hard to use the command line. For instance, try to do everything on the command line for a week or more. Avoid using your desktop, and possibly your mouse. Learn to use emacs.

    Read about builder programs like GNU make

    Retrieve several free software from their source code (e.g. from sourceforge or freecode or github) and practice building and compiling them. Study their source code

    Basic tips to start (if a command is not found, you need to install the package providing it) in command line (in a terminal).

    • run emacs ; there is a tutorial menu; practice it for half an hour.

    • edit a helloworld.c program (with a main calling some hello function)

    • compile it with gcc -g -Wall helloworld.c -o helloworld; improve your code till no warnings are given. Always pass -Wall to gcc or g++ to get almost all warnings.

    • run it with ./helloworld

    • debug it with gdb ./helloworld, then

      1. use the help command
      2. use the b main command to add a breakpoint in main and likewise for your hello function.
      3. run it under gdb using r
      4. use bt to get a backtrace
      5. use p to print some variable
      6. use c to continue the execution of the debugged program.
    • write a tiny Makefile to be able to build your helloworld program using make

    • learn how to call make (with M-x compile) and gdb (with M-x gdb) from inside Emacs

    Learn more about valgrind (to detect most memory leaks). Perhaps consider using Boehm’s GC in some of your applications.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Are there some good resources tutorials or anyone has tried to implement a Capcha
Is there a good way to keep keys from conflicting when using the Microsoft
Are there good (suitable for using in real projects) ways or reducing boilerplate in
Hi is there good tutorial about using Fluent Nhibernate in asp.net/winforms application ? I
Are there good efficiency savings using Sql Server 2005 over Sql Server 2000? Or
there are tons of books out there teaching you a new language. but some
Are there good patterns for mapping solution configurations to environments and using MsDeploy for
Is there a good gem to track/log user activities on the site? Like when
Is there any good library which supports WebSockets and is compatible with GWT? Ideally,
Are there any good technical comparisons available between the various game development options available.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.