Home › Forums › Software Development › [Solved] Undefined reference to ‘txFormatObject…’ and ‘txInitializeEyeX’
Tagged: Devc++ Undefined reference
- This topic has 2 replies, 2 voices, and was last updated 6 years, 1 month ago by Gijs.
- 06/04/2017 at 14:47 #6623GijsParticipant
I’m new to the Eye Tracker, but need to build a prototype with it. I’m not completely new to C++, but it’s been a while, so I’m a bit rusty.
I tried to follow the Walkthrough on setting up C++ project, using Dev C++, but I run into errors, stating ‘Undefined reference to ‘txFormatObjectAsText’ and to ‘txInitializeEyeX’.
I did put the dll in the output directory and linked the lib and include directories in the compiler.
My code is as simple as:
#pragma comment (lib, “Tobii.EyeX.Client.lib”)
if (TX_RESULT_OK != txInitializeEyeX(TX_EYEXCOMPONENTOVERRIDEFLAG_NONE, NULL, NULL, NULL, NULL))
What am I doing wrong here?23/04/2017 at 15:08 #6691Grant [Tobii]Keymaster
Hi @mailbuke, apologies for the delay in response. It seems indeed that the issue was an incorrect path ultimately?
Can you kindly let me know if you are still experiencing issues on this setup?24/04/2017 at 09:36 #6697GijsParticipant
Yes, the issue has been solved, but only after I moved the project from DevC++ to Visual Studio. Seems the dll doesn’t work correctly in DevC++.
- You must be logged in to reply to this topic.