g++ online?

Discussion in 'Mac Programming' started by lynkynpark86, Dec 19, 2011.

  1. lynkynpark86 macrumors 6502

    Is there a way to compile g++ through a website (like the RAR extractors online)? I don;t have an admin password, and therefore can't install g++ or Xcode, and running downloaded g++ from the desktop has many errors, and can't find the imported files (stdio.h). I found a site that compiles Java online (http://www.innovation.ch/java/java_compile.html), but it only works with java, of course. Anyone know if these exist?
  2. jiminaus macrumors 65816


    Dec 16, 2010
    I don't think this would exist.

    An online Java compiler can be created because compiling Java on one platform results in class files that will work any platform with a Java runtime environment.

    It's not the same for C++. Compiling C++ source code produces object code for a particular platform.

    So not only would you need an online C++ compiler, you would also need an online C++ compiler that produces Mac OS X executables. Why would anyone bother to create such a website?
  3. Mac_Max macrumors 6502

    Mar 8, 2004
    You could setup a virtual machine with a VNC server built in (i.e. Virtual box) and with the proper router settings, remote into it.
  4. lynkynpark86 thread starter macrumors 6502

    Could I do this on one MacBook without an admin passwd?
  5. Mac_Max macrumors 6502

    Mar 8, 2004
    I assume you mean connect on a machine you don't have admin privileges on? Yes, either by using the built in VNC facilities in OS X (go to Go Menu->Connect to Server...) and type in (sans quotes) "vnc://<IPAddress>:<portnumber>". The port number is optional if you use the default one for VNC. Otherwise, if VNC is disabled on that Mac, you can try TightVNC's Java based VNC viewer. Just extract it to a keydrive and run it from there so that your sys admin isn't too cross with you ;).


Share This Page