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

Similar Messages

  • Error LNK2019: unresolved external symbol GetBestRoute

    Hi all, a C++ beginner here. Basically I am trying to see if my network devices are connected to a specific ip address, without actually using sockets or the connect() function (due to project rules), and after thats done, I retrieve the MAC address
    of the device that is currently being connected.
    However I got this error while compiling my code.
    1>ATLProject1.obj : error LNK2019: unresolved external symbol _GetBestRoute@12 referenced in function "bool __cdecl getMacAddress(unsigned long)" (?getMacAddress@@YA_NK@Z)
    #include "stdafx.h"
    #include "resource.h"
    #include "ATLProject1_i.h"
    #include "Iphlpapi.h"
    using namespace ATL;
    class CATLProject1Module : public ATL::CAtlServiceModuleT< CATLProject1Module, IDS_SERVICENAME >
    public :
    DECLARE_LIBID(LIBID_ATLProject1Lib)
    DECLARE_REGISTRY_APPID_RESOURCEID(IDR_ATLPROJECT1, "{4C585367-A6D5-453D-AA45-3DC868030901}")
    HRESULT InitializeSecurity() throw()
    // TODO: CoInitializeSecurity を呼び出し、サービスのための適切なセキュリティ設定を指定します
    // 推奨 - PKT レベルの認証、
    // RPC_C_IMP_LEVEL_IDENTIFY の偽装レベル、
    // および適切な非 NULL セキュリティ記述子。
    return S_OK;
    CATLProject1Module _AtlModule;
    bool getMacAddress(IPAddr managercom)
    bool connection = false;
    PMIB_IPFORWARDROW routept = (PMIB_IPFORWARDROW)malloc(sizeof(MIB_IPFORWARDROW));;
    GetBestRoute(managercom,0,routept);
    //retrieving MAC address code will be added later
    return connection;
    int main(int argc, char *argv[])
    getMacAddress(INADDR_ANY);
    extern "C" int WINAPI _tWinMain(HINSTANCE /*hInstance*/, HINSTANCE /*hPrevInstance*/,
    LPTSTR /*lpCmdLine*/, int nShowCmd)
    return _AtlModule.WinMain(nShowCmd);
    Am I lacking something or are there some bad settings in my project?
    I am using Windows 7 and Visual Studio 2013, and created my code in ATL project.
    Any help and comments are appreciated. Thank you!!!

    Hi MrCapybara,
    Since you got this issue when compiling my code which seems that this issue is related to your project, and this forum is to discuss and ask questions about the
    Visual Studio Debugging tools, Visual Studio Profiler tools, and Visual Studio Ultimate IntelliTrace.
    For development issue about C++, I would recommend you post it in C++ forum to get dedicated supports, you could post another thread there.
    Regards. 
    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.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • 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

  • 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?

  • Error 106 error LNK2019: unresolved external symbol

    Hi there,
    I'm trying to instantiate a Factory object to then get a SchemaValidator from createSchemaValidator in C++.
    Here's the code snippet:
    Tools::Factory<?, Element> *myFactory = new Tools::Factory<? ,Element>();
    SchemaValidator<Element> *mySchemaValidator = myFactory->createSchemaValidator(SchValidatorIdType::SchValCXml, NULL);
    Basically, I can't seem to find the right template argument which is supposed to be of type "Context" but I can't figure it out. I tried using "xmlctx" but that leads to the following compiling error:
    Error 106 error LNK2019: unresolved external symbol "public: class OracleXml::Parser::SchemaValidator<class Element> * __thiscall OracleXml::Tools::Factory<struct xmlctx,class Element>::createSchemaValidator(enum OracleXml::Parser::SchValidatorIdType,struct xmlctx *)" (?createSchemaValidator@?$Factory@Uxmlctx@@VElement@@@Tools@OracleXml@@QAEPAV?$SchemaValidator@VElement@@@Parser@3@W4SchValidatorIdType@53@PAUxmlctx@@@Z) referenced in function _main TestCppXDK1.obj
    I verified I linked my project to oraxml10.lib.
    Help?
    Thanks!

    yeah I checked it but it was set as you said. another interesting thing is I can access "pi" variable in math library. ex:
    double a= NI :: CNiMath :: Pi;
    but when I use
    NI::CNiMath::FFT(fftData,imgData);
    I get these errors
    mfc3 error LNK2019: unresolved external symbol "public: int __thiscall NI::CniDemo::Access(void)" (?Access@CniDemo@NI@@QAEHXZ) referenced in function "public: static enum NI::MathError __cdecl NI::CNiMath::FFT(class NI::CNiComplexVector &)" (?FFT@CNiMath@NI@@SA?AW4MathError@2@AAV?$CNiComple​xVector@N@2@@Z)
    mfc3 error LNK2019: unresolved external symbol "class std::auto_ptr NI::global_demo" (?global_demo@NI@@3V?$auto_ptr@VCniDemo@NI@@@std@@​A) referenced in function "public: static enum NI::MathError __cdecl NI::CNiMath::FFT(class NI::CNiComplexVector &)" (?FFT@CNiMath@NI@@SA?AW4MathError@2@AAV?$CNiComple​xVector@N@2@@Z)Message Edited by alperkal on 12-16-2005 06:00 AM

  • "error LNK2019: unresolved external symbol" help......!

    Hi, i'm still newbie with Oracle 10g and VC8. The problem is i found this LNK2019 error when build my project. Here the steps i take when run VC8 for the first time:
    (1). In PROJECT->PROPERTIES->CONFIGURATION PROPERTIES->C/C++->ADDITIONAL INCLUDE, i add the "C:\oracle\product\10.1.0\db_1\OCI\include"
    (2). In PROJECT->PROPERTIES->CONFIGURATION PROPERTIES->LINKERS->ADDITIONAL LIBRARY, i add the c:\oracle\product\10.1.0\db_1\OCI\lib\MSVC\vc8 (i've downloaded the OCI for vc8)
    (3). I make new project with 1 cpp page with this code:
    #include <iostream>
    #include <occi.h>
    using namespace oracle::occi;
    using namespace std;
    int main (void)
    Environment *env = Environment::createEnvironment();           
    (4).I compiled this code and succedded
    (5).I build this code and i get this error:
    ------ Build started: Project: Example, Configuration: Debug Win32 ------
    Linking...
    ok.obj : error LNK2019: unresolved external symbol "public: static class
    oracle::occi::Environment * __cdecl oracle::occi::Environment::createEnvironment(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@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z) referenced in function _main
    C:\Documents and Settings\Frederick\Example\Debug\Example.exe : fatal error LNK1120: 1 unresolved externals
    Build log was saved at "file://C:\Documents and Settings\Frederick\Example\Example\Debug\BuildLog.htm"
    Example - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    I've tried everything i know. If someone have experienced this error, please let me know the solution. Thanks in advance...
    Frederick A

    I'm not very new to C++, but I'm new to Visual Studio and working with C++ in MS environment. I'm experiencing the same problem using
    Studio 2010 Microsoft Visual Studio 2010
    Version 10.0.30319.1 RTMRel
    Microsoft Visual C++ 2010 01021-532-2002102-70432
    Microsoft Visual C++ 2010
    On a Windows 7 Professional 64 bit OS connecting to a 11gR2 (64) database on the same system
    I've performed the exact steps in this post and I still receive the link error after performing all the steps identified with the exception that I performed them with respect to the 11gR2 libs & I'm using the libs / includes from this database's home.
    I'm sure that I'm missing something trivial, but I'm at a loss to determine what it is. Your assistance in these matters is greatly appreciated.

  • LNK2019: unresolved external symbol _RfcOpenEx

    Hi,
    i downloaded the SAP RFC SDK 7.20 unicode (Windows Server on IA32 32bit)
    opened VisualStudio 2010
    created new MFC dialog based project
    added additional include directories (linked to SDK folder)
    added additional library folders (also linked to SDK directory)
    added librfc32u.lib;libsapucum.lib as additional dependency
    added #include "saprfc.h"
    put some code into the project
    void CsaprfcsdkDlg::OnBnClickedButton1()
         RFC_HANDLE rfc_handle;
         RFC_ERROR_INFO_EX rfc_err_inf_ex;
         rfc_handle = RfcOpenEx("",&rfc_err_inf_ex);
    and tried to compile ... the result is an error that the external symbol RfcOpenEx is unresolved.
    1>------ Build started: Project: saprfcsdk, Configuration: Debug Win32 -
    1>  saprfcsdkDlg.cpp
    1>saprfcsdkDlg.obj : error LNK2019: unresolved external symbol _RfcOpenEx@8 referenced in function "public: void __thiscall CsaprfcsdkDlg::OnBnClickedButton1(void)" (?OnBnClickedButton1@CsaprfcsdkDlg@@QAEXXZ)
    1>...\saprfcsdk\Debug\saprfcsdk.exe : fatal error LNK1120: 1 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Anyone has an idea what i am doing wrong ?
    I have a Win7 64Bit running but i also tried it on VS2003 and WinXP ... but got the same error.
    Thanks for your hints.

    Hey Bernhard,
    i made a test and this test was successful. It is more or less a workaround but maybe it helps.
    I used the non unicode SDK and opened a RFC connection, called a self written function to retrieve data.
    After calling the RfcCallReceiveEx i made a MultibyteToWideChar to convert all the received stuff to utf-8.
    Before the conversion i got this:
    el. Nr.: 00xxxxxxxxxxx
    *Person:
         Herr Frank é«u02DCæu2013°åu0152ºæ¨ªå±±è·¯106号 Wüldemann
    *Firma:
         CRM-TEST Name 2
         64293 Darmstadt
         DE
    *Extras:
         Rating:     Ba
         Firma-Nr.:     0003010048
         Person-Nr:     0003010069
    After the conversion i got this : (don't wonder first name is a test with asian characters)
    http://www.l2server.de/unicode.jpg
    I would imagine when you make an Widechartomultibyte before sending information to the SAP system  you could receive the correct input also.
    Maybe this will help you to.
    Regards Frank
    snip code ***
    CString CCTICallHandler::ReadDataFromSAP(CString sANum, CString sHost, CString sSysNr, CString sUser, CString sPwd)
         try
              if(sHost==_T("") || sSysNr==_T("") || sUser==_T("") || sPwd==_T(""))
                   return _T("");
              RFC_HANDLE rfc_handle;
              RFC_ERROR_INFO_EX rfc_err_inf_ex;
              CString sConnStr;
              sConnStr.Format(_T("ASHOST=%s CLIENT=100 USER=%s PASSWD=%s LANG=E SYSNR=%s TRACE=0"),sHost,sUser,sPwd,sSysNr);
              rfc_char_t * conn_str = (rfc_char_t*)malloc(sConnStr.GetLength()+1);
              WideCharToMultiByte(CP_ACP,0,sConnStr,sConnStr.GetLength()1,conn_str,sConnStr.GetLength()1,"",FALSE);
              rfc_handle = RfcOpenEx(conn_str,&rfc_err_inf_ex);
              if(rfc_handle != 0)
                   rfc_char_t function_name[] = "Z_HBM_CTI_FIND_BP_BY_NUMBER";
                   rfc_char_t * exception = NULL;
                   RFC_RC rfc_rc;
                   char * chANum = (char*)malloc(sANum.GetLength()+1);
                   int sz = sANum.GetLength() + 1;
                   WideCharToMultiByte(CP_ACP,0,sANum,sz,chANum,sz,"",FALSE);
                   RFC_PARAMETER importing[2],exporting[2];
                   RFC_STRING value1 = (RFC_STRING)chANum;//m_sANumber;
                   RFC_STRING value2;
                   exporting[0].name = "TEL_NUMBER";
                   exporting[0].nlen = strlen (exporting[0]. name);
                   exporting[0].type = RFCTYPE_STRING;
                   exporting[0].addr = &value1;
                   exporting[0].leng = sizeof(value1);
                   exporting[1].name = NULL;
                   importing[0].name = "RESULT";
                   importing[0].nlen = strlen(importing[0].name);
                   importing[0].addr = &value2;
                   importing[0].type = RFCTYPE_STRING;
                   importing[1].name = NULL;
                   rfc_rc = RfcCallReceiveEx(rfc_handle, function_name, exporting, importing, NULL, NULL ,&exception);
                   RfcClose(rfc_handle);
                   free(chANum);
                   free(conn_str);
                   CString sRetVal;
                   MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)value2,-1, sRetVal.GetBuffer(strlen((const char *)value2)), strlen((const char *)value2));
                   sRetVal.ReleaseBuffer(strlen((const char *)value2));
                   return sRetVal;
              else
                   return _T("Connection to CRM failed.");
         CRML_CATCH_UNI_RET_EMPTY
    snip code end ***

  • [need assistance​] error LNK2019: unresolved external symbol _CVIXMLLoa​dDocument

    I attempt to load an existing XML file and edit it with Microsoft Visual Studio 2008. Once I add the following function, I get the error LNK2019.
    CVIXMLDocument doc = 0;
    CVIXMLLoadDocument ("c:\\Temp\\AppTestCmd.xml", &doc); 
    1>01_cpp_list.obj : error LNK2019: unresolved external symbol _CVIXMLLoadDocument@8 referenced in function _main
    1>C:\sc\practice\01_cpp_list\Debug\01_cpp_list.exe : fatal error LNK1120: 1 unresolved externals
    I try to add the files and lib mentioned in the following link, but they do not help.
    http://forums.ni.com/t5/LabWindows-CVI/unresolved-​external-symbol-MSXML-IXMLxxx/m-p/1127380/highligh​...
    How can I fix it? Thanks!
    Here is the code piece. I have only one file in my MSVS project.
    ==================================================​==========
    #include <iostream>
    #include <cvixml.h>
    #include <msxmldom.h>
    #include <cvirte.h> // NI CVI
    #include <userint.h> // NI CVI
    #include <utility.h>
    using namespace std;
    int main ()
         CVIXMLDocument doc = 0;
         CVIXMLLoadDocument ("c:\\Temp\\AppTestCmd.xml", &doc);
         return 0;
    Solved!
    Go to Solution.

    Hi, 
    The link to the following include path has been added by two ways in Microsoft Visual Studio 2008.
    C:\Program Files (x86)\National Instruments\CVI2013\toolslib\toolbox
    (1) [menu bar, Tools -> Options -> Projects and Solutions -> VC++ Directories -> Include files
    (2) [menu bar, Project -> Configuration Properties -> C/C++ -> General -> Additional Include Directories
    "cvisupp.lib" and "cviwmain.lib" are added to linker input. I cannot find this one in my NI folders "cvirte.dll".
    In my MSVS project, add "cvixml.c" to the Source Files folder and "cvixml.obj" to the Resource Files folder.
    With the above settings, it ends up with the following compilation error.
    If we roll back to the initial code in the beginning of this discussion thread, we probably just miss one lib file or a few which contains CVIWindows XML function tree.
    ==================================================​=======
    1>------ Build started: Project: 01_cpp_list, Configuration: Debug Win32 ------
    1>Compiling...
    1>01_ni_xml.cpp
    1>cvixml.c
    1>c:\sc2\01_practice_template\01_cpp_list\cvixml.c(153) : error C2440: '=' : cannot convert from 'void *' to 'char *'
    1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast
    1>c:\sc2\01_practice_template\01_cpp_list\cvixml.c(308) : error C2440: '=' : cannot convert from 'void *' to 'char *'
    1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast
    1>c:\sc2\01_practice_template\01_cpp_list\cvixml.c(1488) : error C2664: 'MSXML_IXMLDOMNamedNodeMapGetlength' : cannot convert parameter 3 from 'int *' to 'long *'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>c:\sc2\01_practice_template\01_cpp_list\cvixml.c(1534) : error C2664: 'MSXML_IXMLDOMNamedNodeMapGetlength' : cannot convert parameter 3 from 'int *' to 'long *'
    1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
    1>Generating Code...
    1>Build log was saved at "file://c:\sc2\01_practice_template\01_cpp_list\01​_cpp_list\Debug\BuildLog.htm"
    1>01_cpp_list - 4 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========

  • Error LNK2019: unresolved external symbol

    Hi there,
    I'm trying to instantiate a Factory object to then get a SchemaValidator from createSchemaValidator.
    Here's the code snippet:
    Tools::Factory<?, Element> *myFactory = new Tools::Factory<? ,Element>();
    SchemaValidator<Element> *mySchemaValidator = myFactory->createSchemaValidator(SchValidatorIdType::SchValCXml, NULL);
    Basically, I can't seem to find the right template argument which is supposed to be of type "Context" but I can't figure it out. I tried using "xmlctx" but that leads to the following compiling error:
    Error     106     error LNK2019: unresolved external symbol "public: class OracleXml::Parser::SchemaValidator<class Element> * __thiscall OracleXml::Tools::Factory<struct xmlctx,class Element>::createSchemaValidator(enum OracleXml::Parser::SchValidatorIdType,struct xmlctx *)" (?createSchemaValidator@?$Factory@Uxmlctx@@VElement@@@Tools@OracleXml@@QAEPAV?$SchemaValidator@VElement@@@Parser@3@W4SchValidatorIdType@53@PAUxmlctx@@@Z) referenced in function _main     TestCppXDK1.obj     
    I verified I linked my project to oraxml10.lib.
    Help?
    Thanks!
    Message was edited by:
    user617632

    I'm not very new to C++, but I'm new to Visual Studio and working with C++ in MS environment. I'm experiencing the same problem using
    Studio 2010 Microsoft Visual Studio 2010
    Version 10.0.30319.1 RTMRel
    Microsoft Visual C++ 2010 01021-532-2002102-70432
    Microsoft Visual C++ 2010
    On a Windows 7 Professional 64 bit OS connecting to a 11gR2 (64) database on the same system
    I've performed the exact steps in this post and I still receive the link error after performing all the steps identified with the exception that I performed them with respect to the 11gR2 libs & I'm using the libs / includes from this database's home.
    I'm sure that I'm missing something trivial, but I'm at a loss to determine what it is. Your assistance in these matters is greatly appreciated.

  • 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.

  • 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 symbol __imp__JNI_CreateJavaVM@12 Under JDK 1.6

    I'm running on Microsoft Vista using VisualStudio 2008 to create a C++ program that starts a Java process through JNI. I'm using jdk1.6.0_13 which is currently the only JDK on my machine. I started with a very basic program to just boot strap the project, and immediately ran into an issue. I'm linking with the jvm.lib in the JDK lib directory, but I seem to still be missing the import reference for JNI_JavaCreateVM. Any idea why the linker can't pick up the reference?
    // Test2JNI.cpp : Defines the entry point for the console application.
    #include "stdafx.h"
    #include <jni.h>
    int _tmain(int argc, _TCHAR* argv[])
         JavaVM *jvm = NULL;       /* denotes a Java VM */
        JNIEnv *env = NULL;       /* pointer to native method interface */
        JavaVMInitArgs vm_args; /* JDK/JRE 6 VM initialization arguments */
        JavaVMOption* options = new JavaVMOption[1];
        options[0].optionString = "-Djava.class.path=lib/maxwell.jar";
        vm_args.version = JNI_VERSION_1_6;
        vm_args.nOptions = 1;
        vm_args.options = options;
        vm_args.ignoreUnrecognized = false;
        /* load and initialize a Java VM, return a JNI interface
         * pointer in env */
        jint result = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
        delete[] options;
        /* invoke the Main.test method using the JNI */
        jclass cls = env->FindClass("com.zenmonics.maxwell.Maxwell");
        jmethodID mid = env->GetStaticMethodID(cls, "main", "([Ljava.lang.String)V");
        env->CallStaticVoidMethod(cls, mid, 100);
        /* We are done. */
        jvm->DestroyJavaVM();
         return 0;
    Error
    1>------ Build started: Project: Test2JNI, Configuration: Debug Win32 ------
    1>Linking...
    1>Test2JNI.obj : error LNK2019: unresolved external symbol __imp__JNI_CreateJavaVM@12 referenced in function _wmain
    1>C:\Users\Owner\Business\Engagements\Zenmonics\Test2JNI\Debug\Test2JNI.exe : fatal error LNK1120: 1 unresolved externals
    1>Build log was saved at "file://c:\Users\Owner\Business\Engagements\Zenmonics\Test2JNI\Debug\BuildLog.htm"
    1>Test2JNI - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Link Line =
    /OUT:"C:\Users\Owner\Business\Engagements\Zenmonics\Test2JNI\Debug\Test2JNI.exe" /INCREMENTAL /NOLOGO /LIBPATH:"C:\Program Files\Java\jdk1.6.0_13\lib" /MANIFEST /MANIFESTFILE:"Debug\Test2JNI.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG /PDB:"C:\Users\Owner\Business\Engagements\Zenmonics\Test2JNI\Debug\Test2JNI.pdb" /SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT jvm.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

    HI,
    I am facing the same problem.
    Still you can look at my output
    I look for Dir structure. Declared all Env Variables too. And yes I also specified the jvm.dll for it. But still error remains same.
    C:\Program Files\xerox\practice\devprac>"c:\Program Files\Microsoft Visual Studio 8\VC\bin\cl.exe" -I"C:\Program Files\Microsoft Visual Studio 8\VC\include" -Ic:\Softwares\JDeveloper\jdk\include -Ic:\Softwares\JDeveloper\jdk\include\win32 -I"C:\Program Files\Microsoft Visual Studio 8\VC\lib" -IC:\Softwares\JDeveloper\jdk\jre\bin\server\jvm.dll -LD devprac_Use5.c -Fedevprac_Use5.exe
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
    Copyright (C) Microsoft Corporation. All rights reserved.
    devprac_Use5.c
    Microsoft (R) Incremental Linker Version 8.00.50727.42
    Copyright (C) Microsoft Corporation. All rights reserved.
    /dll
    /implib:devprac_Use5.lib
    /out:devprac_Use5.exe
    devprac_Use5.obj
    devprac_Use5.obj : error LNK2019: unresolved external symbol __imp__JNI_CreateJa
    vaVM@12 referenced in function _main
    devprac_Use5.exe : fatal error LNK1120: 1 unresolved externals

  • 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 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!

Maybe you are looking for

  • How to do packing for a delivery? (which transaction?)

    How to do packing for a outbound delivery? Which transaction is used for this purpose? I am trying to do post goods issue for a outbound delivery but it gives me the error 'Delivery item is not or only partially packed'. How to solve this? Thank you!

  • How do I run a Classic application on OS X Yosemite without paying anything?

    I have an old application from the early 2000s (like 2000-2004).  There's a Windows app and a Mac app.  I'm not sure what the oldest supported Mac OS version is.  The application is called "Pumpkin Masters CD Pattern Maker." Will someone please help

  • Condition Records in Sales Deal are displayed wrongly as u201CBlockedu201D

    Dear expert I need your help on issue Example Sales Deal # 123456: If Sales Deal is opened with transaction VB22 (e.g. to add a condition record or to amend one), then all condition records appear first as released (blank in column u201CSu201D status

  • How do I find and read mail messages on my SuperDuper backup?

    I have a new mbp and did not migrate anything from old mbp. I made a SuperDuper backup of old computer so I have data I may need. How do I find my mailboxes and be able to read messages that I need on my my backup. I know I could export mailboxes but

  • M4v to 4th gen ipod?

    Sorry if this is the wrong forum for this, please redirect as appropriate. I just purchased the new Bob Dylan ("Modern Times"), which contains five video tracks in m4v format. I naively assumed that, since I was not warned about compatibility issues,