Skip to content
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

Issue in CGO preamble #23

Open
Mayhul-Jindal opened this issue Mar 1, 2024 · 0 comments
Open

Issue in CGO preamble #23

Mayhul-Jindal opened this issue Mar 1, 2024 · 0 comments

Comments

@Mayhul-Jindal
Copy link

Currently flags are set like

#cgo CFLAGS: -I.
#cgo LDFLAGS: -L./.. -lcrypto_c_exports -Wl,-rpath=./.
#include <stdlib.h>
#include "../ecdsa.h"
#include "../pedersen_hash.h"

This is giving error error while loading shared libraries: libcrypto_c_exports.so: cannot open shared object file: No such file or directoryexit status 127

Setting the flags like this resolves the issue

#cgo CFLAGS: -I ${SRCDIR}/../
#cgo LDFLAGS: -L${SRCDIR}/../ -lcrypto_c_exports -Wl,-rpath=${SRCDIR}/../
#include <stdlib.h>
#include "ecdsa.h"
#include "pedersen_hash.h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant