User forums > Using Code::Blocks

Codeblocks portable

<< < (2/5) > >>

Jenna:
If it's true, what you write:

--- Quote from: xors3d on October 06, 2010, 06:40:40 pm ---but one problem exist...the default.conf....
everey time i use the portable version i have to delete the default.conf file because in there are absolute path for mingw.

--- End quote ---
You can use $(CODEBLOCKS) variable in compilers installation path (in Toolchain executables).
The $(CODEBLOCKS) variable always points to the directory the running C::B resides in.
So you can get rid of the absolute paths.

seb_seb0:

--- Quote from: xors3d on October 07, 2010, 09:06:47 pm ---i know....but i ask for you personal configuated portable...
perhaps if its okay for you...can i have it?

--- End quote ---

This is what I told you: this is NOT a specific build of Code::Blocks.
The only thing I do is to use the $(CodeBlocks) variable everywhere in my settings. (compiler toolchain, help files, tools, global variables)
Just try it !

I know it is working for :
  - Mingw, Mingw TDM, MSVC09
  - with spaces in the installation path ("Documents and Settings\UserName\Desktop\" for example)
  - installation on another drive (D:\)

If you have full path in your default.conf, then it means you are using full paths in your settings. You have to find the correct options.
I have checked my default.conf, and I have no full path in it. See for example:

--- Code: ---<MASTER_PATH>
<str>
<![CDATA[$(Codeblocks)\..\..\BIN\MingW_TDM]]>
</str>
</MASTER_PATH>

--- End code ---

So just try to use the $(CodeBlocks) variable: Set your options, QUIT codeblocks (to save the file) and start it again.

xors3d:
ah i understand...try it...thank you

nicho211:
The portable version will help me to work everywhere. I will try to create my own version.

imianz:
Hi all,
I need some help around the use of environment variables to make codeblocks paths relative (for portable/stand alone purpose) under windows. I have find some difference from stable 10.05 release and the recent nightly builds v7385.
Eg. changing compiler path from absolute to relative as follow

Settings -> Compiler and debugger -> Global compiler -> GNU GCC Compiler -> Toolchain executables:
$(CODEBLOCKS)/MinGW
or
%MY_OWN_ENV%/MinGW

compiler and other things seems to works fine, but in the nightly builds some features stops to work:
autocompletion fails in some cases (eg. windows api function name from windows.h) and I'm not able to open MinGW include files (right click contest menu: open #include file: 'winsock.h') but only local project files.
What is changed? Is there another way to works around this problem?

Thanks in advance.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version