You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by "Flores, Paul A." <PA...@SAIC.COM> on 2017/01/30 15:12:13 UTC

HELP -> Need C++ complation assistance/advice/guidance

Hi,

At client site.  Attempting to move from the C++ API from 0.34 to 1.36 but have run into an aggravating issue.

Client environment is RHEL 5 using G++ (GCC) 4.1.2.20080704 (Red Hat 4.1.2-54).  Plan to move to RHEL 6 is in the works but is not likely to occurring in the near timeframe.

The following is the error we are seeing.

Error: ‘INT64_MAX’ was not declared in this scope
           Macro ‘INT64_MAX’ is defined in stdint.h, which is a C-99 library.

The appropriate compiler directive flags which signal it’s being used in C++ appears correct.

Client technical management is weighing staying at 0.34 until the move to RHEL 6 is "finalized" but developers want to move to from 0.34 to 1.36 need resolution to convince management.

Any insights/suggestions would be welcomed and appreciated!

Paul

________________________________

This communication (including any attachments) may contain information that is proprietary, confidential or exempt from disclosure. If you are not the intended recipient, please note that further dissemination, distribution, use or copying of this communication is strictly prohibited. Anyone who received this message in error should notify the sender immediately by telephone or by return email and delete it from his or her computer.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: HELP -> Need C++ complation assistance/advice/guidance

Posted by Andrew Stitcher <as...@redhat.com>.
On Mon, 2017-01-30 at 15:12 +0000, Flores, Paul A. wrote:
> Hi,
> 
> At client site.��Attempting to move from the C++ API from 0.34 to
> 1.36 but have run into an aggravating issue.
> 
> Client environment is RHEL 5 using G++ (GCC) 4.1.2.20080704 (Red Hat
> 4.1.2-54).��Plan to move to RHEL 6 is in the works but is not likely
> to occurring in the near timeframe.
> 
> The following is the error we are seeing.
> 
> Error: \u2018INT64_MAX\u2019 was not declared in this scope
> �����������Macro \u2018INT64_MAX\u2019 is defined in stdint.h, which is a C-99
> library.
> 
> The appropriate compiler directive flags which signal it\u2019s being used
> in C++ appears correct.
> 
> Client technical management is weighing staying at 0.34 until the
> move to RHEL 6 is "finalized" but developers want to move to from
> 0.34 to 1.36 need resolution to convince management.
> 
> Any insights/suggestions would be welcomed and appreciated!

I think the underlying issue here is that C99 is not officially
incorporated in C++03. But I don't honestly remember the precise
situation here.

The file to look at is qpid/sys/IntegerTypes.h which selects which
version of the stdint.h headers to use - you might get some idea from
the Visual Studio bits, which also don't support these C99 definitions
in earlier versions and so manually define some of these macros.

Bear in mind that the OS and compiler versions you are using are not
even supported by Red Hat any longer, so the sooner you move to RHEL6
the better off you will be.

Andrew


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org