g++ without admin?

Discussion in 'Mac Programming' started by lynkynpark86, Mar 3, 2012.

  1. macrumors 6502

    #1
    As many of my other posts indicate, I don't have administrator rights on my Mac. Is there any way to use g++ without "installing" it? For example, could I do something like this?
    Code:
    /Users/myuser/gcc/g++ -args somefile.cpp
    I've tried it before, and it always game me some error like "stdio not found". Is there a way to make it work?
     
  2. macrumors member

    Joined:
    Aug 28, 2008
    #2
    Wirelessly posted (Mozilla/5.0 (iPhone; CPU iPhone OS 5_0_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A405 Safari/7534.48.3)

    It would probably be easier to crack the admin password than to get this working
     
  3. Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #3
    Basically you need more than just g++/gcc for everything to work, you need the binaries e.g. in ~/bin, but also the libraries like stdio in ~/include and ~/lib.

    You might be able to get the version from HPC to work by appropriate use of environment variables.

    B
     

Share This Page