unresolved external symbol __RTC_CheckEsp and others

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<font size=2><span style="font-family:tahoma,helvetica,sans-serif Hello,<br style="font-family:tahoma,helvetica,sans-serif
<span style="font-family:tahoma,helvetica,sans-serif I am trying to
complile and link a bunch of code which makes use of the setupapi.h and
hdisdi.h, defined as "extern C". I need the Win DDK, which are
correctly installed together with Visual C++ 2005 Express Edition. I am
underlining those includes because they caused<span style="font-family:tahoma,helvetica,sans-serif many link errors. Only after reading previous answers, I reduced their number but am not able to fix the last 3 :-(<br style="font-family:tahoma,helvetica,sans-serif
<span style="font-family:tahoma,helvetica,sans-serif The linker errors I still get are:<br style="font-family:tahoma,helvetica,sans-serif
<br style="font-family:tahoma,helvetica,sans-serif
<span style="font-family:tahoma,helvetica,sans-serif DisplayUSB.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function _main<br style="font-family:tahoma,helvetica,sans-serif
<span style="font-family:tahoma,helvetica,sans-serif DisplayUSB.obj : error LNK2001: unresolved external symbol __RTC_Shutdown<br style="font-family:tahoma,helvetica,sans-serif
<span style="font-family:tahoma,helvetica,sans-serif DisplayUSB.obj : error LNK2001: unresolved external symbol __RTC_InitBase<br style="font-family:tahoma,helvetica,sans-serif
<span style="font-family:tahoma,helvetica,sans-serif .Debug/DisplayUSB.exe : fatal error LNK1120: 3 unresolved externals

Can anybody suggest how to fix this problem ?
Thanks in advance !
Marco

P.S. for experts more than myself, the complete log follows obtained by means of the /VERBOSE option:
<font size=1>
------ Rebuild All started: Project: DisplayUSB, Configuration: Debug Win32 ------
Deleting intermediate and output files for project DisplayUSB, configuration Debug|Win32
Compiling...
StdAfx.cpp
Compiling...
DisplayUSB.cpp
Compiling manifest to resources...
Linking...
Starting pass 1
Searching libraries
    Searching F:WINDDK3790.1830libwxpi386odbc32.lib:
    Searching F:WINDDK3790.1830libwxpi386odbccp32.lib:
    Searching F:WINDDK3790.1830libcrti386msvcrt.lib:
      Found _printf
        Referenced in DisplayUSB.obj
        Loaded msvcrt.lib(msvcrt.dll)
      Found _mainCRTStartup
        Loaded msvcrt.lib(crtexe.obj)
      Found __IMPORT_DESCRIPTOR_msvcrt
        Referenced in msvcrt.lib(msvcrt.dll)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __imp___c_exit
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __imp___exit
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __XcptFilter
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __imp___cexit
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __imp__exit
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __imp____initenv
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found ___xc_a
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(cinitexe.obj)
      Found __imp____getmainargs
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __dowildcard
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(wildcard.obj)
      Found __newmode
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(_newmode.obj)
      Found __initterm
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __setdefaultprecision
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(fp8.obj)
      Found __imp____setusermatherr
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __matherr
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(merr.obj)
      Found __setargv
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(dllargv.obj)
      Found __adjust_fdiv
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(adjustfd.obj)
      Found __imp___adjust_fdiv
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __commode
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(ncommode.obj)
      Found __imp____p__commode
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __fmode
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(txtmode.obj)
      Found __imp____p__fmode
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found ___onexitbegin
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(atonexit.obj)
      Found __imp____set_app_type
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __SEH_epilog
        Referenced in msvcrt.lib(crtexe.obj)
        Loaded msvcrt.lib(sehprolg.obj)
      Found __except_handler3
        Referenced in msvcrt.lib(crtexe.obj)
        Referenced in msvcrt.lib(sehprolg.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __NULL_IMPORT_DESCRIPTOR
        Referenced in msvcrt.lib(msvcrt.dll)
        Loaded msvcrt.lib(msvcrt.dll)
      Found msvcrt_NULL_THUNK_DATA
        Referenced in msvcrt.lib(msvcrt.dll)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __controlfp
        Referenced in msvcrt.lib(fp8.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found ___dllonexit
        Referenced in msvcrt.lib(atonexit.obj)
        Loaded msvcrt.lib(msvcrt.dll)
      Found __imp___onexit
        Referenced in msvcrt.lib(atonexit.obj)
        Loaded msvcrt.lib(msvcrt.dll)
    Searching F:WINDDK3790.1830libwxpi386kernel32.lib:
    Searching F:WINDDK3790.1830libwxpi386odbc32.lib:
    Searching F:WINDDK3790.1830libwxpi386odbccp32.lib:
Finished searching libraries
Finished pass 1
Generating non-SAFESEH image.
Invoking CVTRES.EXE:
 /machine:x86
 /verbose
 /out:"C:DOCUME~1marcoIMPOST~1Templnk205.tmp"
 /readonly
 ".DebugDisplayUSB.exe.embed.manifest.res"
Microsoft (R) Windows Resource To Object Converter Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.
adding resource. type:MANIFEST, name:1, language:0x0409, flags:0x30, size:2048
DisplayUSB.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function _main
DisplayUSB.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
DisplayUSB.obj : error LNK2001: unresolved external symbol __RTC_InitBase
.Debug/DisplayUSB.exe : fatal error LNK1120: 3 unresolved externals
Build log was saved at "file://f:ElbaTech SoftwareUSBUSB MicrocontrollerMyDisplay USBDebugBuildLog.htm"
DisplayUSB - 4 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========</font>

<br style="font-family:tahoma,helvetica,sans-serif
</font>



View the full article
 
Back
Top