Occi. Unresolved Unresolved Token

Тема в разделе "MS Visual C++", создана пользователем mibin, 22 окт 2014.

  1. mibin

    mibin Well-Known Member

    Регистрация:
    29 янв 2009
    Сообщения:
    48
    Симпатии:
    0
    Добрый день!

    Скачал Oracle Client и установил на машину.

    Далее скачал два файла:
    - instantclient-basic-windows.x64-12.1.0.2.0.zip
    - instantclient-sdk-windows.x64-12.1.0.2.0.zip

    Разархивировал в папку: C:\Oracle

    Далее создал CLR проект в VS 2013.
    В проекте указал пути в include и lib:
    Project - Project 1 Properties - VC++ Directories - Include Directories = C:\Oracle\instantclient_12_1\sdk\in clude
    Project - Project 1 Properties - VC++ Directories - Library Directories = C:\Oracle\instantclient_12_1\sdk\li b\msvc\vc12

    Подключил файл:
    Код (C++):
    #include <occi.h>
    В проект по кнопке повесил такое:
    Код (C++):
    private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
    oracle::occi::Environment * env = oracle::occi::Environment::createEnvironment(oracle::occi::Environment::DEFAULT);
    }
    При компиляции поллучаем следующую ошибку:
    <div class="sp-wrap"><div class="sp-head-wrap"><div class="sp-head folded clickable">Ошибка компиляции</div></div><div class="sp-body"><div class="sp-content">Error 1 error LNK2028: unresolved token (0A0003E3) "public: static class oracle::eek:cci::Environment * __cdecl oracle::eek:cci::Environment::createEnvironment(enum oracle::eek:cci::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@$$FSAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z) referenced in function "private: void __clrcall Project1::MyForm::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@MyForm@Project1@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) C:\Users\user\Documents\Visual Studio 2013\Projects\Project1\Project1\Project1.obj Project1
    Error 2 error LNK2028: unresolved token (0A0003E2) "public: static class oracle::eek:cci::Environment * __cdecl oracle::eek:cci::Environment::createEnvironment(enum oracle::eek:cci::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@$$FSAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z) referenced in function "private: void __clrcall Project1::MyForm::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@MyForm@Project1@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) C:\Users\user\Documents\Visual Studio 2013\Projects\Project1\Project1\MyForm.obj Project1
    Error 3 error LNK2019: unresolved external symbol "public: static class oracle::eek:cci::Environment * __cdecl oracle::eek:cci::Environment::createEnvironment(enum oracle::eek:cci::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@$$FSAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z) referenced in function "private: void __clrcall Project1::MyForm::button1_Click(class System::Object ^,class System::EventArgs ^)" (?button1_Click@MyForm@Project1@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z) C:\Users\user\Documents\Visual Studio 2013\Projects\Project1\Project1\MyForm.obj Project1
    Error 4 error LNK2001: unresolved external symbol "public: static class oracle::eek:cci::Environment * __cdecl oracle::eek:cci::Environment::createEnvironment(enum oracle::eek:cci::Environment::Mode,void *,void * (__cdecl*)(void *,unsigned int),void * (__cdecl*)(void *,void *,unsigned int),void (__cdecl*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@$$FSAPAV123@W4Mode@123@PAXP6APAX1I@ZP6APAX11I@ZP6AX11@Z@Z) C:\Users\user\Documents\Visual Studio 2013\Projects\Project1\Project1\Project1.obj Project1
    Error 5 error LNK1120: 3 unresolved externals C:\Users\user\Documents\Visual Studio 2013\Projects\Project1\Debug\Project1.exe Project1

    И вот вопрос ЧЗХ где я обшибся?
     
Загрузка...
Похожие Темы - Occi Unresolved Unresolved
  1. mibin
    Ответов:
    3
    Просмотров:
    2.409

Поделиться этой страницей