View Full Version : g++ without admin?

Mar 3, 2012, 08:57 AM
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?
/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?

Mar 3, 2012, 05:44 PM
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

Mar 3, 2012, 05:52 PM
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.