OK, i've moved #include <pcap.h to the bottm, and I'm still getting those 
errors. any ideas?


Thanks,
_|_|_|_|_|  _|        _|_|_|_|            
    _|      _|_|_|    _|          _|_|_|  
    _|      _|    _|  _|_|_|    _|        
    _|      _|    _|  _|        _|        
    _|      _|    _|  _|_|_|_|    _|_|_|  
Visit TDS for quality software and website production
http://tysdomain.com
msn: [EMAIL PROTECTED]
aim: st8amnd2005
skype: st8amnd127
  ----- Original Message ----- 
  From: Thomas Hruska 
  To: c-prog@yahoogroups.com 
  Sent: Saturday, September 06, 2008 11:57 AM
  Subject: Re: [c-prog] help with some code--working with libpcap


  Tyler Littlefield wrote:
  > Hello list,
  > I've got a quick question:
  > I'm trying to compile the following code, and am getting these errors; any 
help would be awesome.
  > #include <pcap.h>
  > #include <unistd.h>
  > #include <sys/socket.h>
  > #include <sys/types.h>
  > #include <netinet/in.h>
  > #include <arpa/inet.h>
  > 
  > #include <iostream>
  > 
  > //errors:
  > dev.cpp:39: error: â?~tcp_seqâ?T does not name a type
  > dev.cpp:40: error: â?~tcp_seqâ?T does not name a type 
  > I'm not really sure what to use here, as this is what the tutorial told me 
to do.

  I've never messed with libpcap (it is one of the few interesting 
  projects out there), but the error message means that the struct 
  'tcp_seq' hasn't been defined anywhere.

  You are defining a lot of structures. Seems like something fairly 
  common for your particular genre of program. You might want to see if 
  you can find a header file that already does all that.

  Also, the order of the #include files is suspect. Standard library 
  headers should almost always come first in the order unless you really 
  truly know what you are doing. Third-party library headers should 
  almost always come last.

  -- 
  Thomas Hruska
  CubicleSoft President
  Ph: 517-803-4197

  *NEW* MyTaskFocus 1.1
  Get on task. Stay on task.

  http://www.CubicleSoft.com/MyTaskFocus/



   

  __________ NOD32 3422 (20080906) Information __________

  This message was checked by NOD32 antivirus system.
  http://www.eset.com


[Non-text portions of this message have been removed]

Reply via email to