News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Error E2075 Incorrect command line option

Started by VintigeUK, March 28, 2008, 12:45:45 AM

Previous topic - Next topic

VintigeUK

Hello i installed codeblocks a while ago with the borland compiler and it worked fine.  But ive come back on it now and im getting that error when i try to build
Thankyou for your help

Jenna

Its an error of the Borland compiler!
Turn on full commandline logging (Settings -> Compiler and Debugger -> Tab "Other" -> Compiler logging = "Full command line"), rebuild and check the syntax in the Build Log.

If you know what's wrong, you can start investigating where it comes from: global compiler settings, project specific settings, automatically set by C::B or manually set by you ?

VintigeUK

Cheers this is what came up in the build log


Project   : 01.HelloWorld
Compiler  : Borland C++ Compiler 5.5 (called directly)
Directory : C:\Users\ollystac\Desktop\irrlicht\examples\01.HelloWorld\
--------------------------------------------------------------------------------
Switching to target: Debug
bcc32.exe   /DWIN32 /D_DEBUG /D_CONSOLE /W3 /O0 /MLd    -I"..\..\include"  -I"C:\Borland\BCC55\include" -I"\home\mike\irrlicht\include" -I"C:\Users\ollystac\Desktop\irrlicht\include" -I"C:\Borland\BCC55\Include\Gl" -I"C:\Borland\BCC55\Include\Rw" -I"C:\Borland\BCC55\Include\Sys" -oDebug\main.obj -c main.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Error E2075: Incorrect command line option: /W3
Process terminated with status 1 (0 minutes, 0 seconds)

MortenMacFly

Quote from: VintigeUK on March 28, 2008, 12:35:53 PM
Error E2075: Incorrect command line option: /W3
Hopefully this makes things clear. Just remove that invalid (GCC) option.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

VintigeUK


ZGitRDun8705

from the looks of the log file, i believe the /W3 is the invalid option

VintigeUK

How to i get rid of that w3.
Sorry im a newbie  :lol:

MortenMacFly

Quote from: VintigeUK on March 28, 2008, 01:57:14 PM
How to i get rid of that w3.
Project's build options -> Tab "Compiler settings" -> Either tab "Compiler flags" (this would be an error in C::B then ;-)) or tab "Other options". Notice that both can be either at project- or at target level.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

stephahn

hello

I have the like-problem with the status : Incorrect command line option: -Wall.
I try to do what jens says but i dont find the error.
Now i dont know what to do.
Thanks