[AGENT++] agent++ compile error on Linux 64-bit
Robert Hancock
hancock at sedsystems.ca
Fri Feb 22 20:45:11 CET 2008
When compiling agent++ 3.5.29 on Linux x86_64 I get this error:
threads.cpp: In destructor ‘Agentpp::Synchronized::~Synchronized()’:
threads.cpp:250: error: cast from ‘Agentpp::Synchronized*’ to ‘int’
loses precision
threads.cpp:258: error: cast from ‘Agentpp::Synchronized*’ to ‘int’
loses precision
This is due to this code in threads.cpp:
LOG((int)this);
Casting a pointer to int is not allowed on 64-bit. Changing the cast to
unsigned long fixes this error.
--
Robert Hancock
Programmer Analyst
SED Systems
Email: hancock at sedsystems.ca
More information about the AGENTPP
mailing list