I cannot seem to make use of the (very important) function TT_IsTrackableTracked(). Everything else in the API works just fine - but when I try to call TT_IsTrackableTracked() I get an error LNK2001 when I compile. Libraries are properly added. Has anyone else encountered this problem? I'm using VC++ 2005...
Thanks,
Kahl
Compiler output: error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl TT_IsTrackableTracked(int)" (__imp_?TT_IsTrackableTracked@@YA_NH@Z)
TT_IsTrackableTracked() compiler error
-
- Posts: 10
- Joined: Fri Sep 14, 2007 7:33 am
- Location: Uppsala, Sweden
Re: TT_IsTrackableTracked() compiler error
Please email support with your issue, and a link to this forum thread.
Re: TT_IsTrackableTracked() compiler error
Is there a resolution to this?
We are having a similar linking problem as we attempt to write our own code based on the samples from the website.
While I understand that emailing to support allows communication at a different level to debug the problem, it would be nice if the solution were posted here to help others with the same problem...
Thanks!
We are having a similar linking problem as we attempt to write our own code based on the samples from the website.
While I understand that emailing to support allows communication at a different level to debug the problem, it would be nice if the solution were posted here to help others with the same problem...
Thanks!
Re: TT_IsTrackableTracked() compiler error
You're having this issue with the latest version?
Re: TT_IsTrackableTracked() compiler error
Same here, version 2.1.0
The problem however seems to be that you don't define or typedef BOOL in your header. I (as well as gkfrickle and Kahl, apparently) resolved the resulting compiler error by simply adding a #define BOOL bool, which satisfies the compiler. As long as I don't use one of the functions using this type there is no problem of course, but since you seem to use integer as boolean type in your library the linker cannot resolve the function call.
So, if any of you also has this problem simply typedef int to BOOL.
@NP: Please fix this. And please add NPRESULT and VideoType enumerations to your header file. I also noticed a problem with the TT_TrackableTranslatePivot(int index, float x, float y, float z) function. According to the documentation it should be used to GET the pivot of the trackable, however you don't take references or pointers as arguments.
The problem however seems to be that you don't define or typedef BOOL in your header. I (as well as gkfrickle and Kahl, apparently) resolved the resulting compiler error by simply adding a #define BOOL bool, which satisfies the compiler. As long as I don't use one of the functions using this type there is no problem of course, but since you seem to use integer as boolean type in your library the linker cannot resolve the function call.
So, if any of you also has this problem simply typedef int to BOOL.
@NP: Please fix this. And please add NPRESULT and VideoType enumerations to your header file. I also noticed a problem with the TT_TrackableTranslatePivot(int index, float x, float y, float z) function. According to the documentation it should be used to GET the pivot of the trackable, however you don't take references or pointers as arguments.
Re: TT_IsTrackableTracked() compiler error
Our next release of the software is coming up quickly. Thanks for doing some detective work on this. I will get some fixes and additions in place for these.
Re: TT_IsTrackableTracked() compiler error
Use of the type 'BOOL' was unintentional. These have been replaced with the standard bool type.
NPRESULT and Video Type enumerations included in the header file.
TT_TrackableTranslatePivot is to translate the pivot point of a rigid body similar to how you can translate it via the user interface. Documentation will be updated to reflect this.
To calculate a trackable's pivot point, you can simply locate the average of all it's markers.
NPRESULT and Video Type enumerations included in the header file.
TT_TrackableTranslatePivot is to translate the pivot point of a rigid body similar to how you can translate it via the user interface. Documentation will be updated to reflect this.
To calculate a trackable's pivot point, you can simply locate the average of all it's markers.