[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libnet
Subject:    C++/libnet Question
From:       "Blue R" <blue () campus ! ie>
Date:       2002-01-24 20:00:41
[Download RAW message or body]

Hi, i'm not sure if this went throught the first time </dam_web_mail> :) 
	I have a quick question. I have a small C program here thats compiling with libnet \
perfectly using the following:

gcc -Wall `libnet-config --defines` send_ip.c -o send_ip `libnet-config --libs` -lnet

	Since my application is a C++ one I tried getting this code to compile as C++:

gcc -Wall `libnet-config --defines` send_ip.cpp -o send_ip `libnet-config --libs` 

	But I get the following errors:

tmp/ccoF0eqA.o(.text+0x31): undefined reference to `libnet_name_resolve(unsigned char \
                *, unsigned short)'
/tmp/ccoF0eqA.o(.text+0x52): undefined reference to `libnet_error(int, char *,...)'

	..etc etc. I am wondering why it compiles as a .c and not as .cpp and how I can get \
this working ? Thanks a million for your help so far :)

B.

-- 

_______________________________________________
For the largest free email available in Ireland (25MB)
and File Storage space (20MB), 
visit http://www.campus.ie























Powered by Outblaze

---------------------------------------------------------------------
To unsubscribe, e-mail: libnet-unsubscribe@securityfocus.com
For additional commands, e-mail: libnet-help@securityfocus.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic