Unresolved external "niScope_i​nit" referenced from "path_of_m​y_project"

Hi,
First of all I'm sorry about my English. I'm developing a software on Builder C++ by Borland and we bought an NI DAQ 5112 PCI. I'd like to know if is possible to use the high-level functions from niScope (such as niScope_init, _AutoSetup, _close...) on this plataform. I'm asking it 'cause I could run every "example program" on it whithout any problem. But when I try to use it on my own project the message below is shown: unresolved external "niScope_init" referenced from "path_of_my_project".
thanks,
Allan

   Hi Ayman K, thanks for your help.
I bought this digitalizer which brings some examples in Visual C++ based. Fortunetly, there is a tool on Builder C++ (software that I use) that converts a VC++ project in a BC++ project. When i did it with each example code, it really worked (it run perfectly as a BC++ project), of course I needed to add the NISCOPE include and library directories to my project. My problem is that when I try to use this functions (such as niScope_init, niScope_ConfigureVertical, etc...), all of them high-level functions, into my own project, a message like these below is shown:
[Linker Error] Unresolved external 'niScope_init' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0C\UNIT1.OBJ
[Linker Error] Unresolved external 'niScope_AutoSetup' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0C\UNIT1.OBJ
[Linker Error] Unresolved external 'niScope_ConfigureVertical' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0C\UNIT1.OBJ
[Linker Error] Unresolved external 'niScope_ConfigureVertical' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0C\UNIT1.OBJ
and so on
I already tried to add every include and/or library path from the example projects (that works) to my project, but it haven't worked. Now I'm looking for someone who have gotten some trouble like this. I even don't know if I'm looking it on the right way but I hope so. I aprecciate every help ok?
    Thanks a lot
              Allan Rocha

Similar Messages

  • CError_1_error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup_

    I am brand new to programming and got this while making a vending machine program and am not sure what it means. I am using Visual Studios 2013 and here is a copy of my code.
    #include <iostream>
    using namespace std;
    int _tmain()
        float usrmn;
        usrmn = 0;
        float total;
        total = 7.50;
        int gum1;
        gum1 = 7;
        int gum2;
        gum2 = 7;
        int gum3;
        gum3 = 7;
        int gum4;
        gum4 = 7;
        char choice;
        cin > choice
        char cont;
        cin > cont;
        cout << "s - report the machine status" << endl;
        cout << "d - drops in quarter" << endl;
        cout << "1 - pull the 1st tab" << endl;
        cout << "2 - pull the 2nd tab" << endl;
        cout << "3 - pull the 3rd tab" << endl;
        cout << "4 - pull the 4th tab" << endl:
        cout << "r - restock the machine" << endl;
        cout << "q - quit" << endl;
        cont == 1
            while (cont == 1)
                switch (choice)
                    case's': cout << "1:" << "gum1" << " packs of Beemans" << endl;
                cout << "2:" << "gum2" << " packs of Dentyne" << endl;
                cout << "3:" << "gum3" << " packs of Chiclets" << endl;
                cout << "4:" << "gum4" << " packs of Carefree" << endl;
                cout << "There is $" << "total" << "in the machine" << endl;
                break;
                    case 'd': cout << "Ching" << endl;
                        usrmn = usrmn + .25;
                        total = total + .25;
                        break;
                    case '1': if (usrmn >= 0.75)
                        if (gum1 >= 1)
                            cout << "A pack of Beemans slides into view." << endl;
                            gum1 = gum1 - 1;
                            usrmn = 0;
                        else
                            cout << "You hear mechanical clanking but no gum appears." << endl;
                            usrmn = 0;
                              else
                                  cout << "(nothing happens)" << endl;
                              break;
                    case'2': if(usrmn >= 0.75)
                        if (gum2 >= 1)
                            cout << "A pack of Dentyne slides into view." << endl;
                            gum2 = gum2 - 1;
                            usrmn = 0;
                        else
                            cout << "You hear mechanical clanking but no gum appears." << endl;
                            usrm = 0;
                             else
                                 cout << "(nothing happens)" << endl;
                             break;
                    case '3': if(usrmn >= 0.75)
                        if (gum3 >= 1)
                            cout << "A pack of Chiclets slides into view." << endl;
                            gum3 = gum3 - 1;
                            usrmn = 0;
                        else
                            cout << "You hear mechanical clanking but nothing appears." << endl;
                            usrmn = 0;
                              else
                                  cout << "(nothing happens)" << endl;
                              break;
                    case '4': if (usrmn >= 0.75)
                        if (gum4 >= 1)
                            cout << "A pack of Carefree slides into view." << endl;
                            gum4 = gum4 - 1;
                            usrmn = 0;
                        else
                            cout << "You hear mechanical clanking but nothing appears." << endl;
                            usrmn = 0;
                              else
                                  cout << "(nothing happens)"
                              break;
                    case'r': cout << "A grouchy-looking attendant shows up, opens the back, fiddles around a bit, closes it, and leaves." << endl;
                        gum1 = 10;
                        gum2 = 10;
                        gum3 = 10;
                        gum4 = 10;
                        total = 0;
                        break;
                    case'q': cout << "So long!" << endl;
                        cont = 0
                            break;
                    default: cout << "I don't understand." << endl;
        return 0;

    On 2/15/2015 1:14 PM, Pradish.MP wrote:
    On 2/15/2015 4:54 AM, "Viorel_ [MVP]" wrote:
    Maybe replace “_tmain” with “main”.
    ... or #include <tchar.h>  (where the macro "_tmain" is defined). But really, just make it "main".
    if it were an issue with _tmain, he should have got a compiler error
    Why? What should the compiler complain about? _tmain is a perfectly valid function name - it's just not a name that the linker expects as the program's entrypoint.
    Igor Tandetnik

  • Unresolved external symbols when linking C++ with ni.4882.obj

    Moving from 32-bit XP to Windows 7 using Microsoft Visual Studio 2008 C++.  When linking with NI-488.2 version 3.0.2 I (ni4882.obj) get the following warning and errors:
    1>Linking...
    1>ni4882.obj : warning LNK4217: locally defined symbol _time64 imported in function time
    1>ni4882.obj : error LNK2019: unresolved external symbol __imp_rand referenced in function LoadFunction
    1>ni4882.obj : error LNK2019: unresolved external symbol __imp_srand referenced in function LoadFunction
    1>ATP.exe : fatal error LNK1120: 2 unresolved externals
    1>Creating browse information file...
    1>Microsoft Browse Information Maintenance Utility Version 9.00.21022
    1>Copyright (C) Microsoft Corporation. All rights reserved.
    Any ideas.
    Solved!
    Go to Solution.

    Hi Guys,
    I got this error too recently. Was troubling me a lot. I was using Windows 7 OS, Visual Studio 2010 compiler.
    The fix for this is pretty much straight forward and solution lies in the Project settings only.
    To my knowledge, with /MDd switch, it causes the compiler to place the library name MSVCRTD.lib into the .obj file.
    But with /MTd switch, This option just causes the compiler to place the library name LIBCMTD.lib into the .obj file so that the linker will use LIBCMTD.lib to resolve external symbols. For details, please refer to this MSDN article:
    https://msdn.microsoft.com/en-us/library/2kzt1wy3(VS.71).aspx
    Its very useful.
    Also
    MDd stands for Multi-threaded Debug DLL
    MTd stands for Multi-threaded Debug
    Thanks,
    Kiran

  • LNK2019 unresolved external symbol issue

    Hello,
    i checked the thread https://social.msdn.microsoft.com/Forums/vstudio/en-US/11977b92-0077-4ff8-be36-e04e3f6c36aa/error-lnk2019-unresolved-external-symbol?forum=vcgeneral
    I added extern "C", but it still didn't work. 
    May i know how to fix it?
    /*++
    Copyright (c) Advanced Windows Debugging (ISBN 0321374460) from Addison-Wesley Professional. All rights reserved.
    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
    KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
    PURPOSE.
    #include"stdafx.h"
    #include <windows.h>
    #include <stdio.h>
    #include <conio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <iostream>
    #include <memory>
    #include <process.h>
    #include <malloc.h>
    #include "menu.h"
    #include "debug.h"
    #pragma auto_inline(off)
    int CalledFunction1(int a){ return 1; }
    int CalledFunction2(int a, int b){ return 2; }
    int CalledFunction3(int a, int b, int c){ return 3; }
    int CalledFunction4(int a, int b, int c, int d){ return 4; }
    int CalledFunction5(int a, int b, int c, int d, int e){ return 5; }
    void try_except();
    class Global
    public:
    int m_ref;
    Global() :m_ref(1){};
    ~Global()
    m_ref = 0;
    } gGlobal;
    void RaiseBP()
    DebugBreak();
    void RaiseCPP()
    throw 0;
    void RaiseAV()
    WCHAR* invalidAddress = 0;
    *invalidAddress = 0;
    void RaiseStackOverFlow(__int64 limit)
    if (limit > 10) return;
    RaiseStackOverFlow(limit);
    void __cdecl RaiseStackOverFlowThread(void * threadParam)
    Sleep(1000);
    __int64 limit = (__int64)threadParam;
    RaiseStackOverFlow(limit);
    class KBTest
    int m_lastN;
    public:
    KBTest::KBTest()
    m_lastN = -1;
    virtual ~KBTest()
    #pragma optimize("y",off)
    static unsigned int __cdecl Fibonacci_fpo(unsigned int n)
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default: return Fibonacci_fpo(n - 1) + Fibonacci_fpo(n - 2);
    #pragma optimize("y",on)
    static unsigned int __cdecl Fibonacci_cdecl(unsigned int n)
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default: return Fibonacci_cdecl(n - 1) + Fibonacci_cdecl(n - 2);
    static unsigned int __fastcall Fibonacci_fastcall(unsigned int n)
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default: return Fibonacci_fastcall(n - 1) + Fibonacci_fastcall(n - 2);
    static unsigned int __stdcall Fibonacci_stdcall(unsigned int n)
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default: return Fibonacci_stdcall(n - 1) + Fibonacci_stdcall(n - 2);
    unsigned int Fibonacci_thiscall(unsigned int n)
    m_lastN = n;
    int localN = n + gGlobal.m_ref;
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default:
    return Fibonacci_thiscall(localN - 2) + Fibonacci_thiscall(localN - 3);
    extern "C"
    int Function5(int a, int b, int c, int d, int e);
    void Stack()
    wprintf(L"F (32) = %d\n", KBTest::Fibonacci_stdcall(32));
    extern "C"
    void Stack64()
    wprintf(L"%d\n", Function5(1, 2, 3, 4, 5));
    void StackObj()
    KBTest kbTest;
    wprintf(L"F (32) = %d\n", kbTest.Fibonacci_thiscall(32));
    void StackFPO()
    wprintf(L"F (32) = %d\n", KBTest::Fibonacci_fpo(32));
    void StackFast()
    wprintf(L"F (32) = %d\n", KBTest::Fibonacci_fastcall(32));
    void StackCdecl()
    wprintf(L"F (32) = %d\n", KBTest::Fibonacci_cdecl(32));
    void StackOverflow()
    _beginthread(&RaiseStackOverFlowThread, 0x1, NULL);
    _beginthread(&RaiseStackOverFlowThread, 0x1, NULL);
    _beginthread(&RaiseStackOverFlowThread, 0x1, NULL);
    _getch();
    void HandledAV()
    __try
    RaiseAV();
    __except (TRUE)
    void HandledBP()
    __try
    RaiseBP();
    __except (TRUE)
    void OutputDebug()
    OutputDebugStringA("Application ");
    OutputDebugStringW(L" running\n");
    OPTIONS options[] = {
    { L'1', L"To generate access violation exception", RaiseAV },
    { L'2', L"To generate breakpoint exception", RaiseBP },
    { L'3', L"To generate C++ exception", RaiseCPP },
    { L'4', L"To generate a standard stack", Stack },
    { L'5', L"To generate a standard call stack(x64)", Stack64 },
    { L'6', L"To generate a C++ call stack", StackObj },
    { L'7', L"To generate a Fast call stack", StackFast },
    { L'8', L"To generate a cdecl call stack", StackCdecl },
    { L'9', L"To generate a FPO call stack", StackFPO },
    { L'a', L"To generate a stack overflow", StackOverflow },
    { L'b', L"To generate a handled access violation exception", HandledAV },
    { L'c', L"To generate a handled breakpoint exception", HandledBP },
    { L'd', L"To check the exception chain", try_except },
    { L'e', L"To call OutputDebugString", OutputDebug },
    { L'x', L"To exit", NULL },
    int _cdecl wmain(ULONG argc, WCHAR* argv[])
    AppInfo appInfo = AppInfo(options);
    appInfo.Loop();
    return 0;
    Error is: 
    Error 1
    error LNK2019: unresolved external symbol _Function5 referenced in function _Stack64
    \ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj
    ConsoleApplication1
    Error 2
    error LNK1120: 1 unresolved externals
    \ConsoleApplication1\Debug\ConsoleApplication1.exe
    1 1
    ConsoleApplication1
    Cheers,
    Axel

    Hi Simon,
    i added extern "C" before all function5, but the error still persisted and error message is the same like:
    Error 1
    error LNK2019: unresolved external symbol _Function5 referenced in function _Stack64
    \ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.obj
    ConsoleApplication1
    Error 2
    error LNK1120: 1 unresolved externals
    \ConsoleApplication1\Debug\ConsoleApplication1.exe
    1 1
    ConsoleApplication1
    /*++
    Copyright (c) Advanced Windows Debugging (ISBN 0321374460) from Addison-Wesley Professional. All rights reserved.
    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
    KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
    PURPOSE.
    #include"stdafx.h"
    #include <windows.h>
    #include <stdio.h>
    #include <conio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <iostream>
    #include <memory>
    #include <process.h>
    #include <malloc.h>
    #include "menu.h"
    #include "debug.h"
    #pragma auto_inline(off)
    int CalledFunction1(int a){ return 1; }
    int CalledFunction2(int a, int b){ return 2; }
    int CalledFunction3(int a, int b, int c){ return 3; }
    int CalledFunction4(int a, int b, int c, int d){ return 4; }
    extern "C"
    int CalledFunction5(int a, int b, int c, int d, int e){ return 5; }
    void try_except();
    class Global
    public:
    int m_ref;
    Global() :m_ref(1){};
    ~Global()
    m_ref = 0;
    } gGlobal;
    void RaiseBP()
    DebugBreak();
    void RaiseCPP()
    throw 0;
    void RaiseAV()
    WCHAR* invalidAddress = 0;
    *invalidAddress = 0;
    void RaiseStackOverFlow(__int64 limit)
    if (limit > 10) return;
    RaiseStackOverFlow(limit);
    void __cdecl RaiseStackOverFlowThread(void * threadParam)
    Sleep(1000);
    __int64 limit = (__int64)threadParam;
    RaiseStackOverFlow(limit);
    class KBTest
    int m_lastN;
    public:
    KBTest::KBTest()
    m_lastN = -1;
    virtual ~KBTest()
    #pragma optimize("y",off)
    static unsigned int __cdecl Fibonacci_fpo(unsigned int n)
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default: return Fibonacci_fpo(n - 1) + Fibonacci_fpo(n - 2);
    #pragma optimize("y",on)
    static unsigned int __cdecl Fibonacci_cdecl(unsigned int n)
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default: return Fibonacci_cdecl(n - 1) + Fibonacci_cdecl(n - 2);
    static unsigned int __fastcall Fibonacci_fastcall(unsigned int n)
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default: return Fibonacci_fastcall(n - 1) + Fibonacci_fastcall(n - 2);
    static unsigned int __stdcall Fibonacci_stdcall(unsigned int n)
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default: return Fibonacci_stdcall(n - 1) + Fibonacci_stdcall(n - 2);
    unsigned int Fibonacci_thiscall(unsigned int n)
    m_lastN = n;
    int localN = n + gGlobal.m_ref;
    switch (n)
    case 0: STOP_ON_DEBUGGER; return 0;
    case 1: return 1;
    default:
    return Fibonacci_thiscall(localN - 2) + Fibonacci_thiscall(localN - 3);
    extern "C"
    int Function5(int a, int b, int c, int d, int e);
    void Stack()
    wprintf(L"F (32) = %d\n", KBTest::Fibonacci_stdcall(32));
    extern "C"
    void Stack64()
    wprintf(L"%d\n", Function5(1, 2, 3, 4, 5));
    void StackObj()
    KBTest kbTest;
    wprintf(L"F (32) = %d\n", kbTest.Fibonacci_thiscall(32));
    void StackFPO()
    wprintf(L"F (32) = %d\n", KBTest::Fibonacci_fpo(32));
    void StackFast()
    wprintf(L"F (32) = %d\n", KBTest::Fibonacci_fastcall(32));
    void StackCdecl()
    wprintf(L"F (32) = %d\n", KBTest::Fibonacci_cdecl(32));
    void StackOverflow()
    _beginthread(&RaiseStackOverFlowThread, 0x1, NULL);
    _beginthread(&RaiseStackOverFlowThread, 0x1, NULL);
    _beginthread(&RaiseStackOverFlowThread, 0x1, NULL);
    _getch();
    void HandledAV()
    __try
    RaiseAV();
    __except (TRUE)
    void HandledBP()
    __try
    RaiseBP();
    __except (TRUE)
    void OutputDebug()
    OutputDebugStringA("Application ");
    OutputDebugStringW(L" running\n");
    OPTIONS options[] = {
    { L'1', L"To generate access violation exception", RaiseAV },
    { L'2', L"To generate breakpoint exception", RaiseBP },
    { L'3', L"To generate C++ exception", RaiseCPP },
    { L'4', L"To generate a standard stack", Stack },
    { L'5', L"To generate a standard call stack(x64)", Stack64 },
    { L'6', L"To generate a C++ call stack", StackObj },
    { L'7', L"To generate a Fast call stack", StackFast },
    { L'8', L"To generate a cdecl call stack", StackCdecl },
    { L'9', L"To generate a FPO call stack", StackFPO },
    { L'a', L"To generate a stack overflow", StackOverflow },
    { L'b', L"To generate a handled access violation exception", HandledAV },
    { L'c', L"To generate a handled breakpoint exception", HandledBP },
    { L'd', L"To check the exception chain", try_except },
    { L'e', L"To call OutputDebugString", OutputDebug },
    { L'x', L"To exit", NULL },
    int _cdecl wmain(ULONG argc, WCHAR* argv[])
    AppInfo appInfo = AppInfo(options);
    appInfo.Loop();
    return 0;
    This testing code is for testing different scenario such like AV, breakpoint exception (for debug pratice).
    I compared other functions, which haven't any error and no need to decorate with extern "C".
    May i know the reason for that?
    Cheers,
    Axel

  • Unresolved external symbol _sqlglm

    Hi all
    I'm having trouble using Pro*C. I precompile the .pc file without problems but when I try to make the c file I get the error below:
    ora2c.obj : error LNK2019: unresolved external symbol sqlglm referenced in function sql_error
    ora2c.obj : error LNK2019: unresolved external symbol sqlgls referenced in function sql_error
    I have included sqlcpr.h in the code and it is in the directory I run the compile commands from.
    I think I am missing some libraries in my makefile?
    My makefile currently contains
    ORACLELIBS = C:\Oracle\product\10.1.0\Client\oci\lib\msvc\oci.lib
    link $(LFLAGS) -out:$*.exe $*.obj $(OBJS) $(ORACLELIBS)
    link $(LFLAGS) -out:$*.exe $*.obj C:\Oracle\product\10.1.0\Client\precomp\lib\oraSQL10.LIB
    link $(LFLAGS) -out:$*.exe $*.obj C:\Oracle\product\10.1.0\Client\precomp\lib\msvc\oraSQX10.LIB
    Could anyone tell me if there is another lib I need to include?
    Thanks in advance!

    Hi,
    orasql10.lib is what you want:
    C:\oracle\10.2\database\precomp\LIB>dumpbin /exports orasql10.lib | findstr /c:"sqlglm"
    sqlglm
    sqlglmt
    What's up with the 3 different link lines?
    Regards,
    Mark

  • LNK2019: unresolved external symbol errors.

    I am new to JNI and I am experimenting with a C library we have. I could compile the java code and create the .h header file. When I tried to compile the .c file and generate a .dll file, i get the following link errors.
    cl -I:C:\projects\NewLogon -LD Logon.c -Felogon.dll -link /LIBPATH:"C:\projects\NewLogon\lib\"
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
    Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.
    Logon.c
    Microsoft (R) Incremental Linker Version 7.10.3077
    Copyright (C) Microsoft Corporation. All rights reserved.
    /dll
    /implib:logon.lib
    /out:logon.dll
    /LIBPATH:C:\projects\NewLogon\lib
    Logon.obj
    Creating library logon.lib and object logon.exp
    Logon.obj : error LNK2019: unresolved external symbol SAPIHandleRelease referenced in function Java_Logon_logon@8
    Logon.obj : error LNK2019: unresolved external symbol SAPILogon referenced in function Java_Logon_logon@8
    Logon.obj : error LNK2019: unresolved external symbol SAPIHandleAcquire referenced in function Java_Logon_logon@8
    Logon.obj : error LNK2019: unresolved external symbol SAPIExtendedLastErrorGetreferenced in function Java_Logon_logon@8
    Logon.obj : error LNK2019: unresolved external symbol _SAPIInit referenced in fu
    nction JavaLogon_logon@8
    logon.dll : fatal error LNK1120: 5 unresolved externals
    I hope the syntax of the command is correct, if not, please let me know. All the unresolved methods are supposed to be in the library files (.lib) located in the "NewLogon\lib" folder. I am not positive about that assumption, is there a way to look at a .lib file and make sure that the methods are defined correctly?
    Any help is greatly appreciated and thanks in advance.
    Hugo

    I am having the same errors, can anyone provide some help with this?

  • Unresolved external symbol _sqlcxt

    hello
    i was trying to compile Pro*C program on windows 7 professional 64 bit with visual studio, and I get the following error while linking library. Please help!
    envionment:
    windows 7 professional 64 bit
    Oracle Database 11g Release 2 Client (11.2.0.1.0) for Microsoft Windows (x64)
    visual studio(i tried both 2005 and 2008)
    error LNK2019: unresolved external symbol _sqlcxt referenced in function.
    error LNK2019: unresolved external symbol _sqlglm referenced in function.
    the program was compiled and worked on windows xp/oracle 9/visual studio 2005 just fine.
    Thanks in advance.
    Ivan

    try this:
    in the IDE go to project properties, configuration manager and create a new config for 64bit platform - I had exaqctly the same issue when porting existing code that runs fine using 10g lib but wouldn't find sqlcxt using 11g lib under win7 64 and vs2010 - changing platform to 64bit fixed it for me

  • Error LNK2019; unresolved external symbol _SDL_SetVideoMode

    I had included SDL2-2.0.3 and i have copied the .dll files and did all the setup for the sdl in the directories and linker, but i get these errors....
    error LNK2019; unresolved external symbol _SDL_SetVideoMode referenced in function _SDL_main
    error LNK2019; unresolved external symbol _SDL_Flip referenced in function _SDL_main
    error LNK2019; unresolved external symbol _SDL_WM_SetCaption referenced in function _SDL_main
    error LNK1120:3 unresolved externals
    any help? 

    SDL is not a Microsoft or standard library. You should check with people that know the library, but the errors make it look like you are omitting a .lib file.

  • [Linker Error] Unresolved external 'niScope_init' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0B\UNIT1.OBJ

    Hi,
    First of all I'm sorry about my English. I'm developing a software on Builder C++ by Borland and we bought an NI DAQ 5112 PCI. I'd like to know if is possible to use the high-level functions from niScope (such as niScope_init, _AutoSetup, _close...) on this plataform. I'm asking it 'cause I could run every "example program" on it whithout any problem. But when I try to use it on my own project the message below is shown: unresolved external "niScope_init" referenced from "path_of_my_project".
    thanks,
    Allan

    Make sure you're linking to the niScope inport library.  I'm attaching the Borland import library from NI-SCOPE 2.9.1.
    (These forums won't let me attach a .lib.  So download this file, and rename it "niScope.lib")
    Attachments:
    niScope.txt ‏72 KB

  • "error LNK2019: unresolved external sym..." after porting SDKFilehelper function from CS4 to CS3

    The following code is running with Indesign CS4:
    #include "SDKFileHelper.h" 
    SDKFileSaveChooser filesaveChooser;filesaveChooser.ShowDialog();
    It doesn't compile with Indesign SDK CS3, i get a LNK2019 unresolved external symbol for every call of ::SDKFileHelper.
    Any suggestions?

    Thank you very much, compiled successfully!

  • OCCI Link problem (Error LNK2019: unresolved external symbol) in VS2012

    Hi,
    I'm having a hard time with this. I'm trying to implement OCCI within my application. Error I'm getting is:
    Error     1     error LNK2019: unresolved external symbol "public: static class oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum oracle::occi::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@SAPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0W4Mode@123@PAXP6APAX2I@ZP6APAX22I@ZP6AX22@Z@Z) referenced in function "private: bool __thiscall ServerDataLoader::getPreSuffixesFromDB(void)" (?getPreSuffixesFromDB@ServerDataLoader@@AAE_NXZ)     P:\code\VizTool\VizPortal\DwgDgnConverter\ServerDataLoader.obj     DwgDgnConverter
    Error     2     error LNK1120: 1 unresolved externals     P:\code\VizTool\VizPortal\Debug\DwgDgnConverter.exe     1     1     DwgDgnConverter
    Yes, it looks like linking problem,...but for me everything seems set-up.
    - Included header files (from instantclient-sdk-windows.x64-11.2.0.3.0.zip)
    - Included library path from OCCI download (11.2.0.3.0)
    - Added oraocci11d.lib in linker
    Please, what am I doing wrong?
    Millions of thanks for any kind of feedback ;-)

    Have you succeeded? I tried vs2012 and it passed compilation, but gave the run-time error of _crtisvalidheappointer. But the same code runs well with vs2010. I think Oracle needs to publish the new patch for vs2012                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • "Unresolved external"-- How do I compile NI-DAQ apps with Borland C++ ?

    I'm a newbie. I am attempting to resurrect some code which a former worker left behind.
    I am getting "Error: Unresolved external..." at link time for all the NI-DAQ calls.
    More info:
    I've installed Borland C++ 5.5 and its associated command line tools.
    I've added E:\Borland\Bcc55 and E:\Borland\Bcc55\bin to my path (NT, so I use Control Panel-->System)
    I have created bcc32.cfg and ilink32.cfg files per Borland's readme.
    I've tried various ways of adding -L"C:\Program Files\National Instruments\NI-DAQ\Lib" to the compile, both in the command line and in the .cfg files.
    What am I missing? More details available on request.
    Any help would be greatly appreciated.
    Since
    rely,
    Mike

    Mike,
    I was wondering if you ever found a solution to this issue, and if so what was it. I've run into a similar problem and the knowledgebase article which was suggested to you has not helped me.
    Any information you might have would be greatly appreciated.
    I'm using:
    Borland C++ Builder 5
    Ni-daq 6.9.1
    And I get the following error message when I build my project:
    [Linker Error] Unresolved external 'DIG_Out_Prt' referenced from
    C:\SCOTT\DLL_CODE\ELLIPSE_TEST1\WRITETOPB.OBJ
    Scott
    [email protected]

  • C++ Kinect SDK: error LNK2019 unresolved external symbol

    I'm receiving the message "error: LNK2019" error when I attempt to run a basic C++ Kinect program.  I am running Windows 7 32bit with the Kinect SDK 1.0 and developing in Visual Studio 2010.  The included Skeletal Viewer sample works correctly,
    so I believe my problem lies in the project configuration.  I tried comparing my project config to the sample's, but I can't find any differences so I thought I'd open this up to the forums.  Is there any missing or incorrect information that I'm
    not seeing?  Or is there some other configuration I should be checking?
    Thank you in advance.
    #include "stdafx.h"
    #include <iostream>
    #include <windows.h>
    #include <NuiApi.h>
    #include <stdio.h>
    -- Include Directories: --
    $(VCInstallDir)include;
    $(VCInstallDir)atlmfc\include;
    $(WindowsSdkDir)include;
    $(FrameworkSDKDir)\include;
    $(KINECTSDK10_DIR)\inc;
    -- Library Directories --
    $(VCInstallDir)lib;
    $(VCInstallDir)atlmfc\lib;
    $(WindowsSdkDir)lib;
    $(FrameworkSDKDir)\lib;
    $(KINECTSDK10_DIR)\lib\x86;
     These are the specific errors I'm getting:
    1>kinectruntime.obj : error LNK2019: unresolved external symbol __imp__NuiImageStreamGetNextFrame@12 referenced in function _main
    1>kinectruntime.obj : error LNK2019: unresolved external symbol __imp__NuiImageStreamOpen@24 referenced in function _main
    1>kinectruntime.obj : error LNK2019: unresolved external symbol __imp__NuiInitialize@4 referenced in function _main

    Is kinect10.lib listed among the libraries in your project's properties, under Linker | Input | Additional Dependencies?
    If not, that is the likely cause for the errors.
    John
    K4W Dev
    That was it!  Thank you for the quick response and the clear directions.
    Since I see you're with Microsoft, I'd like to point out this step was missing from the set up instructions that come with the SDK installation.  This guide says to link kinect10.lib by linking
    $(KINECTSDK10_DIR)\lib\x86;  As we saw here, that's not quite the same thing!
    Programming Guide > Using Visual Studio > To Create an Unmanaged Application > Step #5

  • C++ builder 6 unresolved external error loading a dll

    Im using LabVIEW 6.1 and i'm trying to export a DLL that performs math routines (such as FFT and stuff..) to include it im my BC#B6 project. I chose the C Calling convention (because the Standard Calling Convention cannot be converted by the Coff2omf.exe tool (to get rid of the 0x21 error)). Still, i now get the following linking error (it searches for an underscore before the first letter of my function):
    [Linker Error] Unresolved external '_calcul' referenced from E:\WORK\PROJECT\CALLINGFORM.OBJ
    for now i only have a simple "multiply by 2" function that takes an int and returns an int :
    int16 __cdecl calcul(int16 Input);
    I would like to know...
    1 - How to get rid of this problem - where is the source
    of the problem (application builder i guess)?
    2 - Will I have this problem if i link dynamically the driver?
    3 - do i need to link the Run-time engine dlls to make it work in both static and dynamic loading?
    Simon Lapierre
    [email protected]

    Hello Simon,
    Thank you for contacting National Instruments.
    When you created your DLL in LabVIEW, a LIB file should also have been created. To call the DLL in C#, make sure that you include the LIB file in C#.
    In answer to your questions:
    1. You can solve this problem by including the LIB file in C#.
    2. You will not have this problem if you dynamically link the driver.
    3. You do not need to link the Run-time engine DLLs to make it work in both static and dynamic loading.
    I hope this helps. Let me know if this does not solve your problem.
    Sean C.
    Applications Engineer
    National Instruments

  • Unresolved external symbol NumericArrayResize when compiling a DLL at x64 platform using vs2005

    I have a dll which is called by Labview through "Call Library Function Node". I want to port this dll to x64 platform from 32bit code which runs well at x86 computer. So, I download the Labview 8.5 evaluation version, replace the orginal referenced header file and library file in 32 bit code, such as extcode.h, fundtypes.h, labview.lib etc. Then I compile the code with Visual Studio 2005, error occurs when link "error LNK2001: unresolved external symbol NumericArrayResize". I don't know why because I really link library labview.lib. Can anyone help me?

    Please check the solution in this thread, this may help you solve your problem.
    http://stackoverflow.com/questions/925540/how-to-resolve-the-following-linker-errors-in-visual-studio
    If you still get the same problem after try the solution, please feel free and let me know.
    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.

Maybe you are looking for