Re: Linking Error



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@xxxxxxxxx> schrieb im Newsbeitrag news:aa0533da-ad8e-4d0c-a4cd-095e2960cc5a@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
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)?


.



Relevant Pages

  • Re: General Linux c programming questions
    ... Socket API is included in the standard C library. ... The OP will also find that Winsock is very similar to the standard ... For many years Microsoft stubbornly pretended that TCP/IP ... third-party TCP/IP libraries from Sun, Wollongong, and others ...
    (comp.os.linux.misc)
  • Re: JPEG file read in Windows CE
    ... theres a bit about loading images using the image library ... which you have on windows mobile and windows CE (if the module is ... I get a compile error when including file aygshell.h: c:\program ... I added the AfxOleInit function call and all libraries I could find, ...
    (microsoft.public.windowsce.embedded)
  • Re: JPEG file read in Windows CE
    ... First method: Using SHLoadImageFile. ... If I comment out the function SHEnumPropSheetHandlers, then the compile error above is removed. ... I added the AfxOleInit function call and all libraries I could find, but I am still getting the compile error: error LNK2019: unresolved external symbol OleLoadPicture referenced in function "int __cdecl LoadPictureFile". ...
    (microsoft.public.windowsce.embedded)
  • Programming Sockets with a Secure Layer
    ... I've been programming for quite a while and I've tried playing with ... libraries I could use to have a Secure Socket Layer on top of my ... using a protocol of my own. ...
    (comp.os.linux.networking)
  • Re: VB5 Question
    ... I know what this is, but I get the error, "Compile error: ... the libraries that may contain a reference to the Recordset object. ... Select *one* of the DAO references. ...
    (microsoft.public.vb.general.discussion)