Thread: Linker Errors = I think i missed a library?

  1. #1
    Registered User
    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 Geolingo; 09-06-2003 at 10:18 PM.

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    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
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  3. #3
    Registered User
    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,708
    Dunno, I don't use that compiler, but it's either your msvcrt or crtdll library.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  5. #5
    Registered User
    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,708
    O.K. Try this then:

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

    Voila.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  7. #7
    Registered User
    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

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, 11: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