Giter Site home page Giter Site logo

Comments (4)

DavidPeicho avatar DavidPeicho commented on July 23, 2024 8

I had exactly the same problem, when installing the library on Ubuntu 16.10, using CMake.
In order to fix it, I added myself the stdint.h include and it fixed the problem. I do not know why the check_type_size did not complain when using cmake.

from check.

brarcher avatar brarcher commented on July 23, 2024

Can you let me know:

  • the version of Check you are attempting
  • the OS you are building on and the compiler
  • the output of "cmake ." before attempting to build

from check.

greenlaw110 avatar greenlaw110 commented on July 23, 2024

I am on linux mint 17.3; I run apt-get install check and it installed the v0.9.10 version

The output of cmake .. (I am in the build folder):

-- The C compiler identification is GNU 4.8.5
-- The CXX compiler identification is GNU 4.8.5
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26") 
-- checking for one of the modules 'check'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/luog/p/csm/tests

from check.

brarcher avatar brarcher commented on July 23, 2024

Looking at the CMake configuration for the example project, there is the following section which is likely relevant:

# Check for integer types
# (The following are used in check.h. Regardless if they are used in
# the project, they will need to be checked in order to use Check).
check_type_size(intmax_t INTMAX_T)
check_type_size(uintmax_t UINTMAX_T)

The check.h header should be pulling in the stdint.h header if it exists, which should define intmax_t and uintmax_t. Can you attempt to add the CMake checks mentioned above and see if it discovers something off about intmax_t on the system?

from check.

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.