Skip to content

Compilation in OSX  #60

Open
Open
@danyaljj

Description

@danyaljj

I had to go through these steps to be able to compile in my Mac, which has gcc 4.2 by default.
Thought it would be worth sharing.

First install gcc49, but this is not gonna change the default behavior:

brew install gcc49 

In command-line, create aliases for gcc 4.9:

export CC=/usr/local/bin/gcc-4.9
export CXX=/usr/local/bin/g++-4.9
export CPP=/usr/local/bin/cpp-4.9
export LD=/usr/local/bin/gcc-4.9
alias c++=/usr/local/bin/c++-4.9
alias g++=/usr/local/bin/g++-4.9
alias gcc=/usr/local/bin/gcc-4.9
alias cpp=/usr/local/bin/cpp-4.9
alias ld=/usr/local/bin/gcc-4.9
alias cc=/usr/local/bin/gcc-4.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions