Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I develop the program using libnet, and the platform is windows xp.
The file of libnet.lib is added to my project, and libnet.dll is copied to c:\windows\system32\, and libnet.h file is included.

when building project, error is listed:
The symbol "libnet_name_resolve" is undefined

who can help me?
Posted

How did you add libnet.lib to your project ?
 
Share this answer
 
I use vc6 as my develop environment.

First, I enter menu of "Tools"-"Options"-"Directories", and add the directory iucluding libnet.lib to "Library files".

Second, enter menu of "Project"-"Settings"-"Link", and then add "libnet.lib" to
"Object/library modules".
 
Share this answer
 
Comments
ShilpiP 17-Dec-10 3:58am    
Do one thing go to
Projects->Properties->Linker->General
Aditional Library Directory "Path of library"
Projects->Properties->Linker->Input
Addition Dependency "xyz.lib"
Projects->Properties->c/c++->General
Additional Include Directory "Path of include directory .h file"
The problem persists!!! who can help me?
 
Share this answer
 
Comments
ShilpiP 24-Dec-10 0:57am    
Why did you always write question in a answer column?? Some one down vote you for this.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900