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

error LNK2019: unresolved external symbol #40638

Closed
evandrocoan opened this issue Mar 18, 2017 · 2 comments
Closed

error LNK2019: unresolved external symbol #40638

evandrocoan opened this issue Mar 18, 2017 · 2 comments

Comments

@evandrocoan
Copy link

evandrocoan commented Mar 18, 2017

error LNK2019: unresolved external symbol

I am compiling the https://github.com/trishume/syntect example syncat using:

cargo run --example syncat --verbose

However the link.exe cannot find the references for the other library.

  1. Why it is not linking?
  2. Is it related to Correctly handle dllimport on Windows #27438? _ Correctly handle dllimport on Windows/MSVC

This is the full log from trishume/syntect#49:

D:\syntect>cargo run --example syncat --verbose
   Compiling gcc v0.3.45
   Compiling libc v0.2.21
   Compiling byteorder v0.5.3
   Compiling serde v0.9.11
     Running `rustc --crate-name gcc C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\gcc-0.3.45\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=fc74a781854cbb8b -C extra-filename=-fc74a781854cbb8b --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name libc C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\libc-0.2.21\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"use_std\"" -C metadata=5dc7b85e748840b4 -C extra-filename=-5dc7b85e748840b4 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name byteorder C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\byteorder-0.5.3\src\lib.rs --crate-type lib --emit=dep-info,link -C debug info=2 --cfg "feature=\"std\"" --cfg "feature=\"default\"" -C metadata=fab4d718c73e8b35 -C extra-filename=-fab4d718c73e8b35 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
     Running `rustc --crate-name serde C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\serde-0.9.11\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"std\"" -C metadata=e9bfb02f34c97433 -C extra-filename=-e9bfb02f34c97433 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling yaml-rust v0.3.5
     Running `rustc --crate-name yaml_rust C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\yaml-rust-0.3.5\src\lib.rs --crate-type lib --emit=dep-info,link -C debug info=2 -C metadata=c25be672d1dac690 -C extra-filename=-c25be672d1dac690 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling pkg-config v0.3.9
     Running `rustc --crate-name pkg_config C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\pkg-config-0.3.9\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=af8168308ca6d27e -C extra-filename=-af8168308ca6d27e --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling plist v0.1.2
     Running `rustc --crate-name build_script_build C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\plist-0.1.2\build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"serde\"" --cfg "feature=\"serde_serialization\"" -C metadata=9d7d6530b410ce7f -C extra-filename=-9d7d6530b410ce7f --out-dir D:\syntect\target\debug\build\plist-9d7d6530b410ce7f -L dependency=D:\syntect\target\debug\deps --cap-lints allow`     Running `D:\syntect\target\debug\build\plist-9d7d6530b410ce7f\build-script-build`
   Compiling regex-syntax v0.4.0
     Running `rustc --crate-name regex_syntax C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\regex-syntax-0.4.0\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=21fcdc3a2a66b202 -C extra-filename=-21fcdc3a2a66b202 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling rustc-serialize v0.3.23
     Running `rustc --crate-name rustc_serialize C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\rustc-serialize-0.3.23\src\lib.rs --crate-type lib --emit=dep-info, link -C debuginfo=2 -C metadata=54d2bf33b1d4b0b0 -C extra-filename=-54d2bf33b1d4b0b0 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling fnv v1.0.5
     Running `rustc --crate-name fnv C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\fnv-1.0.5\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=1953bcde9b6fff16 -C extra-filename=-1953bcde9b6fff16 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling serde v0.8.23
     Running `rustc --crate-name serde C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\serde-0.8.23\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"std\"" --cfg "feature=\"default\"" -C metadata=13ca9a5f25ca5eb7 -C extra-filename=-13ca9a5f25ca5eb7 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling bitflags v0.8.0
     Running `rustc --crate-name bitflags C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\bitflags-0.8.0\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=88857433f6b67df9 -C extra-filename=-88857433f6b67df9 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling byteorder v1.0.0
     Running `rustc --crate-name byteorder C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\byteorder-1.0.0\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"std\"" --cfg "feature=\"default\"" -C metadata=240cc8a1e1423fad -C extra-filename=-240cc8a1e1423fad --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling lazy_static v0.2.4
     Running `rustc --crate-name lazy_static C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\lazy_static-0.2.4\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=82c2efae9a7bf732 -C extra-filename=-82c2efae9a7bf732 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling num-traits v0.1.37
     Running `rustc --crate-name num_traits C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\num-traits-0.1.37\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=69f4129d46397118 -C extra-filename=-69f4129d46397118 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling bitflags v0.7.0
     Running `rustc --crate-name bitflags C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\bitflags-0.7.0\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=65ddff5d2b91509e -C extra-filename=-65ddff5d2b91509e --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling xml-rs v0.3.6
     Running `rustc --crate-name xml C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\xml-rs-0.3.6\src/lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=ee7b490fa9cc02e2 -C extra-filename=-ee7b490fa9cc02e2 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern bitflags=D:\syntect\target\debug\deps\libbitflags-65ddff5d2b91509e.rlib --cap-lints allow`
   Compiling cmake v0.1.21
     Running `rustc --crate-name cmake C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.21\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=6e40e0634bac9054 -C extra-filename=-6e40e0634bac9054 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern gcc=D:\syntect\target\debug\deps\libgcc-fc74a781854cbb8b.rlib --cap-lints allow`
   Compiling num-integer v0.1.33
     Running `rustc --crate-name num_integer C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\num-integer-0.1.33\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=bbbfaf8dce75e1b6 -C extra-filename=-bbbfaf8dce75e1b6 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern num_traits=D:\syntect\target\debug\deps\libnum_traits-69f4129d46397118.rlib --cap-lints allow`
   Compiling winapi v0.2.8
     Running `rustc --crate-name winapi C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-0.2.8\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=a5898d7aceb63fac -C extra-filename=-a5898d7aceb63fac --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling num-iter v0.1.33
     Running `rustc --crate-name num_iter C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\num-iter-0.1.33\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=e3d53b72a44dd492 -C extra-filename=-e3d53b72a44dd492 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern num_integer=D:\syntect\target\debug\deps\libnum_integer-bbbfaf8dce75e1b6.rlib --extern num_traits=D:\syntect\target\debug\deps\libnum_traits-69f4129d46397118.rlib --cap-lints allow`
   Compiling num v0.1.37
     Running `rustc --crate-name num C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\num-0.1.37\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=1dc0cc712369fa49 -C extra-filename=-1dc0cc712369fa49 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern num_iter=D:\syntect\target\debug\deps\libnum_iter-e3d53b72a44dd492.rlib --extern num_integer=D:\syntect\target\debug\deps\libnum_integer-bbbfaf8dce75e1b6.rlib --extern num_traits=D:\syntect\target\debug\deps\libnum_traits-69f4129d46397118.rlib --cap-lints allow`
   Compiling miniz-sys v0.1.9
     Running `rustc --crate-name build_script_build C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\miniz-sys-0.1.9\build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=17b016e6785aa5b2 -C extra-filename=-17b016e6785aa5b2 --out-dir D:\syntect\target\debug\build\miniz-sys-17b016e6785aa5b2 -L dependency=D:\syntect\target\debug\deps --extern gcc=D:\syntect\target\debug\deps\libgcc-fc74a781854cbb8b.rlib --cap-lints allow`
   Compiling bincode v0.6.1
     Running `rustc --crate-name bincode C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\bincode-0.6.1\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"serde\"" --cfg "feature=\"rustc-serialize\"" -C metadata=8273b7b63a07f1b1 -C extra-filename=-8273b7b63a07f1b1 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern num_traits=D:\syntect\target\debug\deps\libnum_traits-69f4129d46397118.rlib --extern byteorder=D:\syntect\target\debug\deps\libbyteorder-240cc8a1e1423fad.rlib --extern rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib --extern serde=D:\syntect\target\debug\deps\libserde-13ca9a5f25ca5eb7.rlib --cap-lints allow`
     Running `D:\syntect\target\debug\build\miniz-sys-17b016e6785aa5b2\build-script-build`
     Running `rustc --crate-name miniz_sys C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\miniz-sys-0.1.9\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=371886580b0e42eb -C extra-filename=-371886580b0e42eb --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern libc=D:\syntect\target\debug\deps\liblibc-5dc7b85e748840b4.rlib --cap-lints allow -L native=D:\syntect\target\debug\build\miniz-sys-18005000ddedadf4\out -l static=miniz`
   Compiling flate2 v0.2.17
     Running `rustc --crate-name flate2 C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\flate2-0.2.17\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"miniz-sys\"" --cfg "feature=\"default\"" -C metadata=8c506f1983161f68 -C extra-filename=-8c506f1983161f68 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern libc=D:\syntect\target\debug\deps\liblibc-5dc7b85e748840b4.rlib --extern miniz_sys=D:\syntect\target\debug\deps\libminiz_sys-371886580b0e42eb.rlib --cap-lints allow -L native=D:\syntect\target\debug\build\miniz-sys-18005000ddedadf4\out`
   Compiling winapi-build v0.1.1
     Running `rustc --crate-name build C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\winapi-build-0.1.1\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=be2484a2a757a053 -C extra-filename=-be2484a2a757a053 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
   Compiling onig_sys v61.1.0
     Running `rustc --crate-name build_script_build C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.0\build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"static_onig\"" -C metadata=523c993a9ee13532 -C extra-filename=-523c993a9ee13532 --out-dir D:\syntect\target\debug\build\onig_sys-523c993a9ee13532 -L dependency=D:\syntect\target\debug\deps --extern cmake=D:\syntect\target\debug\deps\libcmake-6e40e0634bac9054.rlib --extern pkg_config=D:\syntect\target\debug\deps\libpkg_config-af8168308ca6d27e.rlib --cap-lints allow`
   Compiling kernel32-sys v0.2.2
     Running `rustc --crate-name build_script_build C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\kernel32-sys-0.2.2\build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 -C metadata=9b6c3463a8ee3470 -C extra-filename=-9b6c3463a8ee3470 --out-dir D:\syntect\target\debug\build\kernel32-sys-9b6c3463a8ee3470 -L dependency=D:\syntect\target\debug\deps --extern build=D:\syntect\target\debug\deps\libbuild-be2484a2a757a053.rlib --cap-lints allow`
     Running `D:\syntect\target\debug\build\kernel32-sys-9b6c3463a8ee3470\build-script-build`
     Running `D:\syntect\target\debug\build\onig_sys-523c993a9ee13532\build-script-build`
     Running `rustc --crate-name onig_sys C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.0\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"static_onig\"" -C metadata=f52ac99e93b52681 -C extra-filename=-f52ac99e93b52681 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern libc=D:\syntect\target\debug\deps\liblibc-5dc7b85e748840b4.rlib --cap-lints allow -L native=C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.0\oniguruma\src -l static=onig_s`
   Compiling onig v1.2.0
     Running `rustc --crate-name onig C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig-1.2.0\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=9c7078a4425052ae -C extra-filename=-9c7078a4425052ae --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern bitflags=D:\syntect\target\debug\deps\libbitflags-65ddff5d2b91509e.rlib --extern lazy_static=D:\syntect\target\debug\deps\liblazy_static-82c2efae9a7bf732.rlib --extern onig_sys=D:\syntect\target\debug\deps\libonig_sys-f52ac99e93b52681.rlib --extern libc=D:\syntect\target\debug\deps\liblibc-5dc7b85e748840b4.rlib --cap-lints allow -L native=C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.0\oniguruma\src`
     Running `rustc --crate-name kernel32 C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\kernel32-sys-0.2.2\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=835ed4d4f4dc2d3e -C extra-filename=-835ed4d4f4dc2d3e --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern winapi=D:\syntect\target\debug\deps\libwinapi-a5898d7aceb63fac.rlib --cap-lints allow -l dylib=kernel32`
   Compiling same-file v0.1.3
   Compiling time v0.1.36
     Running `rustc --crate-name same_file C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\same-file-0.1.3\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=c12e1cdb6d3eac94 -C extra-filename=-c12e1cdb6d3eac94 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern kernel32=D:\syntect\target\debug\deps\libkernel32-835ed4d4f4dc2d3e.rlib --extern winapi=D:\syntect\target\debug\deps\libwinapi-a5898d7aceb63fac.rlib --cap-lints allow`
     Running `rustc --crate-name time C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\time-0.1.36\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=cd5e3a346d1a17b6 -C extra-filename=-cd5e3a346d1a17b6 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern kernel32=D:\syntect\target\debug\deps\libkernel32-835ed4d4f4dc2d3e.rlib --extern winapi=D:\syntect\target\debug\deps\libwinapi-a5898d7aceb63fac.rlib --extern libc=D:\syntect\target\debug\deps\liblibc-5dc7b85e748840b4.rlib --cap-lints allow`
   Compiling walkdir v1.0.7
     Running `rustc --crate-name walkdir C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\walkdir-1.0.7\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=3a61bc78dc1af61f -C extra-filename=-3a61bc78dc1af61f --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern winapi=D:\syntect\target\debug\deps\libwinapi-a5898d7aceb63fac.rlib --extern kernel32=D:\syntect\target\debug\deps\libkernel32-835ed4d4f4dc2d3e.rlib --extern same_file=D:\syntect\target\debug\deps\libsame_file-c12e1cdb6d3eac94.rlib --cap-lints allow`
   Compiling chrono v0.2.25
     Running `rustc --crate-name chrono C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\chrono-0.2.25\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=7f6de010bb6656a2 -C extra-filename=-7f6de010bb6656a2 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern num=D:\syntect\target\debug\deps\libnum-1dc0cc712369fa49.rlib --extern time=D:\syntect\target\debug\deps\libtime-cd5e3a346d1a17b6.rlib --cap-lints allow`
     Running `rustc --crate-name plist C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\plist-0.1.2\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"serde\"" --cfg "feature=\"serde_serialization\"" -C metadata=58ad2f834697ed0e -C extra-filename=-58ad2f834697ed0e --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern xml=D:\syntect\target\debug\deps\libxml-ee7b490fa9cc02e2.rlib --extern chrono=D:\syntect\target\debug\deps\libchrono-7f6de010bb6656a2.rlib --extern byteorder=D:\syntect\target\debug\deps\libbyteorder-fab4d718c73e8b35.rlib --extern rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib --extern serde=D:\syntect\target\debug\deps\libserde-e9bfb02f34c97433.rlib --cap-lints allow`
   Compiling syntect v1.2.0 (file:///D:/syntect)
     Running `rustc --crate-name syntect src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"html\"" --cfg "feature=\"yaml-load\"" --cfg "feature=\"yaml-rust\"" --cfg "feature=\"default\"" --cfg "feature=\"assets\"" -C metadata=6530f4210940a3aa -C extra-filename=-6530f4210940a3aa --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern lazy_static=D:\syntect\target\debug\deps\liblazy_static-82c2efae9a7bf732.rlib --extern onig=D:\syntect\target\debug\deps\libonig-9c7078a4425052ae.rlib --extern rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib --extern regex_syntax=D:\syntect\target\debug\deps\libregex_syntax-21fcdc3a2a66b202.rlib --extern flate2=D:\syntect\target\debug\deps\libflate2-8c506f1983161f68.rlib --extern fnv=D:\syntect\target\debug\deps\libfnv-1953bcde9b6fff16.rlib --extern bincode=D:\syntect\target\debug\deps\libbincode-8273b7b63a07f1b1.rlib --extern walkdir=D:\syntect\target\debug\deps\libwalkdir-3a61bc78dc1af61f.rlib --extern bitflags=D:\syntect\target\debug\deps\libbitflags-88857433f6b67df9.rlib --extern yaml_rust=D:\syntect\target\debug\deps\libyaml_rust-c25be672d1dac690.rlib --extern plist=D:\syntect\target\debug\deps\libplist-58ad2f834697ed0e.rlib -L native=C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.0\oniguruma\src -L native=D:\syntect\target\debug\build\miniz-sys-18005000ddedadf4\out`
     Running `rustc --crate-name syncat examples\syncat.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"html\"" --cfg "feature=\"yaml-load\"" --cfg "feature=\"yaml-rust\"" --cfg "feature=\"default\"" --cfg "feature=\"assets\"" -C metadata=7d55d504dd44feae -C extra-filename=-7d55d504dd44feae --out-dir D:\syntect\target\debug\examples -L dependency=D:\syntect\target\debug\deps --extern lazy_static=D:\syntect\target\debug\deps\liblazy_static-82c2efae9a7bf732.rlib --extern onig=D:\syntect\target\debug\deps\libonig-9c7078a4425052ae.rlib --extern rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib --extern regex_syntax=D:\syntect\target\debug\deps\libregex_syntax-21fcdc3a2a66b202.rlib --extern flate2=D:\syntect\target\debug\deps\libflate2-8c506f1983161f68.rlib --extern fnv=D:\syntect\target\debug\deps\libfnv-1953bcde9b6fff16.rlib --extern bincode=D:\syntect\target\debug\deps\libbincode-8273b7b63a07f1b1.rlib --extern walkdir=D:\syntect\target\debug\deps\libwalkdir-3a61bc78dc1af61f.rlib --extern bitflags=D:\syntect\target\debug\deps\libbitflags-88857433f6b67df9.rlib --extern yaml_rust=D:\syntect\target\debug\deps\libyaml_rust-c25be672d1dac690.rlib --extern plist=D:\syntect\target\debug\deps\libplist-58ad2f834697ed0e.rlib --extern syntect=D:\syntect\target\debug\deps\libsyntect-6530f4210940a3aa.rlib -L native=C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.0\oniguruma\src -L native=D:\syntect\target\debug\build\miniz-sys-18005000ddedadf4\out`
error: linking with `link.exe` failed: exit code: 1107
  |
  = note: "F:\\VisualStudio2015\\VC\\BIN\\amd64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\syntect\\target\\debug\\examples\\syncat-7d55d504dd44feae.0.o" "/OUT:D:\\syntect\\target\\debug\\examples\\syncat-7d55d504dd44feae.exe" "/OPT:REF,NOICF" "/DEBUG" "/LIBPATH:D:\\syntect\\target\\debug\\deps" "/LIBPATH:C:\\Users\\User\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\onig_sys-61.1.0\\oniguruma\\src" "/LIBPATH:D:\\syntect\\target\\debug\\build\\miniz-sys-18005000ddedadf4\\out" "/LIBPATH:C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\syntect\\target\\debug\\deps\\libsyntect-6530f4210940a3aa.rlib" "D:\\syntect\\target\\debug\\deps\\libplist-58ad2f834697ed0e.rlib" "D:\\syntect\\target\\debug\\deps\\libxml-ee7b490fa9cc02e2.rlib" "D:\\syntect\\target\\debug\\deps\\libflate2-8c506f1983161f68.rlib" "D:\\syntect\\target\\debug\\deps\\libonig-9c7078a4425052ae.rlib" "D:\\syntect\\target\\debug\\deps\\libonig_sys-f52ac99e93b52681.rlib" "D:\\syntect\\target\\debug\\deps\\libbitflags-65ddff5d2b91509e.rlib" "D:\\syntect\\target\\debug\\deps\\libregex_syntax-21fcdc3a2a66b202.rlib" "D:\\syntect\\target\\debug\\deps\\libchrono-7f6de010bb6656a2.rlib" "D:\\syntect\\target\\debug\\deps\\libtime-cd5e3a346d1a17b6.rlib" "D:\\syntect\\target\\debug\\deps\\libbincode-8273b7b63a07f1b1.rlib" "D:\\syntect\\target\\debug\\deps\\libbyteorder-240cc8a1e1423fad.rlib" "D:\\syntect\\target\\debug\\deps\\librustc_serialize-54d2bf33b1d4b0b0.rlib" "D:\\syntect\\target\\debug\\deps\\libbitflags-88857433f6b67df9.rlib" "D:\\syntect\\target\\debug\\deps\\libfnv-1953bcde9b6fff16.rlib" "D:\\syntect\\target\\debug\\deps\\libyaml_rust-c25be672d1dac690.rlib" "D:\\syntect\\target\\debug\\deps\\liblazy_static-82c2efae9a7bf732.rlib" "D:\\syntect\\target\\debug\\deps\\libwalkdir-3a61bc78dc1af61f.rlib" "D:\\syntect\\target\\debug\\deps\\libsame_file-c12e1cdb6d3eac94.rlib" "D:\\syntect\\target\\debug\\deps\\libkernel32-835ed4d4f4dc2d3e.rlib" "D:\\syntect\\target\\debug\\deps\\libwinapi-a5898d7aceb63fac.rlib" "D:\\syntect\\target\\debug\\deps\\libbyteorder-fab4d718c73e8b35.rlib" "D:\\syntect\\target\\debug\\deps\\libnum-1dc0cc712369fa49.rlib" "D:\\syntect\\target\\debug\\deps\\libnum_iter-e3d53b72a44dd492.rlib" "D:\\syntect\\target\\debug\\deps\\libnum_integer-bbbfaf8dce75e1b6.rlib" "D:\\syntect\\target\\debug\\deps\\libnum_traits-69f4129d46397118.rlib" "D:\\syntect\\target\\debug\\deps\\libserde-e9bfb02f34c97433.rlib" "D:\\syntect\\target\\debug\\deps\\libserde-13ca9a5f25ca5eb7.rlib" "D:\\syntect\\target\\debug\\deps\\libminiz_sys-371886580b0e42eb.rlib" "D:\\syntect\\target\\debug\\deps\\liblibc-5dc7b85e748840b4.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-90fbcc8c07b4a644.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-d2e7baf2c0a36eaf.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-112baa0117a60076.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-ad15457034b2bf37.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librand-fa1852079e0fefd1.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcollections-27e4c8cc19e6faac.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-588bb0bd8c9dd8ca.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc_system-dbfe715efb71d408.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_unicode-a2e15800b52a7a60.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-b2880fdfb9b2b596.rlib" "C:\\Users\\User\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-9d27746f5ba8488f.rlib" "kernel32.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
  = note: libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_region_copy referenced in function _ZN4onig6region6Region14clone_from_raw17hb9372c89699cf8e4E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_region_clear referenced in function _ZN4onig6region6Region5clear17h57a4698446c961b7E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_region_resize referenced in function _ZN4onig6region6Region7reserve17ha2a936c49d939dd2E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_get_capture_tree referenced in function _ZN4onig6region6Region4tree17hbbf6ae259f85c71fE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_region_free referenced in function _ZN56_$LT$onig..region..Region$u20$as$u20$core..ops..Drop$GT$4drop17hd982b2d70d6fc692E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_number_of_names referenced in function _ZN4onig5names29_$LT$impl$u20$onig..Regex$GT$17capture_names_len17h30c959c7c2f033dfE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxASIS referenced in function _ZN4onig6syntax6Syntax4asis17h51169bec2a4115deE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxPosixBasic referenced in function _ZN4onig6syntax6Syntax11posix_basic17hd473b71486569160E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxPosixExtended referenced in function _ZN4onig6syntax6Syntax14posix_extended17h715f4b744254c5b9E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxEmacs referenced in function _ZN4onig6syntax6Syntax5emacs17h9ddba335d598dea0E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxGrep referenced in function _ZN4onig6syntax6Syntax4grep17hd538911d1ec3ff90E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxGnuRegex referenced in function _ZN4onig6syntax6Syntax9gnu_regex17h3ddaf106ef49f109E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxJava referenced in function _ZN4onig6syntax6Syntax4java17hbab94adc300ab387E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxPerl referenced in function _ZN4onig6syntax6Syntax4perl17he43f265179fa680aE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxPerl_NG referenced in function _ZN4onig6syntax6Syntax7perl_ng17h490ba2803b112d36E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigSyntaxRuby referenced in function _ZN4onig6syntax6Syntax4ruby17hc48812df47549ff7E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigDefaultSyntax referenced in function _ZN4onig6syntax6Syntax7default17h0374629db310c7d3E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_get_syntax_op referenced in function _ZN4onig6syntax6Syntax9operators17h795a5dec43840a7dE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_get_syntax_op2 referenced in function _ZN4onig6syntax6Syntax9operators17h795a5dec43840a7dE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_set_syntax_op referenced in function _ZN4onig6syntax6Syntax13set_operators17h7e2ccc9188233d8eE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_set_syntax_op2 referenced in function _ZN4onig6syntax6Syntax13set_operators17h7e2ccc9188233d8eE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_get_syntax_behavior referenced in function _ZN4onig6syntax6Syntax8behavior17he2a7e10ca59a23eeE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_set_syntax_behavior referenced in function _ZN4onig6syntax6Syntax12set_behavior17h40b3d831fb0297eaE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_get_syntax_options referenced in function _ZN4onig6syntax6Syntax7options17hcceb6aeb7e48cc7eE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_set_syntax_options referenced in function _ZN4onig6syntax6Syntax11set_options17h2c8e79c6e765b16aE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_version referenced in function _ZN4onig5utils7version17h18f6e90136460019E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_copyright referenced in function _ZN4onig5utils9copyright17h63dd297e946f5bbbE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigEncodingUTF8 referenced in function _ZN4onig7buffers12EncodedChars8encoding17h426bcda8c13230cbE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol OnigEncodingASCII referenced in function _ZN4onig7buffers12EncodedBytes5ascii17h988ff013b8fa38b8E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_error_code_to_str referenced in function _ZN4onig5Error3new17hf119ce2dfa0b5923E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_new referenced in function _ZN4onig5Regex25with_options_and_encoding17hff285133bad86bc6E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_match referenced in function _ZN4onig5Regex19match_with_encoding17h1b77925a3812690cE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_search referenced in function _ZN4onig5Regex20search_with_encoding17h07f77c30471d5f30E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_get_encoding referenced in function _ZN4onig5Regex8encoding17h0b438a9f31fadb1aE
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_number_of_captures referenced in function _ZN4onig5Regex12captures_len17hb302767323703d88E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_number_of_capture_histories referenced in function _ZN4onig5Regex21capture_histories_len17h0df51dbaa945e148E
          libonig-9c7078a4425052ae.rlib(onig-9c7078a4425052ae.0.o) : error LNK2019: unresolved external symbol onig_free referenced in function _ZN47_$LT$onig..Regex$u20$as$u20$core..ops..Drop$GT$4drop17h2ba7f113a4c476b4E
          D:\syntect\target\debug\deps\libbitflags-88857433f6b67df9.rlib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x4DDE


error: aborting due to previous error

error: Could not compile `syntect`.

Caused by:
  process didn't exit successfully: `rustc --crate-name syncat examples\syncat.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg feature="html" --cfg feature="yaml-load" --cfg feature="yaml-rust" --cfg feature="default" --cfg feature="assets" -C metadata=7d55d504dd44feae -C extra-filename=-7d55d504dd44feae --out-dir D:\syntect\target\debug\examples -L dependency=D:\syntect\target\debug\deps --extern lazy_static=D:\syntect\target\debug\deps\liblazy_static-82c2efae9a7bf732.rlib --extern onig=D:\syntect\target\debug\deps\libonig-9c7078a4425052ae.rlib --extern rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib --extern regex_syntax=D:\syntect\target\debug\deps\libregex_syntax-21fcdc3a2a66b202.rlib --extern flate2=D:\syntect\target\debug\deps\libflate2-8c506f1983161f68.rlib --extern fnv=D:\syntect\target\debug\deps\libfnv-1953bcde9b6fff16.rlib --extern bincode=D:\syntect\target\debug\deps\libbincode-8273b7b63a07f1b1.rlib --extern walkdir=D:\syntect\target\debug\deps\libwalkdir-3a61bc78dc1af61f.rlib --extern bitflags=D:\syntect\target\debug\deps\libbitflags-88857433f6b67df9.rlib --extern yaml_rust=D:\syntect\target\debug\deps\libyaml_rust-c25be672d1dac690.rlib --extern plist=D:\syntect\target\debug\deps\libplist-58ad2f834697ed0e.rlib --extern syntect=D:\syntect\target\debug\deps\libsyntect-6530f4210940a3aa.rlib -L native=C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.0\oniguruma\src -L native=D:\syntect\target\debug\build\miniz-sys-18005000ddedadf4\out` (exit code: 101)

D:\syntect>
@shepmaster
Copy link
Member

Like your previous issue, this is 99% likely to have nothing to do with Rust the language.

If you believe there is an issue with Rust, then you should be able to produce a minimal example that shows that error, as well as some amount of proof that it's something that Rust is doing wrong as opposed to the third-party crate.

In these cases, it would make the most sense for the authors of the crate that you are trying to use to report this issue, if they believe there is one.

Please re-read the guide to contributing, which discusses when and how to file a bug report.

@retep998
Copy link
Member

Failed to reproduce with x86_64-pc-windows-msvc. Example built fine for me.

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

3 participants