Linking Error #3

  • Follow


Hi all,

        I am using vxworks 5.4 with Tornado 2.1.2 on windows 2000. I
have written simple client-server program. When i compile, i am
getting error of undefined reference to socket(), bind(),sendto(),
recvfrom(). I guess it is linking error(may be sockLib library not
linked), but i am not sure. Is it really linking error? If it is
linking error, which library to link? Where it is stored(I know it can
be linked by giving path in LIBS macro of project facility, but i want
to know the path of that libary/archieve)?

   Thanks in advance.

Regards,
Vinaykumar
0
Reply winay.l (5) 2/1/2010 5:31:41 PM

Hello,

i never linked a library to a vxw Binary.
maybe you have a compile error since you miss some include (#include ...) 
for the socket (...) functions.

the libraries (runtime) should already be linked into vxworks itself and the 
linking process is part of the loading process. when you load your app
code to vxworks, it will resolve external references.
so there is a chance that you see a LOAD error due to unresolved externals 
(at the target), but never a LINK error (at the host).

so i guess you should check the include statements.

mario.

"vinay kumar" <winay.l@gmail.com> schrieb im Newsbeitrag 
news:aa0533da-ad8e-4d0c-a4cd-095e2960cc5a@o16g2000prh.googlegroups.com...
> Hi all,
>
>        I am using vxworks 5.4 with Tornado 2.1.2 on windows 2000. I
> have written simple client-server program. When i compile, i am
> getting error of undefined reference to socket(), bind(),sendto(),
> recvfrom(). I guess it is linking error(may be sockLib library not
> linked), but i am not sure. Is it really linking error? If it is
> linking error, which library to link? Where it is stored(I know it can
> be linked by giving path in LIBS macro of project facility, but i want
> to know the path of that libary/archieve)?
 

0
Reply mario_semo (16) 2/5/2010 11:16:30 AM


1 Replies
216 Views

(page loaded in 0.051 seconds)

Similiar Articles:













7/5/2012 6:25:48 AM


Reply: