Page 1 of 3

Portbale compiler?

Posted: Wed Dec 16, 2009 9:41 pm
by thbp
Is there a porable compiler? i Know of pcc for C but i am learning C++ and i don't think it supports it.

the reason is i have alot of time at school so i was going to work at school with portable notepad++ and a portable compiler

Re: Portbale compiler?

Posted: Wed Dec 16, 2009 9:52 pm
by davidthefat
thbp wrote:Is there a porable compiler? i Know of pcc for C but i am learning C++ and i don't think it supports it.

the reason is i have alot of time at school so i was going to work at school with portable notepad++ and a portable compiler
DevC++ in a USB drive does the trick, its small and you dont need to install

http://www.bloodshed.net/devcpp.html

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 12:23 pm
by dandymcgee
Just a tip: I highly recommend you avoid attempting to make Code::Blocks portable. While it can be done, it's not fun.. at all.. trust me.

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 1:04 pm
by thbp
yeah i know i ilike screwed i up now i can't like un install now ugh

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 2:46 pm
by RyanPridgeon
Codeblocks will work absolutely fine.

You just have to get GCC seperately. First get MinGW and put that in a folder on your memory stick, then install Codeblocks to your memory stick (the non MinGW version) with all plugins. Then just set the executable path in the Codeblocks settings for your MinGW folder.

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 2:57 pm
by M_D_K
dandymcgee wrote:Just a tip: I highly recommend you avoid attempting to make Code::Blocks portable. While it can be done, it's not fun.. at all.. trust me.
WTF, I've got C::B on my USB drive, it was painless. What kind of problems did you have?

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 3:01 pm
by thbp
like it actually installed in windows if you go to add/remove programs (in windows) it says Code::Blocks on there and i want it portable were its like unzip and well compile (and i'm talking about just a compiler i don't need an IDE i can use Notepadd++)

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 3:16 pm
by RyanPridgeon
Well.. if the actual program files for Codeblocks are on the memory stick, you could try removing the memory stick, then clicking "Remove" in the Add/Remove Programs window.

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 4:15 pm
by eatcomics
DevC++ on a usb drive here :)

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 4:33 pm
by thbp
doesn't work because unistall.exe does not exist (already tried) wait would installing it? coping all the files to the desktop then uninstall from the thumb drive then copying back the files work?

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 4:44 pm
by RyanPridgeon
When it tells you that the un-installer doesn't exist, it SHOULD prompt you if you want to remove the program anyway.

This is because otherwise you could potentially get a program stuck there forever if the uninstaller gets corrupted/lost :P

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 4:49 pm
by thbp
well it doesn't though so then what? do i do?

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 4:54 pm
by RyanPridgeon
Wel... Try to copy & paste the files somewhere, "uninstall" it, and then paste them back.

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 5:48 pm
by Ginto8
I have the ultimate portable compiler: linux on a usb drive :mrgreen:

Re: Portbale compiler?

Posted: Thu Dec 17, 2009 10:21 pm
by thbp
I got it to work like my steps i took (i'll post it ) worked thanks!!!!!


1. Run install to your flash drive
2. Copy your files to your desktop (copy not move)
3. Run unistall from your start menu
4. Copy back files from your desktop
5. Start up Code::Blocks and off you go

(i have not fully tested this yet though so i do not know if all the features work (though they should))