[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gimp-developer
Subject:    [Gimp-developer] Blah..
From:       "Jason Maskell" <backov667 () home ! com>
Date:       2001-03-26 16:58:35
[Download RAW message or body]

Still more compilation problems with Win32.. I got the recent source =
from Tor, and that seems to be fine, but now I am having trouble with =
the "intl" directory..

finddomain.c
gettextP.h(51) : error C2054: expected '(' to follow 'inline'
gettextP.h(52) : error C2082: redefinition of formal parameter 'SWAP'
gettextP.h(52) : error C2143: syntax error : missing ';' before 'type'
gettextP.h(52) : error C2085: 'i' : not in formal parameter list
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

Source in question is:

#ifdef _LIBC
# include <byteswap.h>
# define SWAP(i) bswap_32 (i)
#else
static nls_uint32 SWAP PARAMS ((nls_uint32 i));

static inline nls_uint32
// Starts choking right here
SWAP (i)
     nls_uint32 i;
{
  return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> =
24);
}
#endif


All I really want to do is get it compiling so I can fix the batch =
support.. Looking in the source, it looks as if this is only used if =
LIBC is not linked in. Would the solution be to include LIBC? If so, =
how? (I am not very makefile savvy)

Cheers,
Jason

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4207.2601" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Still more compilation problems with Win32.. I got 
the recent source from Tor, and that seems to be fine, but now I am having 
trouble with the "intl" directory..</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>finddomain.c<BR>gettextP.h(51) : error C2054: 
expected '(' to follow 'inline'<BR>gettextP.h(52) : error C2082: redefinition of 
formal parameter 'SWAP'<BR>gettextP.h(52) : error C2143: syntax error : missing 
';' before 'type'<BR>gettextP.h(52) : error C2085: 'i' : not in formal parameter 
list<BR>NMAKE : fatal error U1077: 'cl' : return code 
'0x2'<BR>Stop.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Source in question is:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>#ifdef _LIBC<BR># include &lt;byteswap.h&gt;<BR># 
define SWAP(i) bswap_32 (i)<BR>#else<BR>static nls_uint32 SWAP PARAMS 
((nls_uint32 i));</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>static inline nls_uint32<BR>// Starts choking right 
here</FONT></DIV>
<DIV><FONT face=Arial size=2>SWAP (i)<BR>&nbsp;&nbsp;&nbsp;&nbsp; nls_uint32 
i;<BR>{<BR>&nbsp; return (i &lt;&lt; 24) | ((i &amp; 0xff00) &lt;&lt; 8) | ((i 
&gt;&gt; 8) &amp; 0xff00) | (i &gt;&gt; 24);<BR>}<BR>#endif<BR></DIV></FONT>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>All I really want to do is get it compiling so I 
can fix the batch support.. Looking in the source, it looks as if this is only 
used if LIBC is not linked in. Would the solution be to include LIBC? If so, 
how? (I am not very makefile savvy)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Cheers,</FONT></DIV>
<DIV><FONT face=Arial size=2>Jason</FONT></DIV></BODY></HTML>

_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.xcf.berkeley.edu
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic