Salve a tutti, ho un un enorme problema. Sto tentando di includere nella mia applicazione di tipo CLR Form una libreria esterna. Quest'ultima è provvista di istruzioni ufficiale che riporto qui sotto:
Quindi faccio:For Microsoft Visual C++ applications, you need to include the header file include\C\LuxandFaceSDK.h, and the stub library file facesdk.lib into your project. Copyright c 2005¡V2011 Luxand, Inc. http://www.luxand.com 11 Follow these steps to add the library to your project: „h Copy include\C\LuxandFaceSDK.h into the directory of your project „h For 32-bit applications, copy bin\win32\facesdk.dll and bin\win32\facesdk.lib into the output directory of your project „h For 64-bit applications, copy bin\win64\facesdk.dll and bin\win64\facesdk.lib into the output directory of your project „h Choose Project Properties ¡V Linker ¡V Input ¡V Additional Dependencies, and add facesdk.lib string „h Choose Project Properties ¡V Linker ¡V General ¡V Additional Library Directories Dependencies, and add $(OutDir) string (a reference to the output directory) „h Add the following statement to the beginning of your application: include "LuxandFaceSDK.h" The output directory $(OutDir) typically refers to Debug\ or Release\ in the directory of your solution. You may change it in the Configuration Properties ¡V General of your project. You may also choose another directory to store the .lib file, but it is recommended to keep facesdk.dll in the directory where the executable file of your application is located. You need to redistribute the file facesdk.dll with your application.
-Nuovo progetto -> CLR Windows Form
-Copio i 3 file richiesti nella cartella del progetto.
-Eseguo le operazioni descritte nelle istruzioni.
-Ora non ho ben capito dove fare #include "LuxandFaceSDK.h"... Nella pagina Form.h, Nella pagina .cpp principale del progetto o dove? Ho provato in entrambi i modi ma quando uso una qualsiasi funzione della libreria, a prescindere dove la uso, il compilatore mi da il seguente errore:
A questo punto io non so più dove mettere le mani, sono disperato, se potreste darmi una mano ve ne sare molto grato!codice:1>Compilazione in corso... 1>en test.cpp 1>Collegamento in corso... 1>en test.obj : error LNK2028: al token non risolto (0A000015) "extern "C" int __cdecl FSDK_ActivateLibrary(char *)" (?FSDK_ActivateLibrary@@$$J0YAHPAD@Z) si fa riferimento nella funzione "int __clrcall main(cli::array<class System::String ^ >^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z) 1>en test.obj : error LNK2019: riferimento al simbolo esterno "extern "C" int __cdecl FSDK_ActivateLibrary(char *)" (?FSDK_ActivateLibrary@@$$J0YAHPAD@Z) non risolto nella funzione "int __clrcall main(cli::array<class System::String ^ >^)" (?main@@$$HYMHP$01AP$AAVString@System@@@Z) 1>C:\Users\Simone\Desktop\ennesimo test\en test\Debug\en test.exe : fatal error LNK1120: 2 esterni non risolti