Erreur lnk2028: unresolved token
Bonjour,
Je développe en c++ et après avoir linker une librairie, l'erreur suivante apparaît:
Citation:
Error 1 error LNK2028: unresolved token (0A00002E) "public: static class oracle::occi::Environment * __clrcall oracle::occi::Environment::createEnvironment(enum oracle::occi::Environment::Mode,void *,void * (__clrcall*)(void *,unsigned int),void * (__clrcall*)(void *,void *,unsigned int),void (__clrcall*)(void *,void *))" (?createEnvironment@Environment@occi@oracle@@$$FSMPAV123@W4Mode@123@PAXP6MPAX1I@ZP6MPAX11I@ZP6MX11@Z@Z) referenced in function "void __clrcall Syslog3_C::`dynamic initializer for 'Genv''(void)" (???__EGenv@Syslog3_C@@YMXXZ@?A0x275993d8@@$$FYMXXZ) Syslog3_C++.obj
Voici le code:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| #pragma once
#include <occi.h>
#pragma comment(lib, "C:\\Syslog3_C++\\oraocci10d.lib")
#pragma comment(lib, "C:\\Syslog3_C++\\oraocci10.lib")
namespace Syslog3_C {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
using namespace oracle::occi;
#define MAX_LINES 100
char GcUser[30]; // DB user
char GcPwd[30]; // DB user's password
char GcDBName[30]; // DB connection name present in the tnsnames.ora file
oracle::occi::Environment* Genv = oracle::occi::Environment::createEnvironment (oracle::occi::Environment::DEFAULT); // OCCI environment
Connection* Gcon; // OCCI connection |
Avez vous une idée de sa raison d'être et une solution pour la résoudre?
Merci.