GithubHelp home page GithubHelp logo

Comments (5)

fraunhofer-iis-bot avatar fraunhofer-iis-bot commented on August 23, 2024

In GitLab by @vornkat-iis on Jun 30, 2023, 14:40

@bmi can you give a concrete example for that? The example in the docs uses <> because it assumes the library is installed as package (as available here). I will add a comment there, see 87b99c8

from libjapi.

fraunhofer-iis-bot avatar fraunhofer-iis-bot commented on August 23, 2024

In GitLab by @bmi on Jun 30, 2023, 15:14

The example is: You dont know how a user with the source code will use the library. You expect that he is using the code as a single library, installed in Linux first before he is starting to develope his code. But this is not every time the case(this is not my normal behavoure of using a libray i get to work with). if you only provide the library than is this ok, but you want to provide the source code.

It is a bad coding style only to provide one way to use the source code. And especially from such a trivial thing as the include.

What is the problem: The linker will not find the include with <> if it is not in the in the same way your statemant is given. if you use "" the linker will look lokal from the source path to the given satement without a correct $path configured is needed.

Read mode about:
https://gcc.gnu.org/onlinedocs/cpp/Include-Syntax.html

from libjapi.

fraunhofer-iis-bot avatar fraunhofer-iis-bot commented on August 23, 2024

In GitLab by @vornkat-iis on Jul 2, 2023, 18:08

I understand but when looking through the code, I did not find any error on that. Only the example given in the docs which uses libJAPI from the package instead from a submodule.

Can you describe the situation in which you had problems? Do you maybe know where there are wrong imports in the code?

from libjapi.

fraunhofer-iis-bot avatar fraunhofer-iis-bot commented on August 23, 2024

In GitLab by @bmi on Jul 3, 2023, 08:31

japi.h line 21

but i not checked every code
the docs are not the problem examples are ok with using include <>

from libjapi.

fraunhofer-iis-bot avatar fraunhofer-iis-bot commented on August 23, 2024

In GitLab by @vornkat-iis on Jul 3, 2023, 09:49

created branch 46-include-errors-using to address this issue

from libjapi.

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.