Changeset 413

Show
Ignore:
Timestamp:
09/26/07 15:32:53 (1 year ago)
Author:
bjourne
Message:

Add a section about the inline problem and document the -fgnu89-inline
work around.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gtkimageview/docs/reference/compiling.sgml

    r369 r413  
    2626    </para>   
    2727  </refsect1> 
     28  <refsect2> 
     29    <title>Known problems</title> 
     30    <para> 
     31      During compilation with GCC version 4.2.1 or newer, you may get 
     32      errors similar to the following: 
     33      <literallayout> 
     34        <userinput>$ make</userinput> 
     35        <userinput>...</userinput> 
     36        <userinput>gutils.h:316: warning: C99 inline functions are not supported; using GNU89</userinput> 
     37        <userinput>gutils.h:316: warning: to disable this warning use -fgnu89-inline or the gnu_inline function attribute</userinput> 
     38      </literallayout> 
     39      These warnings are caused by a change in the meaning of 
     40      the <function>inline</function> keyword in recent versions of 
     41      GCC. But GLib has not yet adapted to the change. Fortunately, 
     42      the fix is simple. Invoke configure like this: 
     43      <literallayout> 
     44        <userinput>$ CFLAGS=-fgnu89-inline ./configure</userinput> 
     45      </literallayout> 
     46      Note that the <option>-fgnu89-inline</option> is only recognized 
     47      in GCC 4.2.1 and above. 
     48    </para>   
     49  </refsect2>   
    2850</refentry>