TT_IsTrackableTracked() compiler error

Post Reply
kahl_hellmer
Posts: 10
Joined: Fri Sep 14, 2007 7:33 am
Location: Uppsala, Sweden

TT_IsTrackableTracked() compiler error

Post 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)
VincentG
Posts: 7728
Joined: Mon Jul 17, 2006 5:00 am
Location: Corvallis, Oregon

Re: TT_IsTrackableTracked() compiler error

Post by VincentG »

Please email support with your issue, and a link to this forum thread.
gkfricke
Posts: 31
Joined: Sun Feb 14, 2010 5:42 pm
Location: Durham, NC
Contact:

Re: TT_IsTrackableTracked() compiler error

Post 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!
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: TT_IsTrackableTracked() compiler error

Post by beckdo »

You're having this issue with the latest version?
iko79
Posts: 11
Joined: Fri Apr 02, 2010 5:31 am

Re: TT_IsTrackableTracked() compiler error

Post 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.
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: TT_IsTrackableTracked() compiler error

Post 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.
beckdo
Posts: 520
Joined: Tue Jan 02, 2007 2:02 pm

Re: TT_IsTrackableTracked() compiler error

Post 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.
Post Reply