PDA

View Full Version : looking for a small C++ compiler


mannon
01-31-2007, 03:10 PM
I'm looking for a small C++ compiler as in small installation. I don't need an editor, just something windows executable that can compile code from open source and free source stuff I find online... which means I'll need the basic libraries.

The idea is to compile stuff on my little flash drive which is like my portable office right now... But it's not big enough for VC++ ect. (Though maybe I can strip out just the files I need from VC++? I've already done this for cl.exe and just enough files to use the preprocessor, (for editing scripts), but I will need the libraries too.)

That might be the easiest if I really don't need much more from VC++ just to compile stuff.

The files I have stripped out:
cl.exe
c1.dll
c1xx.dll
c2.dll
mspdb80.dll
1033 (dir)
clui.dll

Presuming I don't need much more from VC++ is there a way of obtaining it short of actually installing it? I can download pretty much whatever, but I really should not install anything on this computer (at work).

Or perhaps simply another compiler all together... but small...?



NVM... Mhtml posted an answer for me in another thread.
http://www.codingforums.com/showthread.php?t=106253

Thanks!

Gox
01-31-2007, 06:59 PM
It seems that you've found your answer but I thought I'd just mention that it's possible to make Dev C++ portable for a USB drive.

Looks like you have to use the -c switch but the point is that it's doable.

http://portablefreeware.com/?c=7&sc=127

EDIT: I didn't read the other thread close enough...looks like Dev C++ was already suggested.

mannon
01-31-2007, 07:10 PM
Thanks for the suggestion. That is actually what I'm doing, only the document you linked only mentioned using -c. You have to specify the directory with -c [path].

I'll have to setup a seperate shortcut for home, since the flash drive is on a different drive letter, but looking good so far and only ~60 meg ish...

Gox
01-31-2007, 07:15 PM
It seems that someone has done work on an actual portable version of Dev, which only need ~20megs. Just thought I'd mention it.

http://www.portasoft.org/e107/page.php?19

mannon
02-01-2007, 07:37 PM
Thanks! Though I don't see a huge difference in this and simply changing the settings and such, other than you don't have to. I wish it were only 20meg, but it's about 60 all told. Still, very cool!

liorean
02-01-2007, 09:27 PM
There's the Digital Mars compiler over at <uri:http://www.digitalmars.com/download/freecompiler.html>.

Compiler itself weighs in at around 3 MiB, though you'll probably want to add some other stuff such as STLport.