bloodshed and winpcap

This is a discussion on bloodshed and winpcap within the C++ Programming forums, part of the General Programming Boards category; hi, im new to winpcap, and this is the first library i am using that did not come with bloodshed. ...

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    63

    bloodshed and winpcap

    hi, im new to winpcap, and this is the first library i am using that did not come with bloodshed. im certain its something im doing wrong, but i keep getting a file not found error. ive installed winpcap using the installer, and then added #include <pcap.h> to my code. it then says it cant find it, but for some reason its looking in my save directory, which is My Documents\c++
    i know its not in there, so i did a search on my entired computer and it couldnt find pcap.h.
    i then did one for *pcap* and it didnt show up any header files, just a .dll and a few executables.

    Again, im sure im in the wrong, and ive read tutorials that were compiled with bloodshed, just not any setup instructions for winpcap.

    if anyone knows what i need to fix, any help would be much appreciated.

    heres what im trying to run, its just hello world with an extra include
    Code:
    #include <iostream>
    #include <pcap.h>
    
    using namespace std;
    
    int main ()
    {
             cout << "Hello World";
             return 0;
    }
    Last edited by *DEAD*; 07-31-2006 at 05:48 AM.

  2. #2
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,403
    Code:
    #include "pcap.h"
    With double quotes, that is.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  3. #3
    Registered User
    Join Date
    Jul 2006
    Posts
    63
    woops, lol it actually was with " " in my program, i just stuffed it up when i made the hello world version. still doesnt work tho. any other ideas. so far, ive only double clicked the installer for winpcap, i havent set anything else up. i also cant find the pcap.h

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,403
    Maybe you installed pcap to a folder that is not being seen by the compiler? Check where is pcap installed and see if the header file is under dev-c++ include folder list.
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    Registered User
    Join Date
    Jul 2006
    Posts
    63
    i found the problem, there were no libraries. i needed the developers pack, which wasnt on the main download site. thx mario for taking the time to reply tho.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21