Giter VIP home page Giter VIP logo

Comments (3)

hebaishi avatar hebaishi commented on July 17, 2024 1

The uintxx types are defined in stdint.h so you cannot use them without the header file, unless you define them yourself. I don't recommend you do this, however. If something is part of a standard header, you should just use the header instead of defining bits and pieces.

Also, there is no problem having #include statements in your own header file. Defining/declaring everything yourself is not practical, so you often need to include other headers into your header file. You can simply use header guards to make sure your header files are not included twice. You can read more about include guards here. Also, you need not worry about standard headers being included twice because they all have include guards. Does that answer your question?

from linter-gcc.

codemonkeytbx avatar codemonkeytbx commented on July 17, 2024

Hello @hebaishi . Thanks for answering. More or less.

Actually, I'm aware of include guards and the recommendations of including other header files in my own one. This is just part of a standard design for embedded programming.
My program works fine, it compiles normally in this way (no #include in header files, and appropriate #include order in source file). I was just wondering if it is possible to make the linter "to understand" that the include for such datatype is in the corresponding source file.

Anyway, thank you so much for your attention and answering...

from linter-gcc.

arpemar98 avatar arpemar98 commented on July 17, 2024

Hello, excuse me.
I have a problem with Linter.gcc, show me:

linter-gcc: Executable not found
"/usr/bin/g++" not found

I read the guide, but I do not understand very well the part of installing the packages, and when I use the cygwin with the command, it shows me /usr/bin/gcc.

I do not know how to fix it

from linter-gcc.

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.