I tried to compile the files in basic_dump_ex using cygwin :
/cygdrive/c/WpdPack/Examples-pcap/basic_dump_ex
$make
but I got this :
In some articles , it is stated that deleting -mno-cygwin , solve the problem . However I cannot find it this -mno-cygwin and I do not know if it will solve the problem once deleted
I am still stuck . What should I do ?
Moderator's Comments:
Please use code tags as required by forum rules!
Last edited by RudiC; 04-06-2016 at 10:21 AM..
Reason: Added code tags.
Hi All,
I tried to compile a C program but i am getting error while Linking . it says Undefined reference to ' ' (here it gives a method name which is defined Globally ).
Can any body tell the resaon and remedy for the same . Iam stuck up here .
Thanks (3 Replies)
Hi,
I have installed "Freetype2" library in my SuSe Linux 9.3 version system. When Iam compiling a program, I am getting these below errors.
Undefined reference to "FT_Init_FreeType"
Undefined reference to "FT_Load_Char"
Please show me a solution? Thank you.
With regards,
Chandramouli (1 Reply)
Hello,
I am trying to compile a C program from Cygwin and it gives ld: not found -user32 error .. I searched for library libuser32.so and was not able locate it..
When i create only object file using gcc -c option it gets created successfully .. When i use gcc -o option , executable is not... (4 Replies)
Hi,
I am trying to execute a Shell script file.
The file has the following commands.
#Return today's log file
LOG_DATE=`date +%d_%b_%Y`.log
echo $LOG_DATE
#Return last modified date of the Log File
FILE_MOD_DATE=`date -r $LOG_DATE`
echo $FILE_MOD_DATE
If I execute the... (6 Replies)
Hello everyone. I just recently installed Cygwin and I am running it under Windows 7.
My problem is that I cannot seem to compile any C++ code with g++. I've tried to compile C Code using gcc and that works just fine. But Whenever I try to compile some C++ code, g++ throws a whole bunch of... (6 Replies)
I am using gcc to compile c objects on solaris 5.10 and hit the following error messages:
/usr/include/sys/vfs.h:323: error: syntax error before "statvfs64_t"
/usr/include/sys/vfs.h:334: error: syntax error before "statvfs64_t"
gmake: *** Error 1
The c program files were copied over from... (3 Replies)
I'm using cygwin on win7, What I would like to do is something like this:
cygstart cygwin tail -f /foo/test.log | perl -pe 's/error/\e
I know I can start a new instance using either of these:
mintty -e ...
cygstart tail ...
But neither of those open in ANSI mode, so I can't do... (0 Replies)
Hi guys i came across an error while compiling a c file in solaris using gcc. the error is,
Undefined first referenced
symbol in file
bind /var/tmp//ccAr8qAh.o
accept ... (4 Replies)
Hi
I am trying to compile a binary file (CASPER: Context-Aware Scheme for Paired-End Read) but I am getting the following error:
user@user-OptiPlex-780 make
g++ -O2 -Wall -fopenmp -c -o merge.o merge.c
merge.c:8:35: fatal error: boost/unordered_map.hpp: No such... (2 Replies)
Discussion started by: Xterra
2 Replies
LEARN ABOUT MOJAVE
pcap_open_dead
PCAP_OPEN_DEAD(3PCAP)PCAP_OPEN_DEAD(3PCAP)NAME
pcap_open_dead, pcap_open_dead_with_tstamp_precision - open a fake pcap_t for compiling filters or opening a capture for output
SYNOPSIS
#include <pcap/pcap.h>
pcap_t *pcap_open_dead(int linktype, int snaplen);
pcap_t *pcap_open_dead_with_tstamp_precision(int linktype, int snaplen,
u_int precision);
DESCRIPTION
pcap_open_dead() and pcap_open_dead_with_tstamp_precision() are used for creating a pcap_t structure to use when calling the other func-
tions in libpcap. It is typically used when just using libpcap for compiling BPF code; it can also be used if using pcap_dump_open(),
pcap_dump(), and pcap_dump_close() to write a savefile if there is no pcap_t that supplies the packets to be written.
linktype specifies the link-layer type for the pcap_t.
snaplen specifies the snapshot length for the pcap_t.
When pcap_open_dead_with_tstamp_precision(), is used to create a pcap_t for use with pcap_dump_open(), precision specifies the time stamp
precision for packets; PCAP_TSTAMP_PRECISION_MICRO should be specified if the packets to be written have time stamps in seconds and
microseconds, and PCAP_TSTAMP_PRECISION_NANO should be specified if the packets to be written have time stamps in seconds and nanoseconds.
Its value does not affect pcap_compile().
SEE ALSO pcap(3PCAP), pcap_compile(3PCAP), pcap_dump_open(3PCAP), pcap-linktype(7)
3 January 2014 PCAP_OPEN_DEAD(3PCAP)