Author Topic: unknown option 'v'  (Read 8194 times)

Offline jshand01

  • Single posting newcomer
  • *
  • Posts: 2
unknown option 'v'
« on: March 04, 2012, 04:05:53 am »
Hi ... this must be a really simple thing but I am tearing my hair out.

1) Was using codeblocks for more than 6 months without issue
2) Went and installed some new programs including visual studio express and other C++-related environments
3) Now when I go to run codeblocks I get the following:

I got to create a new project
 > console application
 > choose c++
 > I enter project title
 > Compiler: GNU GCC Compiler
 
I get the error message :   Unknown option 'v'

I have tried deleting and reinstalling codeblocks, I have deleted most of the C++-related programs.

Can anyone help?
Thanks!

Jim


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 6079
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: unknown option 'v'
« Reply #1 on: March 04, 2012, 04:34:35 am »
I get the error message :   Unknown option 'v'
Can you give more details?
See: How do I troubleshoot a compiler problem?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline jshand01

  • Single posting newcomer
  • *
  • Posts: 2
Re: unknown option 'v'
« Reply #2 on: March 04, 2012, 02:28:05 pm »
I am not getting as far as trying to compile anything (although I was able to do so a few months ago) ... I am only getting as far as opening a new project and this error appears when the project is created, before any code is even entered. Thus it seems more like an installation problem. Regards

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: unknown option 'v'
« Reply #3 on: March 04, 2012, 03:13:29 pm »
Check your PATH environment variable if you (by accident) have a conflicting compiler in the PATH.

Next time, please post the platform and version of C::B and the compiler.
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 Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: unknown option 'v'
« Reply #4 on: March 04, 2012, 07:08:06 pm »
2) Went and installed some new programs including visual studio express and other C++-related environments
[...]
 > Compiler: GNU GCC Compiler
Are you using the compiler you think you are using?  GCC (MinGW) - or - MSVC?