Thread: unresolved external symbols...linking errors in VC++

  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    1

    Red face unresolved external symbols...linking errors in VC++

    Hi,

    I am trying to compile C code on VC++, which is previously built on linux..
    i am getting following linking errors..

    mkyaffs2image.obj : error LNK2001: unresolved external symbol _yaffs_PackTags2
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _yaffs_InitialiseTags
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _readlink
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _S_ISSOCK
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _S_ISCHR
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _S_ISBLK
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _S_ISFIFO
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _S_ISREG
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _S_ISLNK
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _lstat
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _readdir
    mkyaffs2image.obj : error LNK2001: unresolved external symbol _opendir

    i am new to VC++.. can anyone help me to resolve these errors..

    Thanks in Advance,
    Ram

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > mkyaffs2image.obj : error LNK2001: unresolved external symbol _opendir
    http://www.rt.com/man/opendir.3.html
    Now find what the equivalent win32 function is.

    Porting code which hasn't been ported before is very hard work.

    The first two look like you're missing part of the package itself, what with the yaffs in the name.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    a newbie :p
    Join Date
    Aug 2008
    Location
    Zurich, Switzerland, Switzerland
    Posts
    91
    well, it seems you are using unix socket.
    may be you need to add include <winsock2.h>
    and also set the dependency of WS2_32.LIB.

    Good luck.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking errors
    By Zeeshan in forum C++ Programming
    Replies: 1
    Last Post: 02-22-2009, 02:10 AM
  2. wxWidgets link problem
    By cboard_member in forum C++ Programming
    Replies: 2
    Last Post: 02-11-2006, 02:36 PM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. MSVis-Studio C++ libraries and linker errors
    By kellydj in forum Windows Programming
    Replies: 10
    Last Post: 03-12-2002, 02:03 PM
  5. Compiler errors
    By BellosX in forum C Programming
    Replies: 2
    Last Post: 09-21-2001, 03:24 AM