Link Error:LNK2001

HI
What is the reason for getting this error shown below
library_name(Object file):error LNK2001:unresilved external symbol_library_function_name 
Thanks In advance

Hi Prabin C A,
>>library_name(Object file):error LNK2001:unresilved external symbol_library_function_name.
There are several possible reasons generating this error message.
For example, the VS project properties settings issue or the symbol is spelled incorrectly or you are using mixed versions of the libraries, some from one version of the product, others from another version or others.
Reference:
https://msdn.microsoft.com/en-us/library/f6xx1b1z.aspx?f=255&MSPPError=-2147217396
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Linking errors (LNK2001) for NIDAQ functions such as _NIDAQErrorHandler@12

    I am getting linking errors (LNK2001) when I try to build any of the C++ EXAMPLES that came with my NI PCI6052E (for instance AOonePoint.C). I think I've included all the necessary libs in my project but I can't get past the linker (I'm using MS VC++ 6.0) and the actual errors read something like:
    Linking...
    AOonePoint.obj : error LNK2001: unresolved external symbol _NIDAQErrorHandler@12
    AOonePoint.obj : error LNK2001: unresolved external symbol _AO_VWrite@16
    AOonePoint.obj : error LNK2001: unresolved external symbol _NIDAQWaitForKey@8
    Debug/AOonePoint.exe : fatal error LNK1120: 3 unresolved externals
    Error executing link.exe.
    thanks for your help!

    You will need to add two library files to your project. To do this, select 'Project' from VC++ menu bar, then 'Add to Project' >> Files. Then follow this path to the files.
    /Program Files/National Instruments/NI-DAQ/Lib
    You will have to change 'Files of Type' to 'All Files.'
    The two files to add are nidaq32.lib and nidex32.lib.
    Brian

  • I am getting an linker error LNK2001 : unresolved symbol _main while compiling Microsoft c code

    I am writng a simple application in C language for communicating with GPIB. when I compile the c file I am getting a linker error
    LIBC.lib(ctr0.obj): LNK2001 error: unresolved sysmbol _main
    I compile the application in the dos window using the command
    cl gpibApplication.c gpib-32.obj.
    Could anyone tell me how to remove this error

    Hello-
    It sounds like the main function is missing from the gpibApplication.c file. Be sure that the following function is somewhere in the code:
    int main (int argc, char *argv[])
    Also, note that this function is case sensitive, so be sure main is not capitalized.
    Randy Solomonson
    Application Engineer
    National Instruments

  • Gettling linker error:LNK2001 while porting InDesign CS6 plugin code to InDesign CC plugin

    Hello,
    I am working on porting our existing InDesign CS6 plugin code to support InDesign CC plugin (client plugin on Windows platform)
    The plugin code gets compiled successfully after makeing neccessory code (API) changes but now gettling following linker error
    StackListBoxTVWidgetMgr.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: long __thiscall NodeID::GetNodeType(void)const " (__imp_?GetNodeType@NodeID@@QBEJXZ)
    IBClientPluginDialogController.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DVHostedWidgetEH::AddRef(void)const " (?AddRef@DVHostedWidgetEH@@UBEXXZ)
    I have checked every configuration setting, all the paths to include headers and static libraries are pointing to InDesign CC SDK.
    Note : Getting these linker errors in all the UI component class objects where following interfaces are inherited :
    CTreeViewWidgetMgr
    CIDEditBoxEventHandler
    etc.
    Build Environment :  Windows 7 ultimate + Visual Studio 2010 SP1 + InDesign CC Products SDK Build 244

    Try including DV_WidgetBin.lib.

  • Ttclasses60.lib link error

    Hi
    I'm trying to link ttClasses60.lib on Visual C++ 6.0 but i've got link error LNK2001 such as:
    error LNK2001: unresolved external symbol "__declspec(dllimport) class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class TTStatus c
    onst &)" (__imp_??6@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV01@ABVTTStatus@@@Z)
    Could you guys find out what's the problem?

    This error is usually encountered when you are using a later version of MSFT compiler than VC 6.0. Perhaps you are using VC .NET or VC .NET 2003? One way to tell is to run
    cl.exe /?
    Since ttclasses is distributed in source form, you can easily rebuild them using your compiler. Just cd into the $install_dir\ttclasses directory and do "nmake /f Makefile.vsdotnet clean all", then do the same in the demo\ttclasses directory.

  • Linker error: error LNK2001: unresolved external symbol __imp_printf

    On a newly installed compiler, Visual Studio 2013, I get some linker error:
    Sample program (for test):
    #include <stdio.h>
    int main ()
    printf("Help");
    return 0;
    I get some linker errors:
    Error 2 error LNK2001: unresolved external symbol __imp_printf F:\ug_info\indices\Project1\Project1\Source.obj Project1
    Error 1 error LNK2001: unresolved external symbol __security_check_cookie F:\ug_info\indices\Project1\Project1\Source.obj Project1
    Error 3 error LNK2001: unresolved external symbol mainCRTStartup F:\ug_info\indices\Project1\Project1\LINK Project1
    I thinks there is a configuration issue..
    Any suggestions?

    Hi Camiel.Rys,
    Thanks for posting in MSDN forum.
    Error 3 error LNK2001: unresolved external symbol mainCRTStartup F:\ug_info\indices\Project1\Project1\LINK Project1
    I would guess that you may create a wrong project template. Could you try to create a new Win32 Console project following this document?
    Walkthrough: Creating a Win32 Console Program (C++)
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Linking errors when using ibsta

    Hello,
    I have been trying to write C code to automate a Keithley 2410 through GPIB.  I am using Windows XP 32-bit, and VC++.
    I believe I was successful in getting a handle to the gpib-32.dll. However, I am getting a linking error when I try to use ibsta:  1>helloworld.obj : error LNK2001: unresolved external symbol _ibsta
    1>C:\Documents and Settings\Prober\My Documents\C Programs\helloworld\Debug\helloworld.exe : fatal error LNK1120: 1 unresolved externals
    However, when I look through the ni488.h, I see that ibsta is a global variable.  Therefore I am confused as to why I am getting a linking error
    I am following this guide: http://na.tm.agilent.com/pna/help/latest/Programming/GPIB_Example_Programs/GPIB_using_Visual_C++.htm
    My code is attached
    Attachments:
    code.c ‏3 KB

    Check out the 4882query.c example located on your computer at National Instruments > NI-488.2 > Examples > Standard C > 4882query.  The National Instruments folder might be in a sub-folder of Public or Public Documents.  Look at the ReadMe.txt file first.  It contains a C++ section.  Then try compiling the example and see what happens.
    Jeff Munn
    Applications Engineer
    National Instruments

  • I'm getting this "error LNK2001: unresolved external symbol _niFgen_SendSoftwareTrigger@4" when I try to make any CNiFgen object.

    Hi, I have a working project that has a few classes using the NI5411 APIs and now I want to use CNiFgen classes. After adding Core Components(Advanced Analysis, Common) and NI Device Instrument Drivers(NiFgen) from the Measurement Studio Components Wizard. Even when I try to make an object of CNiFgen(CNiFgen cnf I get the following error:
    --------------------Configuration: puzzle - Win32 Debug--------------------
    Linking...
    NiFgenInterfaceD.lib(NiFgenImpl.obj) : error LNK2001: unresolved external symbol _niFgen_SendSoftwareTrigger@4
    Output/puzzle.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.
    puzzle.exe
    - 2 error(s), 0 warning(s)
    My APIs version is working fine and so are these CNiFgen classes(I have tried then for a dummy project). But, things start getting nasty when I try to integrate them.
    Regards,
    Vaibhav.

    It looks like you have a typical linking error in VC++. Have you made sure that all of the necessary .lib files are properly linked to?
    Also, are you passing any data between your custom classes and the niFGEN classes? These will take different data types unless you have already type cast all of them to work properly together. If they don't share variables, you should be okay.
    Jack Arnold
    Application Engineer
    National Instruments

  • Linker Error while building files refering to NI-DAQ API

    Software: MATLAB 5.3
    O/S : Windows 98
    C Compiler : Microsoft VC++ 6.0
    We are trying to make an executable of an Application involving both of MatLab and C Files
    The file SCANsingleBufSync2.c is C program calling National Instruments NI-DAQ API's. This C program is called by displayCnt3.m,a MatLab Program. Both of the files are individually compiled using
    mcc -x SCANsingleBufSync2.c, ...
    That works fine.
    When trying to make a build , using
    mcc -B sgl displayCnt3 SCANsingleBufSync2.c
    it is throwing the following error.(pl. refer section at end)
    Basically it is not able to do Link. The MatLab path has been set to look into the NI-DAQ .dlls
    C:\Program Files\National Instruments\Ni-daq\Includes and
    C:\Program Files\National Instruments\Ni-daq\Lib
    Also the Windows path has been set to the above two directories through the autoexec.bat.
    Suggestions Please,
    Thanks in advace,
    MOHANDAS
    � mcc -B sgl displayCnt3 SCANsingleBufSync2.c
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _DAQ_VScale@40
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _SCAN_Demux@16
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _SCAN_Op@40
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _NIDAQErrorHandler@12
    SCANsingleBufSync2.obj : error LNK2001: unresolved external symbol _Timeout_Config@8
    displayCnt3.obj : error LNK2001: unresolved external symbol _MdisplayCnt3_SCANsingleBufSync2
    displayCnt3.exe : fatal error LNK1120: 6 unresolved externals
    MBUILD.BAT: Link of 'displayCnt3.exe' failed.
    mcc -B sgl displayCnt counter.c
    counter.obj : error LNK2001: unresolved external symbol _Select_Signal@16
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Change_Parameter@16
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Set_Application@12
    counter.obj : error LNK2001: unresolved external symbol _NIDAQErrorHandler@12
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Control@12
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Config_Buffer@20
    counter.obj : error LNK2001: unresolved external symbol _Set_DAQ_Device_Info@12
    counter.obj : error LNK2001: unresolved external symbol _NIDAQYield@4
    counter.obj : error LNK2001: unresolved external symbol _GPCTR_Read_Buffer@36
    displayCnt.exe : fatal error LNK1120: 9 unresolved externals
    MBUILD.BAT: Link of 'displayCnt.exe' failed.

    I'm not very familiar with MATLAB, but you are getting link errors most likely because you aren't linking in the .LIB files for NI-DAQ properly. They are nidaq32.lib and nidex32.lib in the NI-DAQ\lib directory. They need to be linked in with the code to resolve these symbols.
    Best Regards,
    Chris Matthews
    National Instruments

  • [SOS] Linking Error on QQSY

    Hi,
    I've got a request on an error occuring while compiling a server partition on HP-UX :
    .... c128.o c127.o c126.o c125.o p18.o c139.o c138.o c137.o -lqqsy -lqqdb -lqqknp
    thrd -lqqcm -lqqdo -lqqfo -lqqsm -lqqrpgs -Wl,+s -ldld -L/lib -lm
    /usr/ccs/bin/ld: Can't find library for -lqqsy
    Error during linking, aborting
    Contents of the $FORTE_ROOT/install/lib which is in SHLIB_PATH variable :
    ll qqsy
    -rwxr-xr-x 1 forte int 202540 Jul 30 12:43 qqsy.a
    ll qqdb
    -r-xr-xr-x 1 forte int 945278 Jul 30 12:42 libqqdb.sl
    I understand that the " -lqdb " looks for libqqdb.sl, but why does forte link with '-lqqsy'
    as there's no libqqsy.a ? Neither in 3.0.F.2 nor in 3.0.G.2 ?
    Using the full path to the '.a' in the link command does avoid this issue, but many 'db*'
    symbols are then not found.
    Any suggestions welcomed.
    J-Paul Gabrielli
    Something like software builder
    Sema
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    hi.
    I have the same problem.
    I tryed:
    cl -IC:\Java\jdk1.5.0_05\include -IC:\Java\jdk1.5.0_05\include\win32 -IC:\Java\jdk1.5.0_05\lib\jvm.lib -MT invoke.c -oinvoke.exe
    and get :
    error LNK2001: unresolved external symbol __imp__JNI_CreateJavaVM@12
    error LNK2001: unresolved external symbol __imp__JNI_GetDefaultJavaVMInitArgs@4
    what can I do??
    thanks

  • Linking error by using oracle11.1.0 OCCI in VS 2008 (Windows 64Bit)

    Hello *,
    I try to link a simple program in C++ (VS2008, Windows Professional 64 Bit) but I stiill get the LNK2001 error :
    error LNK2001: unresolved external symbol "public: static void __cdecl oracle::occi::Environment::terminateEnvironment...
    error LNK2001: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment
    I use the simple example from this thread Oracle 10g and OCCI in Visual Studio 2008
    but it doesn't work.
    Here my command line options in VS Project (Release):
    C/C++ Command Line: /O2 /Oi /GL /I "G:\OracleDB\product\11.1.0\db_1\OCI\include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Gy /Fo"Release\\" /Fd"Release\vc90.pdb" /W3 /nologo /c /Zi /TP /errorReport:prompt
    Linker:
    /OUT:"G:\WissArbeit\TestOracleCLI\Release\TestOracleCLI.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"G:\Walther\Vesuch2\instantclient-basic-win-x86-64-11.1.0.7.0\instantclient_11_1\vc9" /MANIFEST /MANIFESTFILE:"Release\TestOracleCLI.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"G:\WissArbeit\TestOracleCLI\Release\TestOracleCLI.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT oraocci11.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
    PATH=G:\Walther\Vesuch2\instantclient-basic-win-x86-64-11.1.0.7.0\instantclient_11_1;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Java\jre6\bin;C:\Program Files (x86)\Tortoise SVN\bin;C:\Program Files (x86)\QuickTime\QTSystem\
    The folder ...instantclient-basic-win-x86-64-11.1.0.7.0\instantclient_11_1\vc9 contains
    oraocci11.dll
    oraocci11.dll.manifest
    oraocci11.lib
    oraocci11d.dll
    oraocci11d.dll.manifest
    oraocci11.lib
    downloaded from http://www.oracle.com/technology/tech/oci/occi/occidownloads.html
    Can somebody say what is wrong?
    Thanks
    Christina

    Hi Christina,
    This is what I did using Visual Studio 2008 Professional Edition on Windows Server 2008 64-Bit:
    I downloaded the Instant Client Basic and Instant Client Package - SDK for Windows (x64) from here:
    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winx64soft.html
    I then downloaded the OCCI for Visual C++9 (VS 2008)[Windows x64] from here:
    http://www.oracle.com/technology/tech/oci/occi/occidownloads.html
    I think these are the same downloads you used.
    1. I then extracted the Instant Client packages to C:\Temp which created the following directory:
    C:\Temp\instantclient_11_1
    2. The Instant Client SDK was extracted to C:\Temp as well into the following directory:
    C:\Temp\instantclient_11_1\sdk
    3. I extracted the OCCI package and then moved the libraries, dll files, and manifest files into C:\Temp\instantclient_11_1\sdk\lib\msvc\vc9
    4. I copied oraocci11.dll and oraocci11d.dll from C:\Temp\instantclient_11_1\sdk\lib\msvc\vc9 to C:\Temp\instantclient_11_1
    5. I removed oraocci11.lib from C:\Temp\instantclient_11_1\sdk\lib\msvc
    6. I added C:\Temp\instantclient_11_1 to the system path
    7. In Visual Studio 2008 I added the include and library paths as follows:
    Tools -> Options... -> Projects and Solutions -> VC++ Directories
    Platform: x64
    Show directories for:
    Include files -- here I added C:\Temp\instantclient_11_1\sdk\include (I removed all other Oracle include directories for the test)
    Library files -- here I added C:\Temp\instantclient_11_1\sdk\lib\msvc and C:\Temp\instantclient_11_1\sdk\lib\msvc\vc9 (I removed all other Oracle library directories for the test)
    8. Added oraocci11.lib to the linker in Project -> OCCITest Properties... -> Configuration Properties -> Linker -> Input -> Additional Dependencies -> oraocci11.lib
    9. I then built and executed the simple test you linked to above with no errors.
    Here's the build log for the release build:
    Build Log      Build started: Project: OCCITest, Configuration: Release|x64
    Command Lines      Creating temporary file "c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000923843192.rsp" with contents
    /GL /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /FD /EHsc /MD /Fo"x64\Release\\" /Fd"x64\Release\vc90.pdb" /W3 /c /Zi /TP ".\OCCITest.cpp"
    Creating command line "cl.exe @"c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000923843192.rsp" /nologo /errorReport:prompt"
    Creating temporary file "c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000A23843192.rsp" with contents
    /OUT:"C:\My Projects\Test\CPP\OCCITest\x64\Release\OCCITest.exe" /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:"x64\Release\OCCITest.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"c:\My Projects\Test\CPP\OCCITest\x64\Release\OCCITest.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE:NO /MACHINE:X64 oraocci11.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
    ".\x64\Release\OCCITest.obj"
    Creating command line "link.exe @"c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000A23843192.rsp" /NOLOGO /ERRORREPORT:PROMPT"
    Creating temporary file "c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000B23843192.rsp" with contents
    /outputresource:".\x64\Release\OCCITest.exe;#1" /manifest
    ".\x64\Release\OCCITest.exe.intermediate.manifest"
    Creating command line "mt.exe @"c:\My Projects\Test\CPP\OCCITest\x64\Release\RSP00000B23843192.rsp" /nologo"
    Creating temporary file "c:\My Projects\Test\CPP\OCCITest\x64\Release\BAT00000C23843192.bat" with contents
    @echo Manifest resource last updated at %TIME% on %DATE% > ".\x64\Release\mt.dep"
    Creating command line """c:\My Projects\Test\CPP\OCCITest\x64\Release\BAT00000C23843192.bat"""
    Output Window      Compiling...
    OCCITest.cpp
    Linking...
    Generating code
    Finished generating code
    Embedding manifest...
    Results      Build log was saved at "file://c:\My Projects\Test\CPP\OCCITest\x64\Release\BuildLog.htm"
    OCCITest - 0 error(s), 0 warning(s)And here is the output window results for executing the test from within Visual Studio:
    'OCCITest.exe': Loaded 'C:\My Projects\Test\CPP\OCCITest\x64\Release\OCCITest.exe', Symbols loaded.
    'OCCITest.exe': Loaded 'C:\Windows\System32\ntdll.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\kernel32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Temp\instantclient_11_1\oraocci11.dll'
    'OCCITest.exe': Loaded 'C:\Temp\instantclient_11_1\oci.dll', Binary was not built with debug information.
    'OCCITest.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\advapi32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\psapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_99b61f5e8371c1d4\msvcr90.dll', Symbols loaded.
    'OCCITest.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_99b61f5e8371c1d4\msvcp90.dll', Symbols loaded.
    'OCCITest.exe': Loaded 'C:\Temp\instantclient_11_1\oraociei11.dll', Binary was not built with debug information.
    'OCCITest.exe': Loaded 'C:\Windows\System32\ws2_32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\nsi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\shell32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\gdi32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\user32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\shlwapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\ole32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\winmm.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\oleacc.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\IPHLPAPI.DLL', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\dhcpcsvc.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\dnsapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\secur32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\winnsi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\dhcpcsvc6.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\crypt32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\msasn1.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\userenv.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\dbghelp.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\imm32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\msctf.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\lpk.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\usp10.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\winsxs\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_152e7382f3bd50c6\comctl32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\mswsock.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\wship6.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\winrnr.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\Wldap32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\nlaapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\NapiNSP.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\rasadhlp.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\WSHTCPIP.DLL', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\netapi32.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Loaded 'C:\Windows\System32\cscapi.dll', Symbols loaded (source information stripped).
    'OCCITest.exe': Unloaded 'C:\Windows\System32\netapi32.dll'
    'OCCITest.exe': Unloaded 'C:\Windows\System32\cscapi.dll'
    The program '[3680] OCCITest.exe: Native' has exited with code 0 (0x0).I'm not sure if that is helpful at all, but I didn't have any errors.
    Some of the lines are really long... hopefully that doesn't cause too much difficulty in reading them.
    Regards,
    Mark

  • Link Error ...HELLLPPP

    Folk
    I try to create a dll and call within my java code....but I get link error when I try to build my library...
    here is how I call the library:
    .java file
    qcSys(command, byteImgLocal);
    public native void qcSys(String command, byte[] byteImgLocal);
    static
    System.loadLibrary("qcSys");
    .h file machine genrated
    JNIEXPORT void JNICALL Java_SrDesign_qcSys(JNIEnv *, jobject, jstring, jbyteArray);
    .c file
    #include <StubPreamble.h>
    #include <stdio.h>
    #include "SrDesign.h"
    void SrDesign_qcSys(struct HSrDesign *this,
    struct Hjava_lang_String command, HArrayOfByte byteImage)
    char *QCimage = unhand(byteImage)->body;
    int length = obj_length(byteImage);
    FILE *fp;
    fp = popen(makeCString(command),"r");
    fgets(QCimage, length, fp);
    return;
    now when I build the project in MVC++ 6 on windows 2000 I get bellow messages
    warnning on line fp=popen(makeCString (command), "r");
    1. 'popen' undefined; assuming extern returning int
    2. 'makeCString' undefined; assuming extern retruning int
    3. '=' : 'struct_iobuf *' differs in levels of indirection from int
    linking...
    qcSys.obj : error LNK2001 : unresolved external symbold _popen
    qcSys.obj : error LNK2001 : unresolved external sysmbol _makeCString
    Error executing link.exe
    can somebody helllllp me please! I'm not familiar with MVC++

    now when I build the project in MVC++ 6 on windows
    2000 I get bellow messages
    warnning on line fp=popen(makeCString (command),
    "r");When you get warning you better pay attention to them.
    1. 'popen' undefined; assuming extern returning intThis says that the compiler does not know what function 'popen' is.
    Given that the method looks a lot like 'fopen' I question where you got it from.
    Note that even though the compiler has no idea what you are talking about it has no problem compiling with a best guess.
    2. 'makeCString' undefined; assuming extern retruning
    intAgain the function is not defined. You need to figure out what it is.
    3. '=' : 'struct_iobuf *' differs in levels of
    indirection from int
    linking...Bad, bad, bad idea to ignore any error that has anything to do with pointers.
    Best guess you are not accessing this correctly.
    qcSys.obj : error LNK2001 : unresolved external
    symbold _popenEither you misspelled the name or you need to find your library that has this (it is not a C/C++ method.)
    qcSys.obj : error LNK2001 : unresolved external
    sysmbol _makeCString
    Error executing link.exe
    Same thing as above.

  • Help~ Link error in pro*c (10g EE for win32)

    Hi Sir,
    I have downloaded the 10g EE database from ORACLE homepage...
    There are orasql10.lib (in /precomp/lib) and orasqx10.lib ( in /precomp/lib/msvc).
    I linked the both of them, but there is link error..as follows..
    -----------------------------------------------------------------------------------------------------------insertTest.obj : error LNK2001: unresolved external symbol "void __cdecl sqlcxt(void * *,unsigned int *,struct sqlexd *,struct sqlcxp const *)" (?sqlcxt@@YAXPAPAXPAIPAUsqlexd@@PBUsqlcxp@@@Z)
    ../../../bin/insertTest.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.
    source code is very simple
    void main()
    EXEC SQL include sqlca;
    EXEC SQL BEGIN DECLARE SECTION;
    char *uid="sys";
    char *pwd="manager0";
    EXEC SQL END DECLARE SECTION;
    EXEC SQL CONNECT :uid IDENTIFIED BY :pwd;
    printf("\nConnected to ORACLE as user: %s\n", uid);
    exit(EXIT_SUCCESS);
    Help me~~
    Thank you...

    Works for me. Please post complete step-by-step log of the commands you executed, like below:
    C:\>type test.pc
    #define EXIT_SUCCESS 0
    #include <stdio.h>
    EXEC SQL INCLUDE SQLCA;
    void main()
        EXEC SQL BEGIN DECLARE SECTION;
        char *uid="/";
        char *pwd="";
        EXEC SQL END DECLARE SECTION;
        EXEC SQL CONNECT :uid IDENTIFIED BY :pwd;
        printf("\nConnected to ORACLE as user: %s\n", uid);
        exit(EXIT_SUCCESS);
    C:\>
    C:\>proc test.pc
    Pro*C/C++: Release 10.2.0.1.0 - Production on Thu Mar 9 08:23:49 2006
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    System default option values taken from: C:\oracle\ORA10GR2\precomp\admin\pcscfg.cfg
    C:\>cl test.c c:\oracle\ORA10GR2\precomp\lib\orasql10.lib
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
    Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
    test.c
    Microsoft (R) Incremental Linker Version 7.10.3077
    Copyright (C) Microsoft Corporation.  All rights reserved.
    /out:test.exe
    test.obj
    c:\oracle\ORA10GR2\precomp\lib\orasql10.lib
    C:\>.\test.exe
    Connected to ORACLE as user: /
    C:\>

  • Linking error on invoke.c sample

    Hi !
    I try to invoke the JVM.
    I use the http://java.sun.com/docs/books/tutorial/native1.1/invoking/invo.html sample .
    I try to compile with Dev C++, and the VsStidio.net the file "invoke.c."
    And alway get the error message from the linker.
    somthing like "unrefenrenced..." or "undefinied".. (dont't remenmber but if need I write here exactly). Anyway after thet 2-3 words the problem is with :
    "JNI_GetDefaultJavaVMInitArgs(&vm_args);"
    and
    " res = JNI_CreateJavaVM(&jvm,&env,&vm_args);"
    just this 2 function.
    The include files was founded,added...(from ..jdk/include), I use WindowsXP, jdk1.5.0(not updated).
    What can I do to start my program from my C program? - I think this example must work to start MyJavaApplication from My_C_Applicationn or not?
    Another question: is correct to set the vm_args.version to 0x00010005; or use 0x00010004 with my jdk?. (Or set or not : have the linker error)

    hi.
    I have the same problem.
    I tryed:
    cl -IC:\Java\jdk1.5.0_05\include -IC:\Java\jdk1.5.0_05\include\win32 -IC:\Java\jdk1.5.0_05\lib\jvm.lib -MT invoke.c -oinvoke.exe
    and get :
    error LNK2001: unresolved external symbol __imp__JNI_CreateJavaVM@12
    error LNK2001: unresolved external symbol __imp__JNI_GetDefaultJavaVMInitArgs@4
    what can I do??
    thanks

  • Ucbhook Linking error when compiling simucb.dll

    I'm trying to compile a simucb.dll and one of the linking errors is "ucbhook.obj : error LNK2001: unresolved external symbol _gstdwrt". Since ucbhook.c is generated automatically by MarixX and it presumably knows what it is doing, I'm guessing that I haven't included the library that defines gstdwrt in my C++ project. Does anyone know what this library is and where I should look for it? Thanks!
    Eric

    Thanks for the reply. My first question is: What is an Sa_user.cmd file and what's it look like? Is it like a makefile?
    I'm compiling an ugly mixture of C and legacy Fortran code. There is a user code block written in C (which the ucbhook function calls) which calls a Fortran function which then calls other Fortran functions. I don't know what that may do to the complexity of Sa_user.cmd. Currently, I'm learning how to use Microsoft Visual C++ to compile and link all my disparate files into a simucb.dll and I'm mired in the linking errors. Once I have the simucb.dll, I'm gonna stick that in my project directory and let MatrixX do its thing.

Maybe you are looking for

  • How do i move info from ibook to macmini?

    I have an older ibook g4 and I want to move most of the file, music and photos over to the new mini.  I picked up a firewire 400 to 800 to connect the two machines.  Everything is hooked up but I can not see either machine on the other.  If I hook up

  • Messages not working properly, conversations not syncing

    Macbook Pro 15" Mid-2010, Mac OS 10.10.1; iPhone 4S, iOS 7.0.0, Messages When I receive an iMessage on my iPhone, the message is successfully pushed to my Mac and I get a notification in Notification Center. That's fine. However, when I launch Messag

  • Use-exit to update

    Hi I seek another to use-exit to update the zone kna1-bahns. gv_n = 0.   IF i_kna1-bahns IS NOT INITIAL .   ELSE.     gv_bahns = i_kna1-name1+0(4).    DO gv_n TIMES.       gv_n = gv_n + 1.       SELECT SINGLE kunnr FROM kna1 INTO kna1-kunnr         W

  • Music app in the iPad & iphone (iOS 6)

    i'm just wondering why, when i use the music app in the iPad (iOS 6) i can't see the lyrics, while in the iphone (iOS 6 too) i can see them????

  • Determining how much time is left for HttpSession expiration

    Hi, Is there any way to determine how much time is left for my session to expire ? What i want to do is, if there is no activity on some page for a long time, then according to the remaining session expiration time, i want to popup a message to the u