[prev in list] [next in list] [prev in thread] [next in thread]
List: libnet
Subject: libnet/cpp problem
From: "Blue R" <blue () campus ! ie>
Date: 2002-01-24 19:23:28
[Download RAW message or body]
Hi,
I posted a message earlier and got great help from people on the list but I have a \
further question as I'm still having some trouble. I have a small C program working \
and it compiles without errors with the following command:
gcc -Wall `libnet-config --defines` send_ip.c -o send_ip `libnet-config --libs`
But since I am using Qt I am writing my application in C++. When i try to compile \
this same code as a C++ file with the same command:
gcc -Wall `libnet-config --defines` send_ip.cpp -o send_ip `libnet-config --libs`
I get the following errors:
/tmp/ccLcpRbi.o(.text+0x31): undefined reference to `libnet_name_resolve(unsigned \
char *, unsigned short)'
/tmp/ccLcpRbi.o(.text+0x52): undefined reference to `libnet_error(int, char *,...)'
..etc etc. I am wondering why there is such a big difference in trying to get it to \
compile from a .c to a .cpp ? And how should I do this ? Thanks for all 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