01-29-2013 06:06 PM
I'm adapting some code to run in LabWindows/CVI.
I'm getting a Project link error, Undefined symobl _inet_addr@4 referenced in "myFile.c"
I would like to be able to use the inet_addr function. I can't find a CVI equivalent.
An excerpt from a knowledge base article titled
"Availability of Interface to Win32 Application Programmatic Interface (API) Functions" says:
"LabWindows/CVI automatically loads some libraries that contain commonly used Win32 API functions. If the LabWindows/CVI linker reports Win32 API functions as unresolved references, you must add import libraries to your project."
We're running LabWindows/CVI 2009 Full Development system.
What do I have to do to get access to the inet_addr(...) function?
Thanks,
Kirk
01-30-2013 02:03 AM
Hi,
i think you need to add WSock32.lib import library to your project, i have this in C:\Program Files\National Instruments\CVI2012\sdk\lib\msvc
01-30-2013 12:44 PM
In this folder:
C:\Program Files\National Instruments\CVI2009\sdk\lib\msvc
I have the following .lib files:
AdvAPI32.lib
advapi32_lvrt.lib
Gdi32.lib
GlAux.lib
GlU32.lib
Kernel32.lib
kernel32_lvrt.lib
Ole32.lib
OleAut32.lib
OpenGL32.lib
User32.lib
user32_lvrt.lib
Uuid.lib
Version.lib
version_lvrt.lib
WinMM.lib
I'm not finding Wsock32.lib anywhere??
Kirk
01-31-2013 01:21 AM
Seems to me that you do not have installed labwindows/cvi windows sdk support, this must be manualy selected during "custom" Labwindows/CVI instalation
(it is not installed with typical/automatic instalation process)