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/

Reply via email to