Linker Errors = I think i missed a library?

This is a discussion on Linker Errors = I think i missed a library? within the Windows Programming forums, part of the Platform Specific Boards category; Okeydokey, im compiling some example code, and im probablly missing a library in my linker settings somewhere. The question is ...

  1. #1
    That Creepy Network Guy DeepBlackMagic's Avatar
    Join Date
    Feb 2003
    Posts
    265

    Linker Errors = I think i missed a library?

    Okeydokey, im compiling some example code, and im probablly missing a library in my linker settings somewhere. The question is what library am i forgetting to add? Im sure somebody must recognise some of the functions the program is calling, and know what lib they are in. Thanks for your time.

    Code:
    --------------------Configuration: DrvFltIp - Win32 Debug--------------------
    Compiling...
    testDrvDlg.cpp
    Linking...
    nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
    nafxcwd.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
    nafxcwd.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
    nafxcwd.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
    nafxcwd.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
    Debug\DrvFltIp.sys : fatal error LNK1120: 3 unresolved externals
    Error executing link.exe.
    
    DrvFltIp.sys - 6 error(s), 0 warning(s)
    Last edited by DeepBlackMagic; 09-06-2003 at 10:18 PM.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    Depends on your compiler.

    For mingw try one of the following:

    libcrtdll.a
    libmsvcrt.a
    libmsvcrt20.a
    libmsvcrt40.a

    or borland:

    cw32mti.lib
    cw32mt.lib
    cw32i.lib
    cw32.lib

  3. #3
    That Creepy Network Guy DeepBlackMagic's Avatar
    Join Date
    Feb 2003
    Posts
    265
    Im using Msft VC++ 6.0 with SP5 and the win2k ddk.

  4. #4
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    Dunno, I don't use that compiler, but it's either your msvcrt or crtdll library.

  5. #5
    That Creepy Network Guy DeepBlackMagic's Avatar
    Join Date
    Feb 2003
    Posts
    265
    I tried the libs, and the linker didnt find any of them on my pooter =(

  6. #6
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    O.K. Try this then:

    Start->Find->Files or Folders->
    containing text: __mbctype
    look in: c:\MyVcFolder\lib

    Voila.

  7. #7
    That Creepy Network Guy DeepBlackMagic's Avatar
    Join Date
    Feb 2003
    Posts
    265
    Pfft, no need to be an asshat about it. Thats the first thing i did. It will be done sometime next week. Huge hard drives do suck for a few things. I got so many kits loaded for platform specific crap its just easier to search the root of the drive than try and fine each dir individually.

  8. #8
    jasondoucette.com JasonD's Avatar
    Join Date
    Mar 2003
    Posts
    278
    I believe __argc and __argv are defined in stdarg.h or stdlib.h.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 10-09-2007, 02:37 PM
  2. Linker errors on Winsock2 functions
    By ShadowMetis in forum C++ Programming
    Replies: 2
    Last Post: 11-20-2004, 10:19 PM
  3. Linker errors...
    By MipZhaP in forum Game Programming
    Replies: 2
    Last Post: 08-27-2004, 09:12 AM
  4. Question About Linker Errors In Dev-C++
    By ShadowMetis in forum C++ Programming
    Replies: 9
    Last Post: 08-18-2004, 08:42 PM
  5. Linker errors with simple static library
    By Dang in forum Windows Programming
    Replies: 5
    Last Post: 09-08-2001, 09:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21