Skip to content

linker error during build on macos #19

@davidbrai

Description

@davidbrai

Hi,

I ran cargo build on my macos and got the following error:

➜  cow-dex-solver git:(main) cargo build
   Compiling ethcontract-derive v0.15.3
error: linking with `cc` failed: exit status: 1
  |
  = note: "cc" "-m64" "-arch" "x86_64" "/Users/...
...
  = note: ld: reference to symbol (which has not been assigned an address) __ZN4curl4init9INIT_CTOR17h32bbb45c3dd2c85aE in '__ZN4curl4init17h65fffcaa4ea77c83E' from /Users/david/projects/crypto/cow-dex-solver/target/debug/deps/libcurl-4fcdd02a82e2cd5f.rlib(curl-4fcdd02a82e2cd5f.curl.779571c0-cgu.15.rcgu.o) for architecture x86_64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)


error: could not compile `ethcontract-derive` due to previous error

Any ideas what's the issue / how to fix?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions