Skip to content

Issue in CGO preamble #23

@Mayhul-Jindal

Description

@Mayhul-Jindal

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions