Tuesday, 15 February 2011

c++ - Using Vicon Datastream SDK with Unreal Engine throws error on namespace CPP in Vicons client.h -



c++ - Using Vicon Datastream SDK with Unreal Engine throws error on namespace CPP in Vicons client.h -

first of have mention i'm new c++ within course of study of studies have gained experiences programming. currently, i'm working on plugin datastream between vicon blade 1.7 , unreal engine 4.4.3. should done using vicon datastream sdk v 1.4 contains header file, library , .dll file.

right now, i'm having problems compiling basic plugin. vicon datastream sdk build within older version of visual studio 2010. want know if there possibility go on working vicon sdk in visual studio 2013? should forcefulness sdk utilize latest .dll in visual studio , if how do that?

i tried go on working sdk ignoring problem i've mentioned before. when built project without changing header file of sdk i'm getting error:

error 2 error c2059: syntax error : 'constant'

here affected rows:

#ifdef win32 #ifdef _exporting #define class_declspec __declspec(dllexport) #else #define class_declspec __declspec(dllimport) #endif // _exporting #elif defined( __gnuc__ ) #if __gnuc__ < 4 #error gcc 4 required. #endif #define class_declspec __attribute__((visibility("default"))) #else #define class_declspec #endif #include <string> namespace vicondatastreamsdk { namespace cpp { ... } }

if redefine sec namespace 'ucpp' i'm getting huge list of errors one:

error 2 error lnk2019: unresolved external symbol "__declspec(dllimport) public: __cdecl vicondatastreamsdk::ucpp::client::client(void)"

i think it's because cpp defined in unreal engine because of dependency of header file .dll file in sdk definition of namespace unchangeable in sdk. expectation right or on wrong track?

i had similar problems name space. prepare did in ue4 plugin header file before including vicon datastreamsdk

#define ucpp cpp #undef cpp #include <client.h> //vicon datastreamsdk .....

at end of file redifined cpp macro

#define cpp pcpp

this compiles , works fine no problems

c++ visual-studio sdk unreal-engine4

No comments:

Post a Comment