netsnmp getopt.h clashes with systemprovided getopt.h

This is a discussion on netsnmp getopt.h clashes with systemprovided getopt.h within the SNMP Coders forums, part of the Networking and Network Related category; --===============1297091104== Content-Type: multipart/alternative; boundary="----=_Part_13487_928875.1175150035240" ------=_Part_13487_928875.1175150035240 Content-Type: text/plain; charset=ISO-8859-1; ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-29-2007
utpala m
 
Posts: n/a
Default netsnmp getopt.h clashes with systemprovided getopt.h

--===============1297091104==
Content-Type: multipart/alternative;
boundary="----=_Part_13487_928875.1175150035240"

------=_Part_13487_928875.1175150035240
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi ,

I am including "unistd.h " in my code which inturn includes getopt.h.
getopt.h is available in two locations
/usr/include/
/usr/local/include/netsnmp/library/ (when netsnmp is installed on the
system)

To include the net-snmp header files "/usr/local/include/netsnmp/library/"
is also specifed in the include path.
as a result compiler picks up getopt.h from
"/usr/local/include/netsnmp/library/" instead of "/usr/include/" while
including unistd.h
How do I go about including getopt.h from /usr/include/ while using system
provided header files like unistd.h

Thanks and Regards
-Utpala

------=_Part_13487_928875.1175150035240
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<span class="gmail_quote"></span><span class="gmail_quote"></span>Hi , <br><br>
&nbsp;I am including&nbsp; &quot;unistd.h
&quot; in my code which inturn includes getopt.h.<br>&nbsp;getopt.h is available in two locations <br>/usr/include/<br>/usr/local/include/netsnmp/library/ (when netsnmp is installed on the system)
<br><br>To include the net-snmp header files &quot;/usr/local/include/netsnmp/library/&quot;&nbsp; is also specifed in the include path.<br>as a result compiler picks up getopt.h from &quot;/usr/local/include/netsnmp/library/&quot; instead of &quot;/usr/include/&quot; while including
unistd.h<br>How do I go about including getopt.h from /usr/include/ while using system provided header files like unistd.h<br><br>Thanks and Regards<br><span class="sg"><span>-Utpala<br><br>
</span>
</span>

------=_Part_13487_928875.1175150035240--


--===============1297091104==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
--===============1297091104==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders

--===============1297091104==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:52 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0