GithubHelp home page GithubHelp logo

Build failures on Linux about slim HOT 8 CLOSED

messerlab avatar messerlab commented on May 29, 2024
Build failures on Linux

from slim.

Comments (8)

bhaller avatar bhaller commented on May 29, 2024

Ah, I see. OK, well. On your spiffy machine, "long long" is longer than 64 bits, and so Eidos ought to be using a different version of these built-in functions. All part of the endless annoyance of C's platform-dependent types. So what I want to do is detect which type (int, long int, long long int) corresponds to int64_t on the target machine, and use the corresponding built-in functions. I'm not sure how to do that, but I imagine some googling will provide the answer...

from slim.

molpopgen avatar molpopgen commented on May 29, 2024

The first of the errors is due to missing an #include .

On Wed, Apr 6, 2016 at 4:47 AM Ben Haller [email protected] wrote:

Ah, I see. OK, well. On your spiffy machine, "long long" is longer than 64
bits, and so Eidos ought to be using a different version of these built-in
functions. All part of the endless annoyance of C's platform-dependent
types. So what I want to do is detect which type (int, long int, long long
int) corresponds to int64_t on the target machine, and use the
corresponding built-in functions. I'm not sure how to do that, but I
imagine some googling will provide the answer...


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#1 (comment)

from slim.

bhaller avatar bhaller commented on May 29, 2024

Yep. Funny how different C++ compilers have different include requirements. The missing include was not a problem on our Linux cluster, nor with clang on my OS X machine. It would be nice if compilers were more consistent about this sort of thing; it really makes it hard to write portable code. Ah well.

from slim.

molpopgen avatar molpopgen commented on May 29, 2024

It is always required: http://en.cppreference.com/w/cpp/language/typeid

I'm guessing it was included as a side-effect of other includes on your
other systems. That happens, and is annoying.

On Wed, Apr 6, 2016 at 4:50 AM Kevin Thornton [email protected] wrote:

The first of the errors is due to missing an #include .

On Wed, Apr 6, 2016 at 4:47 AM Ben Haller [email protected]
wrote:

Ah, I see. OK, well. On your spiffy machine, "long long" is longer than
64 bits, and so Eidos ought to be using a different version of these
built-in functions. All part of the endless annoyance of C's
platform-dependent types. So what I want to do is detect which type (int,
long int, long long int) corresponds to int64_t on the target machine, and
use the corresponding built-in functions. I'm not sure how to do that, but
I imagine some googling will provide the answer...


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#1 (comment)

from slim.

bhaller avatar bhaller commented on May 29, 2024

Right, exactly. :->

from slim.

bhaller avatar bhaller commented on May 29, 2024

I believe this bug is now fixed. I'm not sure what the etiquette is regarding closing bugs. Do I close it now? Do I wait for you to confirm that the bug is fixed on your end, and then close it? Do you close it?

from slim.

molpopgen avatar molpopgen commented on May 29, 2024

Go ahead and close--it does seem to be fixed.

BTW, when making a commit, you can refer to issue numbers. For example:

git commit -am "fix for #1"

Online, those comments will show up in the Issues thread, which is handy.

On Wed, Apr 6, 2016 at 4:50 AM Kevin Thornton [email protected] wrote:

The first of the errors is due to missing an #include .

On Wed, Apr 6, 2016 at 4:47 AM Ben Haller [email protected]
wrote:

Ah, I see. OK, well. On your spiffy machine, "long long" is longer than
64 bits, and so Eidos ought to be using a different version of these
built-in functions. All part of the endless annoyance of C's
platform-dependent types. So what I want to do is detect which type (int,
long int, long long int) corresponds to int64_t on the target machine, and
use the corresponding built-in functions. I'm not sure how to do that, but
I imagine some googling will provide the answer...


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#1 (comment)

from slim.

bhaller avatar bhaller commented on May 29, 2024

Aha, yes, I was wondering if there was a way to do that. OK, thanks!

from slim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.