[openamq-dev] client application link problem

Dmitri Tsyganov dmitri.tsyganov at dowjones.com
Mon Dec 10 16:56:09 CET 2007


Hello,

I also had to modify icl.h file (ln 175) to get rid of _NO_CTYPE
redefine warning. Problem is that it is already defined in gcc header
file (c++config.h) on my RH Enterprise Linux as:
_NO_CTYPE 1

IMHO it is better to keep _NO_CTYPE defined (see the comment in the
original place) by doing something like this:

#ifndef __NO_CTYPE
	#define __NO_CTYPE
#endif

Another warning that comes up alot is for signed/unsigned missmatch in

smt.h (ln 565), I am casting -1 to disable this warning as this

	(smt_module_t)(-1)

Maybe OpenAMQ dev team can take a look at those warnings, when thay have
a chance.

Thanks,

Dmitri


On Mon, 2007-12-10 at 13:21 +0000, blog wrote:
> nd the solution to that is to simply #undef the offending symbol before
> including base.h  I think base.h should check for this before defining
> it though ?
> 
> 
> #ifdef __NO_CTYPE
>   #undef __NO_CTYPE
> #endif
> 
> extern "C"
> {
> #include "base.h"
> #include "amq_client_connection.h"
> #include "amq_client_session.h"
> }
> 
> _______________________________________________
> openamq-dev mailing list
> openamq-dev at lists.openamq.org
> http://lists.openamq.org/mailman/listinfo/openamq-dev


More information about the openamq-dev mailing list