Menu

-ansi command line switch

2008-08-26
2012-09-26
  • Richard Sanders

    Richard Sanders - 2008-08-26

    Hi
    I am using Dev-C 4.9.9.2.

    In the compiler options under the settings tab. For "C compiler" I set "Support all ANSI standard C programs" to yes. I later set this to no.

    The problem is that setting this option to no does not stop -ansi from being put in the make file.
    This is a bug with Dev-C.

    I have managed to clear this the project *.dev file by editing the CompilerSettings to read:

    CompilerSettings=0000000000000000000000.

    The other option would be to delete the *.dev file and create the project again.

    I hope this will help someone else.

     
    • cpns

      cpns - 2008-08-26

      No, it is not a bug. You have simply misunderstood what is happening.

      When you create a project, it 'inherits' the settings under Tools->Compiler options->C Compiler, but after creation, the project settings are determined by Project->Project options. That is where you need to clear the setting.

      The Tools->Compiler options settings are only applied to at project creation, and to builds that do not use the project tool (not recommended).

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.