Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: glenc on January 03, 2007, 06:58:49 pm

Title: Changing the installation directory for Borland Compiler
Post by: glenc on January 03, 2007, 06:58:49 pm
I have changed the installation directory for the Borland C++ compiler to
C:\Progam Files\Borland\CBuilder6 in Settings->Compiler and Debugger->Programs but the build doesn't recognize it.
The result is

ilink32.exe -q -aa  -v -Tpe -aa  -LC:\wxWidgets-2.6.3\lib\bcc_lib -LC:\Borland\BCC55\lib  c0w32 obj\Debug\main.obj obj\Debug\app.obj ,bin\Debug\test.exe,,wxmsw26d_core.lib wxbase26d.lib wxpngd.lib wxzlibd.lib import32.lib cw32mti.lib ole2w32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comctl32.lib wsock32.lib odbc32.lib ,,

which gives me link errors because libs are not found. The -L parameter points to the default path.

What am I doing wrong?
Title: Re: Changing the installation directory for Borland Compiler
Post by: stahta01 on January 03, 2007, 07:07:25 pm
Did you also updated Code::Blocks
Settings->Compiler and Debugger->Directories
Compiler
Linker
Resource Compiler

Tim S
Title: Re: Changing the installation directory for Borland Compiler
Post by: glenc on January 03, 2007, 08:24:15 pm
Yes, they all point to the correct programs. Another thought - if I use the default Borland compiler, my project shouldn't compile because the path C:\Borland\BC55 doesn't exist, and yet it does compile. It is obviously using my $PATH settings. Is this correct?
By the way, I'm using the Jan. 1 CodeBlocks build.
Title: Re: Changing the installation directory for Borland Compiler
Post by: stahta01 on January 03, 2007, 08:40:19 pm
Have you check for bad info in the Borland file bcc32.cfg ?
Most likely under C:\Progam Files\Borland\CBuilder6 .
Tim S
Title: Re: Changing the installation directory for Borland Compiler
Post by: stahta01 on January 03, 2007, 08:45:54 pm
Does your PATH variable contain the old C:\Borland\BCC55 or C:\BCC55 in it?
Is so remove it and test again.

As a last resort, Open the project file .cbp file in a text editor and look for BCC55 in it.
If yes, you have project settings that need updating.

Note: after changing the PATH variable, I always exit and re-start codeblocks; I am not sure if that is needed but I do it.
Tim S
Title: Re: Changing the installation directory for Borland Compiler
Post by: glenc on January 03, 2007, 09:30:08 pm
Have you check for bad info in the Borland file bcc32.cfg ?

All paths are valid.

Does your PATH variable contain the old C:\Borland\BCC55 or C:\BCC55 in it?

No. There has never been a BCC55 directory on this system, but I checked anyway, and it doesn't exist.

Where is the parameter '-IC:\Borland\BCC55\include' coming from when all references to it have been removed from the Settings?
Title: Re: Changing the installation directory for Borland Compiler
Post by: stahta01 on January 03, 2007, 10:02:46 pm
As a last resort, Open the project file .cbp file in a text editor and look for BCC55 in it.
If yes, you have project settings that need updating.

Did you see my last edit to message?
Tim S
Title: Re: Changing the installation directory for Borland Compiler
Post by: glenc on January 03, 2007, 10:18:51 pm
As a last resort, Open the project file .cbp file in a text editor and look for BCC55 in it.
If yes, you have project settings that need updating.


Sorry, I did see it but neglected to do it.

There is a 'compiler = bcc' statement, but nothing referencing BCC55.

I deleted the .cbp file and saved the project. The new .cbp file has the same statement.
Title: Re: Changing the installation directory for Borland Compiler
Post by: stahta01 on January 03, 2007, 10:25:38 pm
Shutdown codeblocks before doing this.

Check the .conf file for BCC55
The file defaults to being in this folder %appdata%\codeblocks

named default.conf normally
Tim S
Title: Re: Changing the installation directory for Borland Compiler
Post by: glenc on January 03, 2007, 10:36:19 pm
Check the .conf file for BCC55
The file defaults to being in this folder %appdata%\codeblocks

Checked 'default.conf' file, found

<LIBRARY_DIRS>
   <str>
      <![CDATA[C:\Borland\BCC55\lib;]]>
   </str>
</LIBRARY_DIRS>
Title: Re: Changing the installation directory for Borland Compiler
Post by: stahta01 on January 03, 2007, 10:38:55 pm
Verify again this
Settings->Compiler and Debugger->Directories
Linker

MAKE SURE: The correct compiler is selected.

Tim S
Title: Re: Changing the installation directory for Borland Compiler
Post by: glenc on January 03, 2007, 11:06:57 pm
You're right, that's one directory I failed to change. Now it looks much better.

ilink32.exe -q -aa  -v -Tpe -aa C:\Program Files\Borland\CBuilder6\Include  -LC:\wxWidgets-2.6.3\lib\bcc_lib -L"C:\Program Files\Borland\CBuilder6\Lib" -L"C:\Program Files\Borland\CBuilder6\Lib\Psdk"  c0w32 obj\Debug\main.obj obj\Debug\app.obj ,bin\Debug\test1.exe,,wxmsw26d_core.lib wxbase26d.lib wxpngd.lib wxzlibd.lib import32.lib cw32mti.lib ole2w32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comctl32.lib wsock32.lib odbc32.lib "C:\Program Files\Borland\CBuilder6\Lib\Psdk\kernel32.lib" ,,
Fatal: Unable to open file 'PROGRAM.OBJ'

I now have another problem to work on before I ask for any more help and embarrass myself.

Thank you very much.