[CoinUtils] 64-bit integers in CoinUtils/configure?
Matthew Saltzman
mjs at clemson.edu
Sun Sep 3 18:57:18 EDT 2017
On Sun, 2017-09-03 at 18:48 +0000, Horand Gassmann wrote:
> I think I need some assistance with the configure file for CoinUtils
> I am doing some experiments with 64-bit integers and am using the
> code starting at configure.ac, line 136. If I understand the line
> correctly, it checks whether int64_t is defined by the system and if
> the test succeedssets the variable CoinInt64 to int64_t. If the test
> fails, other possibilities are checked (long long int, long int, int,
> in that order), and the successful type is recorded. Line 184 then
> exports the first supported type to the environment variable
> COIN_INT64_T, which can then be accessed in the user's C++ code.
>
> Here is what I tried:
>
> #ifdef OIN_INT64_t
^^^^^^^^^^^^
Is this a typo?
> typedef COIN_INT64_t my_int64;
> #else
> typedef int my_int64;
> #endif
>
> This generates the compiler error "int64_t does not name a type". I
> don't understand. Am I missing a header file somehow? I get the same
> error when I try
>
> typedef int64_t my_int64;
>
> What am I doing wrong?
Have you #included <cstdint>?
>
>
> -------------------------------------------------------
>
> Horand I. Gassmann, Professor
>
> Kenneth C. Rowe School of Business, Dalhousie University
> 6100 University Avenue, PO Box 15000
> Halifax, Nova Scotia, Canada, B3H 4R2
> ph. (902) 494-1844
> fax (902) 494-1107
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__myweb.dal.ca_gass
> mann_&d=DwICAg&c=Ngd-
> ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=qn_zjvrROZAYvrhgG-
> We4w&m=Lbp90dwX8W5u36CkVcNJ5TnbQiw3H2x3DOsnz6hhbhs&s=_1xzOw8fQCyNY3vc
> f-NuqbyYb5r9WyavPOTUgCzm5eg&e=
> _______________________________________________
> CoinUtils mailing list
> CoinUtils at list.coin-or.org
> https://urldefense.proofpoint.com/v2/url?u=https-3A__list.coin-2Dor.o
> rg_mailman_listinfo_coinutils&d=DwICAg&c=Ngd-
> ta5yRYsqeUsEDgxhcqsYYY1Xs5ogLxWPA_2Wlc4&r=qn_zjvrROZAYvrhgG-
> We4w&m=Lbp90dwX8W5u36CkVcNJ5TnbQiw3H2x3DOsnz6hhbhs&s=iaLxtXGVSxRrPpQj
> ieNgeYAxModNbiVKF6UN9ztacwA&e=
--
Matthew Saltzman
Clemson University Math Sciences
mjs AT clemson DOT edu
More information about the CoinUtils
mailing list