While I agree that nowadays a common reserved c++ word shouldn&#39;t be in a header file, an easy enough workaround is to simply:<br><br>extern &quot;C&quot; {<br>#include &lt;evdns.h&gt;<br>#include &lt;...&gt;<br>}<br><br>

which is my habit when pulling in any C files from C++;<br>It has the added benefit of ensuring that the function names don&#39;t get mangled if you&#39;re doing some crazy linking or some such.<br><br><div><span class="gmail_quote">
On 10/2/07, <b class="gmail_sendername">Roger Clark</b> &lt;<a href="mailto:rogerclark@gmail.com">rogerclark@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
At least on my system, gcc complains about &#39;class&#39; being used in these<br>places in evdns.h:<br><br>struct evdns_server_question {<br>&nbsp;&nbsp;&nbsp;&nbsp;int type;<br>&nbsp;&nbsp;&nbsp;&nbsp;int class;<br>&nbsp;&nbsp;&nbsp;&nbsp;char name[1];<br>};<br><br>and<br><br>int evdns_server_request_add_reply(struct evdns_server_request *req,
<br>int section, const char *name, int type, int class, int ttl, int<br>datalen, int is_name, const char *data);<br><br>It&#39;s probably a good idea to be on the safe side and change these<br>identifiers to something else. I&#39;m sure someone else will run into the
<br>problem eventually.<br><br>--<br>Roger Clark<br><a href="mailto:rogerclark@gmail.com">rogerclark@gmail.com</a><br>_______________________________________________<br>Libevent-users mailing list<br><a href="mailto:Libevent-users@monkey.org">
Libevent-users@monkey.org</a><br><a href="http://monkey.org/mailman/listinfo/libevent-users">http://monkey.org/mailman/listinfo/libevent-users</a><br></blockquote></div><br>