g++ online?

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

  1. macrumors 6502

    #1
    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. macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #2
    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. macrumors member

    Joined:
    Jul 3, 2007
    #3
  4. macrumors 6502

    Joined:
    Mar 8, 2004
    #4
    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.
     
  5. thread starter macrumors 6502

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

    Joined:
    Mar 8, 2004
    #6
    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 ;).

    http://www.tightvnc.com/
     

Share This Page