Author Topic: Error E2075 Incorrect command line option  (Read 13544 times)

Offline VintigeUK

  • Single posting newcomer
  • *
  • Posts: 4
Error E2075 Incorrect command line option
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Error E2075 Incorrect command line option
« Reply #1 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 ?

Offline VintigeUK

  • Single posting newcomer
  • *
  • Posts: 4
Re: Error E2075 Incorrect command line option
« Reply #2 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)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Error E2075 Incorrect command line option
« Reply #3 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline VintigeUK

  • Single posting newcomer
  • *
  • Posts: 4
Re: Error E2075 Incorrect command line option
« Reply #4 on: March 28, 2008, 01:17:57 pm »
which is the invalid gcc option?
Thankyou

Offline ZGitRDun8705

  • Single posting newcomer
  • *
  • Posts: 4
Re: Error E2075 Incorrect command line option
« Reply #5 on: March 28, 2008, 01:27:10 pm »
from the looks of the log file, i believe the /W3 is the invalid option

Offline VintigeUK

  • Single posting newcomer
  • *
  • Posts: 4
Re: Error E2075 Incorrect command line option
« Reply #6 on: March 28, 2008, 01:57:14 pm »
How to i get rid of that w3.
Sorry im a newbie  :lol:

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Error E2075 Incorrect command line option
« Reply #7 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

stephahn

  • Guest
Re: Error E2075 Incorrect command line option
« Reply #8 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