PDA

View Full Version : g++ online?




lynkynpark86
Dec 19, 2011, 08:30 AM
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?



jiminaus
Dec 19, 2011, 02:40 PM
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?

moviebiz
Dec 19, 2011, 09:36 PM
Try ideone (http://ideone.com/).

Mac_Max
Dec 20, 2011, 02:37 AM
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.

lynkynpark86
Dec 21, 2011, 06:31 AM
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.

Could I do this on one MacBook without an admin passwd?

Mac_Max
Dec 21, 2011, 09:37 AM
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/