Thread: Some Error messages I don't understand...

  1. #1
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259

    Some warnings I don't understand...

    I have some code which compiles fine on my computer with out any warnings, but on a friend of mines it compiles but I get a lot of warnings, how ever it still works as it should, the warnings I get are :
    Code:
    /usr/include/ppc/ansi.h:2:3: warning: style of line directive is a GCC extension
    In file included from /usr/include/machine/ansi.h:33,
     from /usr/include/sys/types.h:74,
      from /usr/include/stdio.h:64,
       from Talking.c:2:
    and
    Code:
    Talking.c:4:3: warning: style of line directive is a GCC extension
    and
    /usr/include/ppc/types.h:76: warning: ISO C89 does not support `long long'
    I compile this with gcc on both comps with -ansi -pedantic -Wall
    Last edited by Shogun; 08-05-2004 at 02:56 PM.
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

  2. #2
    Registered User linuxdude's Avatar
    Join Date
    Mar 2003
    Location
    Louisiana
    Posts
    926
    i dont' know about the style of line thing. I think I got it once but I don't remember what it was. I don know that ISOC89 does not support long long. That is a compiler extension.

  3. #3
    Wannabe Coding God
    Join Date
    Mar 2003
    Posts
    259
    I read this and I don't quite get how to make the warning go away, since I haven't used any lon g longs...
    They say that if you play a Windows Install CD backwords, you hear satanic messages. That's nothing; play it forward and it installs Windows.

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,218
    The problem is that it's #including the long long definition from a header file and it's being compiled along with your program. To get rid of the warning don't compile with -ansi or -pedantic. There might possible be a newer version of glibc out there that doesn't cause the warnings.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I could not understand this question
    By enggabhinandan in forum C Programming
    Replies: 3
    Last Post: 10-22-2006, 05:17 AM
  2. Replies: 21
    Last Post: 10-14-2006, 04:38 AM
  3. Need software to help to understand C source code
    By Kincider in forum C++ Programming
    Replies: 1
    Last Post: 09-28-2006, 09:44 PM
  4. Replies: 13
    Last Post: 08-24-2006, 12:22 AM
  5. Need help to understand x["AC"] in the following code
    By jcourcel in forum C Programming
    Replies: 11
    Last Post: 06-06-2006, 01:13 AM