Hello,
I have a very large project that consists of numerous libraries and a ThreadX RTOS application. In one of the libraries, I have a C++ class that handles mutexes and I can compile that library without issues. However, when I compile the code application, I get an error "undefined reference to `_txe_mutex_info_get'".
I have double checked the includes, the include paths, the libraries, the library paths, but everything seems correct. (Commenting out the "tx_mutex_info_get()" function call kills the error.) To make it more frustrating, both the library and the application code have been playing nice for over a year and the function call "tx_mutex_info_get()" is used in other functions in the same class without errors. I've walked all of the changes I've made since the last compile, but that too has proven unfruitful.
Does anyone have any suggestions?
UINT RtController_Mutexes::_getMutexOwner(
TX_MUTEX * mutex,
TX_THREAD ** owner)
{
UINT status;
std::string msg;
CHAR ** name = NULL;
ULONG * count = NULL;
TX_THREAD ** first_suspended = NULL;
ULONG * suspend_count = NULL;
TX_MUTEX ** next_mutex = NULL;
status = tx_mutex_info_get(
mutex,
name,
count,
owner,
first_suspended,
suspend_count,
next_mutex);
// Check for log file controller creation error.
if( status != TX_SUCCESS)
{
// Error stuff
} else
return( status);
}