include path (gcc on win32)

I

Intaek LIM

hi guys.
i just got a library for generating packets.
but, i can't compile the example source because of bad include path.

------------------------------------------------------------------------
D:\libnet\sample>gcc tcp1.c
In file included from tcp1.c:36:
libnet_test.h:12:31: ../include/libnet.h: No such file or directory
In file included from tcp1.c:36:
libnet_test.h:24: parse error before "enet_src"
libnet_test.h:24: warning: data definition has no type or storage class
libnet_test.h:25: parse error before "enet_dst"
libnet_test.h:25: warning: data definition has no type or storage class
libnet_test.h:26: parse error before "ip_src"
libnet_test.h:26: warning: data definition has no type or storage class
------------------------------------------------------------------------

the path of libnet.h is in D:\libnet\include\libnet.h, but gcc can't
compile tcp1.c
how can i solve this?

thanks

lim
 
T

Tim Prince

Intaek LIM said:
hi guys.
i just got a library for generating packets.
but, i can't compile the example source because of bad include path.

------------------------------------------------------------------------
D:\libnet\sample>gcc tcp1.c
In file included from tcp1.c:36:
libnet_test.h:12:31: ../include/libnet.h: No such file or directory
the path of libnet.h is in D:\libnet\include\libnet.h, but gcc can't
compile tcp1.c
how can i solve this?
So use the -I option. Guessing what version of gcc you chose is Off Topic.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,094
Messages
2,570,615
Members
47,230
Latest member
RenaldoDut

Latest Threads

Top