Author Topic: Running CodeBlocks from a USB drive?  (Read 4309 times)

Offline mmebane

  • Multiple posting newcomer
  • *
  • Posts: 33
Running CodeBlocks from a USB drive?
« on: September 01, 2006, 03:15:27 am »
I'm trying to make a portable version of CodeBlocks to carry around with me, so I can use it on the PCs in Comp. Sci. lab. Here's what I've done so far:

- grabbed the binaries I compiled this morning (rev 2934) and copied them to my drive
- grabed my MinGW directory and copied it to my drive
- At this point, my directory structure looks like

- I ran CodeBlocks, let it make a config file, then copied the file from my Applications Data dir to the dir with CodeBlocks.exe.
- I deleted Application Data\codeblocks
- I edited default.conf and changed the MinGW MASTER_PATH from C:\MinGW to \cb\MinGW
- In default.conf, INCLUDE_DIRS is \cb\MinGW\include and LIBRARY_DIRS = \cb\MinGW\lib

Now CodeBlocks runs and finds MinGW. I created a C++ project and tried to compile the skeleton. However, I get "error: iostream: No such file or directory".

Is what I am trying to do possible? If so, what should I do now?
I guess I'm missing a path somewhere, or maybe need to set an environment variable, but I'm really not sure.

« Last Edit: September 01, 2006, 04:06:36 am by mmebane »