Fix Linux build problems#34
Open
ngaro wants to merge 1 commit into
Open
Conversation
ngaro
commented
Nov 6, 2016
- Adds 2 missing headers needed for compiling
- Removes a definition already defined earlier (not necessary)
- Fixes problems with incorrect gcc options
- Automatically download and build the correct version of openssl
- Add possibility for cleaning the build environment
|
I changed the lines you committed, but I still got one error: "gcc: error: ../heartleech/heartleech.c: No such file or directory" I also reinstalled it and modified the path, but this didn't help. Did I do sth wrong? |
Author
|
I tried it again here, works fine. You must be compiling it wrong. |
Ri1a
suggested changes
May 22, 2019
Ri1a
left a comment
There was a problem hiding this comment.
To entirely fix the Linux build problems you should also add the -I flag to openssl/libssl.a and openssl/libcrypto.a
Ri1a
reviewed
May 22, 2019
Ri1a
left a comment
There was a problem hiding this comment.
added -I flags to openssl/libssl.a and openssl/libcrypto.a
| gcc -I../openssl/include -L../openssl -lcrypto -lssl -lcrypto -ldl -lpthread -o heartleech heartleech.c | ||
|
|
||
| gcc heartleech.c -Iopenssl -Iopenssl/include -Iopenssl/crypto/include -Iopenssl/ssl openssl/libssl.a openssl/libcrypto.a -ldl -lpthread -o heartleech | ||
|
|
There was a problem hiding this comment.
Suggested change
| gcc heartleech.c -I openssl -I openssl/include -I openssl/crypto/include -I openssl/ssl -I openssl/libssl.a -I openssl/libcrypto.a -ldl -lpthread -o heartleech | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.