Ethereal-users: Re: [Ethereal-users] Problems building a GIOP plugin

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "W. Borgert" <debacle@xxxxxxxxxx>
Date: Fri, 28 Oct 2005 18:05:13 +0200
Quoting Andy.Ling@xxxxxxxxxxx:
> First I get code generated by omniidl that looks like :-
>
>             if (u_octet4_loop_RawData > 0 and tree) {

Yes, this is a "confused Python with C" error in ethereal_gen.py:2103.
Sorry. Could please one of the people with svn write access fix it?

> The "and" in this causes a syntax error. Adding "#define and &&" to my
> .c file fixes this, but then I get a link error :-
>
> error LNK2001: unresolved external symbol _make_printable_string

Hm, this function was "always there", but I had to declare it
"extern" in packet-giop.h. The function itself is in packet-giop.c.

I have to check with local checkout why the errors didn't occur
there - obviously I didn't send the correct patches. Possibly,
because I worked on two different machines and copied the wrong
file version or something.

Cheers, WB