Menu

-Wall command

2002-12-16
2012-09-26
  • Nobody/Anonymous

    I use the "-Wall" command when I need to use apstring.h, if I wanted to also use apvector or apmatrix, etc, would I need another -Wall command?

     
    • Anonymous

      Anonymous - 2002-12-16

      not to the best of my knowledge...

      Zero Valintine

       
    • Nobody/Anonymous

      I was a little confused by your question, so I used a man on gcc to confirm what I thought I knew about -Wall, it is a command that configures warnings...here is the extract from the man page:

      -Wall
                 All of the above -W options combined.  This enables
                 all the warnings about constructions that some users
                 consider questionable, and that are easy to avoid (or
                 modify to prevent the warning), even in conjunction
                 with macros.

      So I am curious why you need to use -Wall in conjunction with the headers you mention, is there some sort of academic requirement at work here?

      Wayne

       
    • Nobody/Anonymous

      I posted a question about apstring.h not working a few months ago, and someone posted a link to a FAQ on dev and apstring.h. It said to put "-Wall C:\Dev-Cpp\include\ap\apstring.cpp" in my command line box so that I could use apstring. Without it, I would get an error message that said "#include needs "filename" or <filename>".  

       
    • Nobody/Anonymous

      actually i just realized after testing it with and without the -wall command, that i don't need it. but thanks for the help anyways.

       
    • Nobody/Anonymous

      -Wall is quite useful, if you want to write tight code, and avoid subtle miscues.  It can alos drive you crazy at times.

      Wayne

       
      • Anonymous

        Anonymous - 2002-12-17

        question wayne, since you are already crazy does it not bother you as much? just wondering what i had to look forward to...

        :-)

        Zero Valintine

         
    • Nobody/Anonymous

      Thanks Zero for the laugh!

      From all of Us in here.

      Wayne (and ...)

       

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.