Code::Blocks Forums

User forums => Help => Topic started by: LoopyWolf on April 05, 2006, 04:05:23 am

Title: Code::blocks with Borland CC 5.5
Post by: LoopyWolf on April 05, 2006, 04:05:23 am
I've installed Code::Blocks v1.0 and I'm trying to use Borland's free 5.5.1 compiler with it: (on windows)

I used the auto-detect, that didn't work so I just pointed it to the spot.  It found the program, but when I said "build" it said "/W3 unknown option."  - so I found advanced options and took out "/W3" now it says /Gm unknown option.

Additional: I've been able to figure out that the Borland wants - not / but I can't figure out how to tell C::B to use - and not /
Title: Re: Code::blocks with Borland CC 5.5
Post by: killerbot on April 05, 2006, 08:09:27 am
settings menu -> compiler and debugger : look in there, advanced or user additions ...
sorry this is very breef. Could you file a bugreport (at the berios project page) on which switches CB generates now that are incorrect, and what it should be ?? Then I can adjust them.

Cheers,
Lieven
Title: Re: Code::blocks with Borland CC 5.5
Post by: mandrav on April 05, 2006, 08:35:49 am
Could you file a bugreport (at the berios project page) on which switches CB generates now that are incorrect, and what it should be ?? Then I can adjust them.

That's not the problem Lieven. The current project templates only support gcc and msvctk, so the compiler switches are prepared for those compilers. He should just remove all options from "Project->Build options->Compiler" because they refer to a different compiler...
Title: Re: Code::blocks with Borland CC 5.5
Post by: killerbot on April 05, 2006, 08:43:34 am
Ok. I thought it was in the "fixed settings" of our Borland compiler support.
Title: Re: Code::blocks with Borland CC 5.5
Post by: LoopyWolf on April 06, 2006, 05:13:50 am
Update: I removed the compiler options, so that worked.  - They were not under "Compiler Flags" they were listed under "Other options" - mentioned mostly for anyone who reads this thread after me.

Now my problem is that Borland Compiler doesn't like GL.H - but I'm not sure where to seek for help on that :)

Error E2141 d:\Borland\BCC55\include\gl/gl.h 1153: Declaration syntax error
Error E2238 d:\Borland\BCC55\include\gl/gl.h 1154: Multiple declaration for 'WINGDIAPI'
Error E2344 d:\Borland\BCC55\include\gl/gl.h 1153: Earlier declaration of 'WINGDIAPI'
Error E2141 d:\Borland\BCC55\include\gl/gl.h 1154: Declaration syntax error
Error E2238 d:\Borland\BCC55\include\gl/gl.h 1155: Multiple declaration for 'WINGDIAPI'
Error E2344 d:\Borland\BCC55\include\gl/gl.h 1154: Earlier declaration of 'WINGDIAPI'
Error E2141 d:\Borland\BCC55\include\gl/gl.h 1155: Declaration syntax error
Error E2238 d:\Borland\BCC55\include\gl/gl.h 1156: Multiple declaration for 'WINGDIAPI'
Error E2344 d:\Borland\BCC55\include\gl/gl.h 1155: Earlier declaration of 'WINGDIAPI'
Error E2141 d:\Borland\BCC55\include\gl/gl.h 1156: Declaration syntax error
Error E2238 d:\Borland\BCC55\include\gl/gl.h 1157: Multiple declaration for 'WINGDIAPI'
Error E2344 d:\Borland\BCC55\include\gl/gl.h 1156: Earlier declaration of 'WINGDIAPI'
Error E2141 d:\Borland\BCC55\include\gl/gl.h 1157: Declaration syntax error
Error E2238 d:\Borland\BCC55\include\gl/gl.h 1158: Multiple declaration for 'WINGDIAPI'
Error E2344 d:\Borland\BCC55\include\gl/gl.h 1157: Earlier declaration of 'WINGDIAPI'
Error E2141 d:\Borland\BCC55\include\gl/gl.h 1158: Declaration syntax error
Error E2238 d:\Borland\BCC55\include\gl/gl.h 1159: Multiple declaration for 'WINGDIAPI'
Error E2344 d:\Borland\BCC55\include\gl/gl.h 1158: Earlier declaration of 'WINGDIAPI'
Error E2141 d:\Borland\BCC55\include\gl/gl.h 1159: Declaration syntax error
Error E2238 d:\Borland\BCC55\include\gl/gl.h 1160: Multiple declaration for 'WINGDIAPI'
Error E2344 d:\Borland\BCC55\include\gl/gl.h 1159: Earlier declaration of 'WINGDIAPI'
Error E2141 d:\Borland\BCC55\include\gl/gl.h 1160: Declaration syntax error
Error E2238 d:\Borland\BCC55\include\gl/gl.h 1161: Multiple declaration for 'WINGDIAPI'
Error E2344 d:\Borland\BCC55\include\gl/gl.h 1160: Earlier declaration of 'WINGDIAPI'
Error E2141 d:\Borland\BCC55\include\gl/gl.h 1161: Declaration syntax error
Error E2228 d:\Borland\BCC55\include\gl/gl.h 1161: Too many error or warning messages
Title: Re: Code::blocks with Borland CC 5.5
Post by: LoopyWolf on April 06, 2006, 05:38:09 am
As a matter of interest, I switched compilers to VCC and it threw comparable errors:

missing ; before void, unknown type WINDAPI and unexpected end-of-file.

We also noted that a LOT of the files in the project said "missing blank line at end" and some other things that smelled vaguely of UNIX.  Is there by any chance, some file-based options for code::blocks that affect how it sees and reads files (as in CR vs. CR-LF etc.)?