LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

inet_addr(...) function

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

0 Kudos
Message 1 of 4
(3,490 Views)

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

0 Kudos
Message 2 of 4
(3,480 Views)

 

 

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

0 Kudos
Message 3 of 4
(3,468 Views)

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)

0 Kudos
Message 4 of 4
(3,463 Views)