csteifel
csteifel

Reputation: 2934

Check which version of g++ being used

I have both 32 and 64 bit g++ installed on my server and when compiling I want to make sure that I am compiling in 64 bit mode, when I do g++ --version I don't get information about which architecture package I installed, is there a way I can check command line with g++ to see if it is using the 64 bit version.

I need the 32 bit version for other dependencies so its not an option to remove that.

Upvotes: 1

Views: 3491

Answers (1)

Josh Lee
Josh Lee

Reputation: 177520

~$ g++ -dumpmachine 
x86_64-linux-gnu

Upvotes: 2

Related Questions