Skip to content

Linking error when running stdweb::initialize(). #101

@sanatshah

Description

@sanatshah

Probably a simple error, I'm trying to use stdweb with:

`extern crate stdweb;

pub fn main() {
stdweb::initialize();
}
`

I end up getting the error :
error: linking with cc` failed: exit code: 1 ......

= note: Undefined symbols for architecture x86_64:
"emscripten_asm_const_int", referenced from:
stdweb::webcore::initialization::initialize::h4c8e9303822f5ec1 in libstdweb-310da87d7f95429a.rlib(stdweb-310da87d7f95429a.stdweb4.rust-cgu.o)
stdweb::webcore::initialization::initialize::
$u7b$$u7b$closure$u7d$$u7d$::h292eb6004a949697 in libstdweb-310da87d7f95429a.rlib(stdweb-310da87d7f95429a.stdweb4.rust-cgu.o)
_$LT$stdweb..webcore..value..Reference$u20$as$u20$core..ops..drop..Drop$GT$::drop::h41b8da88f774e14b in libstdweb-310da87d7f95429a.rlib(stdweb-310da87d7f95429a.stdweb0.rust-cgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
`

I have installed x86_64-apple-darwin on a 64-bit MacOS. New to rust, any help will be appreciated.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions