Comments (5)
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.
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.
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.
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.
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)
- Resolve "libjapi/doxydir example out of date" - [merged] HOT 12
- dynamic creation of push service during runtime HOT 1
- Add MIT license HOT 1
- Resolve "Add MIT license" - [merged] HOT 12
- server has to remove ungracefull disconnected zombie clients HOT 3
- Resolve "Japi_pushsrv_destroy is not cleaning ctx->push_service element" - [merged] HOT 13
- Resolve "Include errors using <>/""" - [merged] HOT 8
- Resolve "Different behavior of push services in debug and release mode" - [merged] HOT 8
- Add clang-format HOT 1
- Move issues to Github HOT 10
- update sync-traning docu value written in EEPROM HOT 1
- Resolve "Add clang-format" - [merged] HOT 11
- Collect code coverage HOT 1
- Improve `make help`
- Provide more modern environments for CI
- Refactor `japi_register_request` and remove `ctx->init`
- CI: upload-artifact v3 deprecated
- increase line buffer size HOT 1
- split cmake of libjapi and test build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libjapi.