Page 1 of 1
TT_IsTrackableTracked() compiler error
Posted: Wed Aug 26, 2009 6:49 am
by kahl_hellmer
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)
Re: TT_IsTrackableTracked() compiler error
Posted: Wed Aug 26, 2009 11:48 am
by VincentG
Please email support with your issue, and a link to this forum thread.
Re: TT_IsTrackableTracked() compiler error
Posted: Sun Feb 28, 2010 1:44 pm
by gkfricke
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!
Re: TT_IsTrackableTracked() compiler error
Posted: Mon Mar 01, 2010 2:56 pm
by beckdo
You're having this issue with the latest version?
Re: TT_IsTrackableTracked() compiler error
Posted: Thu Apr 08, 2010 1:54 pm
by iko79
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.
Re: TT_IsTrackableTracked() compiler error
Posted: Thu Apr 08, 2010 2:06 pm
by beckdo
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
Posted: Mon Apr 12, 2010 4:16 pm
by beckdo
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.