Creating c++ DLL including third party SDK -


i trying third party reconstruction library reconstructme working creating c++ dll , call within unity(c#).

i have working using supplied dll calling unmanaged function calls hitting performance on every update multiple functions e.g:

on every update calling below necessary calls:

reme_sensor_grab reme_sensor_prepare_images reme_sensor_track_position reme_sensor_update_volume reme_surface_generate  

for optimization, idea if can make new dll including above functions, calls , dll import function call once per update unity(c#) or may call once , data callbacks.

i have used below code check if able working, unfortunately getting lnk2019:

remedll.obj : error lnk2019: unresolved external symbol __imp_reme_context_create referenced in function “private: void __cdecl remedll::startscan(void)” (?startscan@remedll@@aeaaxxz) 1>c:\projects\remedll\x64\debug\remedll.dll : fatal error lnk1120: 1 unresolved externals  #include <iostream> #include <reconstructmesdk/reme.h> using namespace std;  class remedll {     __declspec(dllexport) void startscan()     {         // create new context         reme_context_t context;         reme_context_create(&context);         //...     } }; 

here definitions sdk:

typedef struct _reme_context* reme_context_t;  libreconstructmesdk_library_interface reme_error_t reme_context_create(reme_context_t *c);  #define libreconstructmesdk_library_interface __declspec(dllimport) 

can please suggest or give pointers how can go around ? need kind of layers linking dll import first , call dll export function, please advice. thanks.

  1. add paths reconstructme inc , lib folders project properties;
  2. add line #pragma comment(lib, "libreconstructmesdk.lib") source code.

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -