-
Notifications
You must be signed in to change notification settings - Fork 175
Added Installation section which includes basic instructions on how t… #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…o install and also specifies that it needs at least GNU99 but also compiles at GNU23
README.md
Outdated
| sudo make install | ||
| ``` | ||
|
|
||
| Alternatively, you can use Cmake. qLibc requires at least GNU99 and confirmed to be compiling in GNU23 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect all the Linux/Linux-like users to use autotools and CMake for Windows.
Do you think we should include Windows installation instructions instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think both would be good. There's always new people coming to Linux these days. For windows we could add steps both for visual studio and VScode, also maybe a cmd/powershell option.
|
|
||
| ```bash | ||
| mkdir build | ||
| cd build | ||
| cmake .. | ||
| sudo make install | ||
| ``` | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's take this part out for now. Not sure if this should be the officially recommended way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just removed that section and pushed
Removed Cmake alternative build method from the installation section as it's not certain if it should be an official recommended way
wolkykim
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hello. I was checking the repo and decided to try out. I added an "installation" part on the readme that also specifies the standard.
The repo compiles successfully both for GNU99 and GNU23. I used both cmake and AutoTools. I modified CmakeLists.txt like so in line 32:
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu23")Same for GNU99.
When i tried strictly for C99 like this:
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -pedantic")It worked with AutoTools.
./configure make sudo make installBut C99 did NOT work when i tried cmake.
mkdir build cmake .. makeGave an error like this:
/home/user/qlibc/src/internal/qinternal.h:80:52: error: ‘PTHREAD_MUTEX_RECURSIVE’ undeclared (first use in this function); did you mean ‘PTHREAD_MUTEX_RECURSIVE_NP’? 80 | pthread_mutexattr_settype(&_mutexattr, PTHREAD_MUTEX_RECURSIVE); \fixes #115