Code::Blocks Forums

User forums => Help => Topic started by: VintigeUK on March 28, 2008, 12:45:45 am

Title: Error E2075 Incorrect command line option
Post by: VintigeUK on March 28, 2008, 12:45:45 am
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
Title: Re: Error E2075 Incorrect command line option
Post by: Jenna on March 28, 2008, 07:37:24 am
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 ?
Title: Re: Error E2075 Incorrect command line option
Post by: VintigeUK on March 28, 2008, 12:35:53 pm
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)
Title: Re: Error E2075 Incorrect command line option
Post by: MortenMacFly on March 28, 2008, 01:00:47 pm
Error E2075: Incorrect command line option: /W3
Hopefully this makes things clear. Just remove that invalid (GCC) option.
Title: Re: Error E2075 Incorrect command line option
Post by: VintigeUK on March 28, 2008, 01:17:57 pm
which is the invalid gcc option?
Thankyou
Title: Re: Error E2075 Incorrect command line option
Post by: ZGitRDun8705 on March 28, 2008, 01:27:10 pm
from the looks of the log file, i believe the /W3 is the invalid option
Title: Re: Error E2075 Incorrect command line option
Post by: VintigeUK on March 28, 2008, 01:57:14 pm
How to i get rid of that w3.
Sorry im a newbie  :lol:
Title: Re: Error E2075 Incorrect command line option
Post by: MortenMacFly on March 28, 2008, 04:18:28 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.
Title: Re: Error E2075 Incorrect command line option
Post by: stephahn on August 30, 2012, 03:23:09 pm
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