2

is there any c++ compiler i can put on a usb or external harddrive and use it on any other computer? the school computjers in my library dont have an ide... or a compiler installed...

P.S the school computers are very tight on securty. i cant even download things from the internet, no websites like facebook, so can i install it on one of the computers? or can i just run it as the actual executable file and run it straight from my usb?

there are several computers with windows 7, and 3 imacs

Mechanical snail
  • 29,755
  • 14
  • 88
  • 113
Austin
  • 29
  • 1
  • 2

6 Answers6

2

I'd try Eclipse. And if it doesn't work straight away, try one of those USB-stick program-hosting softwares like U3 (it comes on some Sandisk thumb drives).

John Zwinck
  • 239,568
  • 38
  • 324
  • 436
  • 1
    +1 for Eclipse, it's portable and doesn't need an installer. Of course you'd have to include the appropriate JDKs on your USB stick as well. – Nate C-K Sep 01 '11 at 02:55
2

Code::Blocks can easily be made portable by setting custom environment variables, described here

At the back-end, C::B can use mingw, which doesn't require any specific install information other than a few environment variables. (namely PATH). These can be set temporarily using SET PATH=%PATH%;./mingw/, which should be possible without elevated privileges.

Mark H
  • 13,797
  • 4
  • 31
  • 45
1

You might try some of the tools at portableapps.com. They're a group that modifies open source software to run off of USB sticks. I've used their versions of Notepad++, Gimp, and Filezilla for years.

In particular, maybe look at they're development tools: http://portableapps.com/apps/development

It looks like they even have some programs to make other apps portable as well, which you might try with Eclipse, as John suggested. (I think Eclipse may also just run off a USB stick without any modification.)

Steve Blackwell
  • 5,904
  • 32
  • 49
0

There is portable code blocks.

0

Dev-C++ might be a good choice if you only use Windows.

If you want an IDE that works in both Windows and Mac, you can choose Emacs, which is a very powerful text editor and is a part of the GNU project. But as it's only a text editor, you will need to download the C++ compiler yourself. MinGW might be a good choice in Windows. Since I have never used a Mac, I cannot give you more suggestion for the Mac environment. But as it's a Unix based system, I guess it has a C++ compiler itself.

aifreedom
  • 11
  • 3
  • OSX doesn't include the compilers by default, you have to install them. You normally get gcc by installing XCode, their IDE. – Nate C-K Sep 01 '11 at 02:52
  • I recommend against Dev-C++. I've been trying to use it, and it's got a few problems that I noticed -- as far as I can tell, it doesn't store its settings in the folder, but on the local computer. It's also got a bunch of annoying bugs -- every now and then, when you type a close paren, it goes to the right one character instead; `CTRL+/` only comments when the cursor isn't at the beginning of the line; you get the idea. – Nic Oct 17 '15 at 01:06
0

What you're looking for is a portable c++ ide. Google gave me the following:

  1. devcpp-portable
  2. Netbeans portable config

But go through google to find more

qwertymk
  • 34,200
  • 28
  • 121
  • 184