[JDEV] building on solaris, porting question

Justin Kirby justin at openaether.org
Wed Dec 11 15:38:31 CST 2002


If I had to guess: terror is a struct, and Forte 7 can't handle
initializer lists as assignments to structs.

The workaround would be:
terror te;
te.v1=502;
te.v2="Unable to resolve hostname";
jutil_error(pkt,te);

This is a bit ugly syntactically, but it will get the job done. (of
course you should change the member variable names to whatever they are
for terror)

Justin

On Wed, 2002-12-11 at 11:24, Nicholas Blair wrote:
> The syntax error on line 228 is what is bothering me.
> Can anyone see what is wrong with this line:
> 	jutil_error(pkt, (terror){502, "Unable to resolve hostname."});
> 
> Any ideas?
> 
> Thanks,
> Nicholas Blair
> nblair at doit.wisc.edu
> 
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev






More information about the JDev mailing list