trishume / syntect

Rust library for syntax highlighting using Sublime Text syntax definitions.
https://docs.rs/syntect
MIT License
1.89k stars 131 forks source link

onig crate doesn't link properly for examples on Windows #49

Closed evandrocoan closed 7 years ago

evandrocoan commented 7 years ago

How to build the examples?

I am on the examples folder doing rustc syncat.rs --extern syntect=.\..\target\debug\libsyntect.rlib and it is resulting:

error[E0463]: can't find crate for `yaml_rust` which `syntect` depends on
 --> syncat.rs:1:1
  |
1 | extern crate syntect;
  | ^^^^^^^^^^^^^^^^^^^^^ can't find crate

error: aborting due to previous error

It is seems to be asking for all the crates syntect depends on. Thought it looks like a lot of crates, how would you build an example more simply?

keith-hall commented 7 years ago

Running the example will build it - from the syntect folder, you can execute:

cargo run --example syncat
evandrocoan commented 7 years ago

It gives this linking error running cargo run --example syncat --verbose:

   Compiling syntect v1.2.0 (file:///D:/User/Dropbox/Applications/SoftwareVersioning/SublimeText/Data/Packages/ObjectBeautifier/source/libraries/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_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

Searching for the error gives this issue on Rust:

  1. https://github.com/rust-lang/rust/issues/27438

This is the full log:

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:/User/Dropbox/Applications/SoftwareVersioning/SublimeText/Data/Packages/ObjectBeautifier/source/libraries/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>
trishume commented 7 years ago

Windows linking issues, again I can't help you. My only suggestion would be to try linking Oniguruma statically using this Cargo feature: https://github.com/rust-onig/rust-onig/blob/master/Cargo.toml#L18

evandrocoan commented 7 years ago

But if it was not statically linked, we would not get the error unresolved external symbol, because the symbol will be resolved at run time, instead of compile time. So, it is already statically linked.

trishume commented 7 years ago

As I said, I have no idea how linking works on Windows. Every experience I've had with trying to link things on Windows was terrible and involved hours of frustration. I now basically think of linking on Windows as impossible. I can't really help you.

iwillspeak commented 7 years ago

Looking at the logs above it seems like onig_sys v61.1.0 is being used rather than v61.1.1. The latter contains the msvc build support. Could you try running cargo update to upgrade the version of onig_sys?

evandrocoan commented 7 years ago

I had tested your fix for onig before the release of v61.1.1, while it was on the branch windows-buildfix. So to do that I checkout on the branch windows-buildfix and replaced the version v61.1.0 by the fix on windows-buildfix. So I was already using the fixed version.

But just to be sure I ran the commands:

  1. cargo update
  2. cargo clean
  3. cargo run --example syncat --verbose

But the result was the same:

D:\syntect>cargo update
    Updating registry `https://github.com/rust-lang/crates.io-index`
    Updating onig v1.2.0 -> v1.2.1
    Updating onig_sys v61.1.0 -> v61.1.1

D:\syntect>call "F:\VisualStudio2015\VC\vcvarsall.bat" x64

D:\syntect>cargo clean

D:\syntect>cargo run --example syncat --verbose
 Downloading onig v1.2.1
 Downloading onig_sys v61.1.1
   Compiling byteorder v0.5.3
   Compiling plist v0.1.2
   Compiling winapi-build v0.1.1
   Compiling winapi v0.2.8
     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 debuginfo=2 --cfg "feature=\"default\"" --cfg "feature=\"std\"" -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 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`
     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`
     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_serialization\"" --cfg "feature=\"serde\"" -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 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 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`
   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 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 debuginfo=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 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 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_traits=D:\syntect\target\debug\deps\libnum_traits-69f4129d46397118.rlib --extern num_integer=D:\syntect\target\debug\deps\libnum_integer-bbbfaf8dce75e1b6.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_traits=D:\syntect\target\debug\deps\libnum_traits-69f4129d46397118.rlib --extern num_integer=D:\syntect\target\debug\deps\libnum_integer-bbbfaf8dce75e1b6.rlib --extern num_iter=D:\syntect\target\debug\deps\libnum_iter-e3d53b72a44dd492.rlib --cap-lints allow`
   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 libc v0.2.21
     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=\"use_std\"" --cfg "feature=\"default\"" -C metadata=5dc7b85e748840b4 -C extra-filename=-5dc7b85e748840b4 --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 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 onig_sys v61.1.1
     Running `rustc --crate-name build_script_build C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.1\build.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"static_onig\"" -C metadata=85da07d30409424c -C extra-filename=-85da07d30409424c --out-dir D:\syntect\target\debug\build\onig_sys-85da07d30409424c -L dependency=D:\syntect\target\debug\deps --extern pkg_config=D:\syntect\target\debug\deps\libpkg_config-af8168308ca6d27e.rlib --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 gcc v0.3.45
     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`
   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`
     Running `D:\syntect\target\debug\build\onig_sys-85da07d30409424c\build-script-build`
     Running `rustc --crate-name onig_sys C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.1\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"static_onig\"" -C metadata=62646f983e215c97 -C extra-filename=-62646f983e215c97 --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.1\oniguruma\src -l static=onig_s`
   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=\"default\"" --cfg "feature=\"std\"" -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 onig v1.2.1
     Running `rustc --crate-name onig C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig-1.2.1\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=02b35043f5e93029 -C extra-filename=-02b35043f5e93029 --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 libc=D:\syntect\target\debug\deps\liblibc-5dc7b85e748840b4.rlib --extern onig_sys=D:\syntect\target\debug\deps\libonig_sys-62646f983e215c97.rlib --extern bitflags=D:\syntect\target\debug\deps\libbitflags-65ddff5d2b91509e.rlib --cap-lints allow -L native=C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.1\oniguruma\src`
   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=\"default\"" --cfg "feature=\"std\"" -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 serde v0.9.11
     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 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`
     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 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=\"serde\"" --cfg "feature=\"default\"" --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 rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib --extern num_traits=D:\syntect\target\debug\deps\libnum_traits-69f4129d46397118.rlib --extern byteorder=D:\syntect\target\debug\deps\libbyteorder-240cc8a1e1423fad.rlib --extern serde=D:\syntect\target\debug\deps\libserde-13ca9a5f25ca5eb7.rlib --cap-lints allow`
     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 time v0.1.36
   Compiling same-file v0.1.3
     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 libc=D:\syntect\target\debug\deps\liblibc-5dc7b85e748840b4.rlib --extern winapi=D:\syntect\target\debug\deps\libwinapi-a5898d7aceb63fac.rlib --extern kernel32=D:\syntect\target\debug\deps\libkernel32-835ed4d4f4dc2d3e.rlib --cap-lints allow`
     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`
   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 kernel32=D:\syntect\target\debug\deps\libkernel32-835ed4d4f4dc2d3e.rlib --extern winapi=D:\syntect\target\debug\deps\libwinapi-a5898d7aceb63fac.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_serialization\"" --cfg "feature=\"serde\"" -C metadata=58ad2f834697ed0e -C extra-filename=-58ad2f834697ed0e --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern byteorder=D:\syntect\target\debug\deps\libbyteorder-fab4d718c73e8b35.rlib --extern xml=D:\syntect\target\debug\deps\libxml-ee7b490fa9cc02e2.rlib --extern chrono=D:\syntect\target\debug\deps\libchrono-7f6de010bb6656a2.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 D:\syntect\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"assets\"" --cfg "feature=\"yaml-rust\"" --cfg "feature=\"default\"" --cfg "feature=\"yaml-load\"" --cfg "feature=\"html\"" -C metadata=6530f4210940a3aa -C extra-filename=-6530f4210940a3aa --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern bitflags=D:\syntect\target\debug\deps\libbitflags-88857433f6b67df9.rlib --extern yaml_rust=D:\syntect\target\debug\deps\libyaml_rust-c25be672d1dac690.rlib --extern lazy_static=D:\syntect\target\debug\deps\liblazy_static-82c2efae9a7bf732.rlib --extern onig=D:\syntect\target\debug\deps\libonig-02b35043f5e93029.rlib --extern plist=D:\syntect\target\debug\deps\libplist-58ad2f834697ed0e.rlib --extern fnv=D:\syntect\target\debug\deps\libfnv-1953bcde9b6fff16.rlib --extern regex_syntax=D:\syntect\target\debug\deps\libregex_syntax-21fcdc3a2a66b202.rlib --extern rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib --extern bincode=D:\syntect\target\debug\deps\libbincode-8273b7b63a07f1b1.rlib --extern walkdir=D:\syntect\target\debug\deps\libwalkdir-3a61bc78dc1af61f.rlib --extern flate2=D:\syntect\target\debug\deps\libflate2-8c506f1983161f68.rlib -L native=C:\Users\User\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.1.1\oniguruma\src -L native=D:\syntect\target\debug\build\miniz-sys-18005000ddedadf4\out`
     Running `rustc --crate-name syncat syncat.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"assets\"" --cfg "feature=\"yaml-rust\"" --cfg "feature=\"default\"" --cfg "feature=\"yaml-load\"" --cfg "feature=\"html\"" -C metadata=7d55d504dd44feae -C extra-filename=-7d55d504dd44feae --out-dir D:\syntect\target\debug\examples -L dependency=D:\syntect\target\debug\deps --extern bitflags=D:\syntect\target\debug\deps\libbitflags-88857433f6b67df9.rlib --extern yaml_rust=D:\syntect\target\debug\deps\libyaml_rust-c25be672d1dac690.rlib --extern lazy_static=D:\syntect\target\debug\deps\liblazy_static-82c2efae9a7bf732.rlib --extern onig=D:\syntect\target\debug\deps\libonig-02b35043f5e93029.rlib --extern plist=D:\syntect\target\debug\deps\libplist-58ad2f834697ed0e.rlib --extern fnv=D:\syntect\target\debug\deps\libfnv-1953bcde9b6fff16.rlib --extern regex_syntax=D:\syntect\target\debug\deps\libregex_syntax-21fcdc3a2a66b202.rlib --extern rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib --extern bincode=D:\syntect\target\debug\deps\libbincode-8273b7b63a07f1b1.rlib --extern walkdir=D:\syntect\target\debug\deps\libwalkdir-3a61bc78dc1af61f.rlib --extern flate2=D:\syntect\target\debug\deps\libflate2-8c506f1983161f68.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.1\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\\Professional\\.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\\Professional\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\onig_sys-61.1.1\\oniguruma\\src" "/LIBPATH:D:\\syntect\\target\\debug\\build\\miniz-sys-18005000ddedadf4\\out" "/LIBPATH:C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "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-02b35043f5e93029.rlib" "D:\\\\syntect\\target\\debug\\deps\\libonig_sys-62646f983e215c97.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\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-90fbcc8c07b4a644.rlib" "C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-d2e7baf2c0a36eaf.rlib" "C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-112baa0117a60076.rlib" "C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-ad15457034b2bf37.rlib" "C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librand-fa1852079e0fefd1.rlib" "C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcollections-27e4c8cc19e6faac.rlib" "C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-588bb0bd8c9dd8ca.rlib" "C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc_system-dbfe715efb71d408.rlib" "C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_unicode-a2e15800b52a7a60.rlib" "C:\\Users\\Professional\\.rustup\\toolchains\\stable-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-b2880fdfb9b2b596.rlib" "C:\\Users\\Professional\\.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-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_region_copy referenced in function _ZN4onig6region6Region14clone_from_raw17h4c3f35a4fcd0fad5E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_region_clear referenced in function _ZN4onig6region6Region5clear17h440e82d3f0c02f17E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_region_resize referenced in function _ZN4onig6region6Region7reserve17h9710f2e3cce0b100E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_get_capture_tree referenced in function _ZN4onig6region6Region4tree17h23b92ad27b302006E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.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$4drop17h398426c28dc53aadE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_number_of_names referenced in function _ZN4onig5names29_$LT$impl$u20$onig..Regex$GT$17capture_names_len17hbe42e538890c295dE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxASIS referenced in function _ZN4onig6syntax6Syntax4asis17h1132eeadf8ed72b6E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxPosixBasic referenced in function _ZN4onig6syntax6Syntax11posix_basic17h933220be2a31fe32E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxPosixExtended referenced in function _ZN4onig6syntax6Syntax14posix_extended17h69aac52ae44ff351E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxEmacs referenced in function _ZN4onig6syntax6Syntax5emacs17h62b52aeb4042dcb0E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxGrep referenced in function _ZN4onig6syntax6Syntax4grep17hdefe7ecc7c3d3e36E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxGnuRegex referenced in function _ZN4onig6syntax6Syntax9gnu_regex17h1ec13935c7468795E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxJava referenced in function _ZN4onig6syntax6Syntax4java17h7cdd2227ce563a42E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxPerl referenced in function _ZN4onig6syntax6Syntax4perl17h36d7daabdc719584E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxPerl_NG referenced in function _ZN4onig6syntax6Syntax7perl_ng17hd57e3c2d038f6ffeE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigSyntaxRuby referenced in function _ZN4onig6syntax6Syntax4ruby17h2f3bb7ac008e4a66E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigDefaultSyntax referenced in function _ZN4onig6syntax6Syntax7default17h6106210b22762acbE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_get_syntax_op referenced in function _ZN4onig6syntax6Syntax9operators17h5273fe9f823784b2E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_get_syntax_op2 referenced in function _ZN4onig6syntax6Syntax9operators17h5273fe9f823784b2E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_set_syntax_op referenced in function _ZN4onig6syntax6Syntax13set_operators17h5f81c3bba3289731E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_set_syntax_op2 referenced in function _ZN4onig6syntax6Syntax13set_operators17h5f81c3bba3289731E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_get_syntax_behavior referenced in function _ZN4onig6syntax6Syntax8behavior17h340c03735e63fcb1E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_set_syntax_behavior referenced in function _ZN4onig6syntax6Syntax12set_behavior17haf0662f5cb1f5de1E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_get_syntax_options referenced in function _ZN4onig6syntax6Syntax7options17he9174ad479b872ddE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_set_syntax_options referenced in function _ZN4onig6syntax6Syntax11set_options17h07b6c75bab3926b3E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_version referenced in function _ZN4onig5utils7version17h6804e1117437265dE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_copyright referenced in function _ZN4onig5utils9copyright17h7878d877d5cdbc4fE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigEncodingUTF8 referenced in function _ZN4onig7buffers12EncodedChars8encoding17h37c9afa7b22bad47E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol OnigEncodingASCII referenced in function _ZN4onig7buffers12EncodedBytes5ascii17h57ebf05bba3ff777E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_error_code_to_str referenced in function _ZN4onig5Error3new17h109b621c010d146eE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_new referenced in function _ZN4onig5Regex25with_options_and_encoding17h86080eb1d1bea53aE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_match referenced in function _ZN4onig5Regex19match_with_encoding17h4c41eda2726796c7E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_search referenced in function _ZN4onig5Regex20search_with_encoding17hfdc13796cccdfc69E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_get_encoding referenced in function _ZN4onig5Regex8encoding17h9d46d9e159937bc1E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_number_of_captures referenced in function _ZN4onig5Regex12captures_len17h76d78a11143554e2E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_number_of_capture_histories referenced in function _ZN4onig5Regex21capture_histories_len17h1cd8220ec10d6f3dE
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_free referenced in function _ZN47_$LT$onig..Regex$u20$as$u20$core..ops..Drop$GT$4drop17h42102a1e03e57141E
          D:\syntect\target\debug\deps\libbitflags-88857433f6b67df9.rlib : fatal error LNK1107: invalid or corrupt file: cannot read at 0x4DE8

error: aborting due to previous error

error: Could not compile `syntect`.

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

D:\syntect>
iwillspeak commented 7 years ago

I notice that you're passing x64 to vcvars, shouldn't that be x86_amd64? That's what I'm using in the x86_64-pc-windows-msvc build on AppVeyor:

"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" x86_amd64
evandrocoan commented 7 years ago

I ran:

  1. call "F:\VisualStudio2015\VC\vcvarsall.bat" x86_amd64
  2. cargo clean
  3. cargo run --example syncat --verbose

But the out come result still linking only the syntect project but not the syncat example.

  = note: libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_region_copy referenced in function _ZN4onig6region6Region14clone_from_raw17h4c3f35a4fcd0fad5E
          libonig-02b35043f5e93029.rlib(onig-02b35043f5e93029.0.o) : error LNK2019: unresolved external symbol onig_region_clear referenced in function _ZN4onig6region6Region5clear17h440e82d3f0c02f17E
iwillspeak commented 7 years ago

Thanks.

I think the final error in that list, LNK1107 is the problem. From the documentation it appears that a DLL is being passed when the linker is expecting an object file.

Could you try forcing a static link with static-libonig in the features of the onig reference?

evandrocoan commented 7 years ago

This makes sense. If the contents of libbitflags-88857433f6b67df9.rlib are on the .dll format, the linker will point to all the references as invalid because it is expecting an object file formerly on the .obj format.

Could you try forcing a static link with static-libonig in the features of the onig reference?

Sorry, but I started learning Rust almost yesterday. What file(s) should I change the build process to force static linking?

Also, looking for the name libbitflags which is triggering the error fatal error LNK1107: invalid or corrupt file, seems only that library is corrupted. Thought, you know from where is coming the command line the libbitflags is being built?

Update:

I found the command line for it right on the list:

   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`
iwillspeak commented 7 years ago

In the Cargo.toml file for the project which depends on onig you will need to change the reference from looking like

onig = 1.2

To

[dependencies.onig]
version = 1.2
features = [ "static-libonig" ]

As for the bitflags library: that is a dependency of onig. It is built by cargo before onig itself is built.

On Sat, 18 Mar 2017 at 19:22, Evandro Coan notifications@github.com wrote:

This makes sense. If the contents of libbitflags-88857433f6b67df9.rlib are on the .dll format, the linker will point to all the references as invalid because it is expecting an object file formerly on the .obj format.

Could you try forcing a static link with static-libonig in the features of the onig reference?

Sorry, but I started learning Rust almost yesterday. What files should I change the build process to force static linking?

Also, looking for the name libbitflags which is triggering the error fatal error LNK1107: invalid or corrupt file, seems only that library is corrupted. Thought, you know from where is the command line the libbitflags is being built?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/trishume/syntect/issues/49#issuecomment-287568517, or mute the thread https://github.com/notifications/unsubscribe-auth/AA9TccM2h7-b8FScCUZikZMKVvCk7TG9ks5rnC7jgaJpZM4MhR1p .

evandrocoan commented 7 years ago

It already has something like so https://github.com/trishume/syntect/blob/master/Cargo.toml#L32:

[dependencies]
yaml-rust = { version = "0.3.5", optional = true }
onig = "1.2.0"
...

[features]
static-onig = ["onig/static-libonig"]

It is on this project syntect, which depends on https://github.com/rust-onig/rust-onig, which depends on https://github.com/kkos/oniguruma

This project is building file if I just run cargo build to build this library. However when it is asked to build/use this library with one of the example available at https://github.com/trishume/syntect/tree/master/examples calling cargo run --example syncat, presents the linker problem.

Thought, I tried change the Cargo.toml on https://github.com/trishume/syntect/blob/master/Cargo.toml as:

[dependencies]
yaml-rust = { version = "0.3.5", optional = true }
onig = "1.2.0"
...

-->

[dependencies]
yaml-rust = { version = "0.3.5", optional = true }
...

[dependencies.onig]
onig = "1.2.0"
features = [ "static-libonig" ]

Resulting on the full file:

[package]
name = "syntect"
description = "library for high quality syntax highlighting and code intelligence using Sublime Text's grammars"
documentation = "http://thume.ca/rustdoc/syntect/syntect/"
repository = "https://github.com/trishume/syntect"
keywords = ["syntax", "highlighting", "highlighter", "colouring", "parsing"]
readme = "Readme.md"
license = "MIT"
version = "1.2.0"
authors = ["Tristan Hume <tristan@thume.ca>"]
exclude = [
    "testdata/*",
]

[dependencies]
yaml-rust = { version = "0.3.5", optional = true }
walkdir = "^1.0"
regex-syntax = "^0.4"
lazy_static = "^0.2"
bitflags = "^0.8"
plist = "0.1.1"
rustc-serialize = "^0.3"
bincode = "0.6"
flate2 = "^0.2"
fnv = "^1.0"

[dependencies.onig]
onig = "1.2.0"
features = [ "static-libonig" ]

[features]
assets = []
html = ["assets"]
yaml-load = ["yaml-rust"]
default = ["assets", "html", "yaml-load"]

# [profile.release]
# debug = true

But it outputted:

cargo run --example synstats --verbose
warning: dependency (onig) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions
warning: unused manifest key: dependencies.onig.onig
retep998 commented 7 years ago

But if it was not statically linked, we would not get the error unresolved external symbol, because the symbol will be resolved at run time, instead of compile time. So, it is already statically linked.

Regardless of whether you link to an import library, or a static library, you need the library at link time. If you link to an import library you gain a dependency on a DLL at run time, but you can still get unresolved symbol errors at link time if you didn't pass the library to the linker.

I think the final error in that list, LNK1107 is the problem. From the documentation it appears that a DLL is being passed when the linker is expecting an object file.

This is a red herring. Whenever linking fails, link.exe will decide to spit out that error about one of the Rust crates passed to it, but it is never the cause of the problem. The real problem is simply that the onig library isn't being passed to the linker.

Also, please don't use cargo features incorrectly. A cargo feature to select whether to link a library statically or dynamically is wrong. Cargo features should be used exclusively for API additions. Consider using an environment variable instead to configure how onig is linked.

retep998 commented 7 years ago

I'm currently using x86_64-pc-windows-msvc with the VC++ 2015 build tools. I just cloned syntect and did cargo build --example syncat and it built fine.

evandrocoan commented 7 years ago

Thanks for the time testing it. I also built it right now. I just do not know how it started working. But it could be because early I realized the Cargo.lock is auto generated, then I deleted mine old one to see if would help. It seem that could be the problem, after the rust-onig build fix by @iwillspeak .

The program syncat is not stopping here. It ran until the file .\testdata\issue33.rs and hanged there. @retep998 does your syncat stopped?

This was the outputs:

D:\syntect>cargo run --example synstats --verbose
       Fresh yaml-rust v0.3.5
       Fresh gcc v0.3.45
       Fresh regex-syntax v0.4.0
       Fresh num-traits v0.1.37
   Compiling utf8-ranges v1.0.0
       Fresh lazy_static v0.2.4
       Fresh bitflags v0.8.0
       Fresh libc v0.2.21
     Running `rustc --crate-name utf8_ranges C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\utf8-ranges-1.0.0\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=96b53fb879382c48 -C extra-filename=-96b53fb879382c48 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
       Fresh rustc-serialize v0.3.23
       Fresh winapi v0.2.8
       Fresh fnv v1.0.5
       Fresh serde v0.8.23
       Fresh num-integer v0.1.33
       Fresh serde v0.9.11
       Fresh winapi-build v0.1.1
       Fresh byteorder v0.5.3
   Compiling void v1.0.2
       Fresh pkg-config v0.3.9
       Fresh num-iter v0.1.33
     Running `rustc --crate-name void C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\void-1.0.2\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=408bd2d66dde02c1 -C extra-filename=-408bd2d66dde02c1 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --cap-lints allow`
       Fresh num v0.1.37
       Fresh byteorder v1.0.0
       Fresh bincode v0.6.1
       Fresh kernel32-sys v0.2.2
       Fresh same-file v0.1.3
       Fresh walkdir v1.0.7
   Compiling thread-id v3.0.0
       Fresh miniz-sys v0.1.9
     Running `rustc --crate-name thread_id C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\thread-id-3.0.0\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=7c664cbece6d9f97 -C extra-filename=-7c664cbece6d9f97 --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern kernel32=D:\syntect\target\debug\deps\libkernel32-835ed4d4f4dc2d3e.rlib --cap-lints allow`
       Fresh flate2 v0.2.17
       Fresh time v0.1.36
       Fresh chrono v0.2.25
   Compiling memchr v1.0.1
     Running `rustc --crate-name memchr C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\memchr-1.0.1\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"use_std\"" --cfg "feature=\"libc\"" --cfg "feature=\"default\"" -C metadata=2d0f309229d6f8c6 -C extra-filename=-2d0f309229d6f8c6 --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`
   Compiling unreachable v0.1.1
     Running `rustc --crate-name unreachable C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\unreachable-0.1.1\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=ebcc746f6a526ccc -C extra-filename=-ebcc746f6a526ccc --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern void=D:\syntect\target\debug\deps\libvoid-408bd2d66dde02c1.rlib --cap-lints allow`
       Fresh bitflags v0.7.0
       Fresh xml-rs v0.3.6
       Fresh plist v0.1.2
       Fresh onig_sys v61.3.0
       Fresh onig v1.2.2
   Compiling aho-corasick v0.6.3
     Running `rustc --crate-name aho_corasick C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\aho-corasick-0.6.3\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=0e5d715e1094e2dd -C extra-filename=-0e5d715e1094e2dd --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern memchr=D:\syntect\target\debug\deps\libmemchr-2d0f309229d6f8c6.rlib --cap-lints allow`
   Compiling thread_local v0.3.3
     Running `rustc --crate-name thread_local C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\thread_local-0.3.3\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=c8755f64dce6c8cd -C extra-filename=-c8755f64dce6c8cd --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern thread_id=D:\syntect\target\debug\deps\libthread_id-7c664cbece6d9f97.rlib --extern unreachable=D:\syntect\target\debug\deps\libunreachable-ebcc746f6a526ccc.rlib --cap-lints allow`
   Compiling regex v0.2.1
     Running `rustc --crate-name regex C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\regex-0.2.1\src\lib.rs --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=59ef72234132697a -C extra-filename=-59ef72234132697a --out-dir D:\syntect\target\debug\deps -L dependency=D:\syntect\target\debug\deps --extern regex_syntax=D:\syntect\target\debug\deps\libregex_syntax-21fcdc3a2a66b202.rlib --extern memchr=D:\syntect\target\debug\deps\libmemchr-2d0f309229d6f8c6.rlib --extern thread_local=D:\syntect\target\debug\deps\libthread_local-c8755f64dce6c8cd.rlib --extern aho_corasick=D:\syntect\target\debug\deps\libaho_corasick-0e5d715e1094e2dd.rlib --extern utf8_ranges=D:\syntect\target\debug\deps\libutf8_ranges-96b53fb879382c48.rlib --cap-lints allow`
   Compiling syntect v1.2.0 (file:///D:/syntect)
     Running `rustc --crate-name synstats examples\synstats.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"yaml-rust\"" --cfg "feature=\"html\"" --cfg "feature=\"yaml-load\"" --cfg "feature=\"assets\"" --cfg "feature=\"default\"" -C metadata=e5335d9ae266988d -C extra-filename=-e5335d9ae266988d --out-dir D:\syntect\target\debug\examples -L dependency=D:\syntect\target\debug\deps --extern walkdir=D:\syntect\target\debug\deps\libwalkdir-3a61bc78dc1af61f.rlib --extern fnv=D:\syntect\target\debug\deps\libfnv-1953bcde9b6fff16.rlib --extern bincode=D:\syntect\target\debug\deps\libbincode-8273b7b63a07f1b1.rlib --extern lazy_static=D:\syntect\target\debug\deps\liblazy_static-82c2efae9a7bf732.rlib --extern bitflags=D:\syntect\target\debug\deps\libbitflags-88857433f6b67df9.rlib --extern onig=D:\syntect\target\debug\deps\libonig-f17d33ab3a208d9d.rlib --extern plist=D:\syntect\target\debug\deps\libplist-58ad2f834697ed0e.rlib --extern regex=D:\syntect\target\debug\deps\libregex-59ef72234132697a.rlib --extern regex_syntax=D:\syntect\target\debug\deps\libregex_syntax-21fcdc3a2a66b202.rlib --extern rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib --extern flate2=D:\syntect\target\debug\deps\libflate2-8c506f1983161f68.rlib --extern yaml_rust=D:\syntect\target\debug\deps\libyaml_rust-c25be672d1dac690.rlib --extern syntect=D:\syntect\target\debug\deps\libsyntect-6530f4210940a3aa.rlib -L native=C:\Users\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.3.0\oniguruma\src -L native=D:\syntect\target\debug\build\miniz-sys-18005000ddedadf4\out`
    Finished dev [unoptimized + debuginfo] target(s) in 55.60 secs
     Running `target\debug\examples\synstats.exe`
################## Files ###################
.\assets\default.themedump
.\assets\default_newlines.packdump
.\assets\default_nonewlines.packdump
.\benches\highlighting.rs
.\benches\loading.rs
.\benches\parsing.rs
.\Cargo.lock
.\Cargo.toml
.\examples\gendata.rs
.\examples\syncat.rs
.\examples\synhtml.rs
.\examples\synstats.rs
.\examples\syntest.rs
.\LICENSE.txt
.\Makefile
.\scripts\id_rsa.enc
.\scripts\travis-doc-upload.cfg
.\scripts\travis-doc-upload.sh
.\src\dumps.rs
.\src\easy.rs
.\src\escape.rs
.\src\highlighting\highlighter.rs
.\src\highlighting\mod.rs
.\src\highlighting\selector.rs
.\src\highlighting\settings.rs
.\src\highlighting\style.rs
.\src\highlighting\theme.rs
.\src\highlighting\theme_set.rs
.\src\html.rs
.\src\lib.rs
.\src\parsing\mod.rs
.\src\parsing\parser.rs
.\src\parsing\scope.rs
.\src\parsing\syntax_definition.rs
.\src\parsing\syntax_set.rs
.\src\parsing\yaml_load.rs
.\src\util.rs
.\target\debug\build\kernel32-sys-9b6c3463a8ee3470\build-script-build.exe
.\target\debug\build\kernel32-sys-9b6c3463a8ee3470\build_script_build-9b6c3463a8ee3470.exe
.\target\debug\build\kernel32-sys-9b6c3463a8ee3470\build_script_build-9b6c3463a8ee3470.pdb
.\target\debug\build\kernel32-sys-f7d160356cfc5646\output
.\target\debug\build\miniz-sys-17b016e6785aa5b2\build-script-build.exe
.\target\debug\build\miniz-sys-17b016e6785aa5b2\build_script_build-17b016e6785aa5b2.exe
.\target\debug\build\miniz-sys-17b016e6785aa5b2\build_script_build-17b016e6785aa5b2.pdb
.\target\debug\build\miniz-sys-18005000ddedadf4\out\libminiz.a
.\target\debug\build\miniz-sys-18005000ddedadf4\out\miniz.lib
.\target\debug\build\miniz-sys-18005000ddedadf4\out\miniz.o
.\target\debug\build\miniz-sys-18005000ddedadf4\output
.\target\debug\build\onig_sys-41ba85cde811c31a\build-script-build.exe
.\target\debug\build\onig_sys-41ba85cde811c31a\build_script_build-41ba85cde811c31a.exe
.\target\debug\build\onig_sys-41ba85cde811c31a\build_script_build-41ba85cde811c31a.pdb
.\target\debug\build\onig_sys-d1dec70807d1e585\output
.\target\debug\build\plist-65c5b8ef106220da\output
.\target\debug\build\plist-9d7d6530b410ce7f\build-script-build.exe
.\target\debug\build\plist-9d7d6530b410ce7f\build_script_build-9d7d6530b410ce7f.exe
.\target\debug\build\plist-9d7d6530b410ce7f\build_script_build-9d7d6530b410ce7f.pdb
.\target\debug\deps\libaho_corasick-0e5d715e1094e2dd.rlib
.\target\debug\deps\libbincode-8273b7b63a07f1b1.rlib
.\target\debug\deps\libbitflags-65ddff5d2b91509e.rlib
.\target\debug\deps\libbitflags-88857433f6b67df9.rlib
.\target\debug\deps\libbuild-be2484a2a757a053.rlib
.\target\debug\deps\libbyteorder-240cc8a1e1423fad.rlib
.\target\debug\deps\libbyteorder-fab4d718c73e8b35.rlib
.\target\debug\deps\libchrono-7f6de010bb6656a2.rlib
.\target\debug\deps\libflate2-8c506f1983161f68.rlib
.\target\debug\deps\libfnv-1953bcde9b6fff16.rlib
.\target\debug\deps\libgcc-fc74a781854cbb8b.rlib
.\target\debug\deps\libkernel32-835ed4d4f4dc2d3e.rlib
.\target\debug\deps\liblazy_static-82c2efae9a7bf732.rlib
.\target\debug\deps\liblibc-5dc7b85e748840b4.rlib
.\target\debug\deps\libmemchr-2d0f309229d6f8c6.rlib
.\target\debug\deps\libminiz_sys-371886580b0e42eb.rlib
.\target\debug\deps\libnum-1dc0cc712369fa49.rlib
.\target\debug\deps\libnum_integer-bbbfaf8dce75e1b6.rlib
.\target\debug\deps\libnum_iter-e3d53b72a44dd492.rlib
.\target\debug\deps\libnum_traits-69f4129d46397118.rlib
.\target\debug\deps\libonig-f17d33ab3a208d9d.rlib
.\target\debug\deps\libonig_sys-7b2b9de1339cf894.rlib
.\target\debug\deps\libpkg_config-af8168308ca6d27e.rlib
.\target\debug\deps\libplist-58ad2f834697ed0e.rlib
.\target\debug\deps\libregex-59ef72234132697a.rlib
.\target\debug\deps\libregex_syntax-21fcdc3a2a66b202.rlib
.\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.rlib
.\target\debug\deps\libsame_file-c12e1cdb6d3eac94.rlib
.\target\debug\deps\libserde-13ca9a5f25ca5eb7.rlib
.\target\debug\deps\libserde-e9bfb02f34c97433.rlib
.\target\debug\deps\libsyntect-6530f4210940a3aa.rlib
.\target\debug\deps\libthread_id-7c664cbece6d9f97.rlib
.\target\debug\deps\libthread_local-c8755f64dce6c8cd.rlib
.\target\debug\deps\libtime-cd5e3a346d1a17b6.rlib
.\target\debug\deps\libunreachable-ebcc746f6a526ccc.rlib
.\target\debug\deps\libutf8_ranges-96b53fb879382c48.rlib
.\target\debug\deps\libvoid-408bd2d66dde02c1.rlib
.\target\debug\deps\libwalkdir-3a61bc78dc1af61f.rlib
.\target\debug\deps\libwinapi-a5898d7aceb63fac.rlib
.\target\debug\deps\libxml-ee7b490fa9cc02e2.rlib
.\target\debug\deps\libyaml_rust-c25be672d1dac690.rlib
.\target\debug\examples\synstats-e5335d9ae266988d.exe
.\target\debug\examples\synstats-e5335d9ae266988d.exp
.\target\debug\examples\synstats-e5335d9ae266988d.lib
.\target\debug\examples\synstats-e5335d9ae266988d.pdb
.\target\debug\examples\synstats.d
.\target\debug\examples\synstats.exe
.\target\debug\libsyntect.d
.\target\debug\libsyntect.rlib
.\testdata\clear_scopes_test.asa
.\testdata\highlight_test.erb
.\testdata\InspiredGitHub.tmtheme\InspiredGitHub.tmTheme
.\testdata\InspiredGitHub.tmtheme\LICENSE
.\testdata\InspiredGitHub.tmtheme\messages\1.1.0.txt
.\testdata\InspiredGitHub.tmtheme\messages\1.2.0.txt
.\testdata\InspiredGitHub.tmtheme\messages\1.2.1.txt
.\testdata\InspiredGitHub.tmtheme\messages\install.txt
.\testdata\InspiredGitHub.tmtheme\messages.json
.\testdata\InspiredGitHub.tmtheme\previews\InspiredGitHub-css.png
.\testdata\InspiredGitHub.tmtheme\previews\InspiredGitHub-html.png
.\testdata\InspiredGitHub.tmtheme\previews\InspiredGitHub-javascript.png
.\testdata\InspiredGitHub.tmtheme\previews\InspiredGitHub-markdown.png
.\testdata\issue25.c
.\testdata\issue28.rs
.\testdata\issue30.tex
.\testdata\issue33.rs

Update:

I just noticed I ran synstats instead of syncat. But I tested also syncat and it also worked:

D:\syntect>cargo run --example syncat --verbose
       Fresh winapi v0.2.8
       Fresh serde v0.8.23
       Fresh bitflags v0.7.0
       Fresh fnv v1.0.5
       Fresh pkg-config v0.3.9
       Fresh regex-syntax v0.4.0
       Fresh bitflags v0.8.0
       Fresh yaml-rust v0.3.5
       Fresh lazy_static v0.2.4
       Fresh winapi-build v0.1.1
       Fresh num-traits v0.1.37
       Fresh serde v0.9.11
       Fresh xml-rs v0.3.6
       Fresh num-integer v0.1.33
       Fresh void v1.0.2
       Fresh byteorder v0.5.3
       Fresh num-iter v0.1.33
       Fresh unreachable v0.1.1
       Fresh num v0.1.37
       Fresh rustc-serialize v0.3.23
       Fresh libc v0.2.21
       Fresh kernel32-sys v0.2.2
       Fresh byteorder v1.0.0
       Fresh gcc v0.3.45
       Fresh memchr v1.0.1
       Fresh time v0.1.36
       Fresh thread-id v3.0.0
       Fresh bincode v0.6.1
       Fresh aho-corasick v0.6.3
       Fresh chrono v0.2.25
       Fresh same-file v0.1.3
       Fresh utf8-ranges v1.0.0
       Fresh plist v0.1.2
       Fresh walkdir v1.0.7
       Fresh thread_local v0.3.3
       Fresh onig_sys v61.3.0
       Fresh regex v0.2.1
       Fresh onig v1.2.2
       Fresh miniz-sys v0.1.9
       Fresh flate2 v0.2.17
   Compiling syntect v1.2.0 (file:///D:/syntect)
     Running `rustc --crate-name syncat examples\syncat.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"assets\"" --cfg "feature=\"html\"" --cfg "feature=\"yaml-load\"" --cfg "feature=\"yaml-rust\"" --cfg "feature=\"default\"" -C metadata=7d55d504dd44feae -C extra-filename=-7d55d504dd44feae --out-dir D:\syntect\target\debug\examples -L dependency=D:\syntect\target\debug\deps --extern onig=D:\syntect\target\debug\deps\libonig-f17d33ab3a208d9d.rlib --extern bitflags=D:\syntect\target\debug\deps\libbitflags-88857433f6b67df9.rlib --extern walkdir=D:\syntect\target\debug\deps\libwalkdir-3a61bc78dc1af61f.rlib --extern bincode=D:\syntect\target\debug\deps\libbincode-8273b7b63a07f1b1.rlib --extern lazy_static=D:\syntect\target\debug\deps\liblazy_static-82c2efae9a7bf732.rlib --extern yaml_rust=D:\syntect\target\debug\deps\libyaml_rust-c25be672d1dac690.rlib --extern regex_syntax=D:\syntect\target\debug\deps\libregex_syntax-21fcdc3a2a66b202.rlib --extern regex=D:\syntect\target\debug\deps\libregex-59ef72234132697a.rlib --extern flate2=D:\syntect\target\debug\deps\libflate2-8c506f1983161f68.rlib --extern fnv=D:\syntect\target\debug\deps\libfnv-1953bcde9b6fff16.rlib --extern rustc_serialize=D:\syntect\target\debug\deps\librustc_serialize-54d2bf33b1d4b0b0.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\Professional\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-61.3.0\oniguruma\src -L native=D:\syntect\target\debug\build\miniz-sys-18005000ddedadf4\out`
    Finished dev [unoptimized + debuginfo] target(s) in 7.41 secs
     Running `target\debug\examples\syncat.exe`
Please pass in a file to highlight

D:\syntect>

Update

I ran again the synstats from cygwin-shell at its folder and it finished its run passing by the files its current folder:

User@User-pc$ ./synstats
################## Files ###################
.\jquery.js
.\syncat-7d55d504dd44feae.exe
.\syncat-7d55d504dd44feae.exp
.\syncat-7d55d504dd44feae.lib
.\syncat-7d55d504dd44feae.pdb
.\syncat.d
.\syncat.exe
.\synstats-e5335d9ae266988d.exe
.\synstats-e5335d9ae266988d.exp
.\synstats-e5335d9ae266988d.lib
.\synstats-e5335d9ae266988d.pdb
.\synstats.d
.\synstats.exe

################## Stats ###################
File count:                                3
Total characters:                     254335

Function count:                          368
Type count (structs, enums, classes):      0

Code lines (traditional SLOC):          6173
Total lines (w/ comments & blanks):     9212
Comment lines (comment but no code):    1491
Blank lines (lines-blank-comment):      1548

Lines with a documentation comment:       90
Total words written in doc comments:     289
Total words written in all comments:    8509
Characters of comment:                 68785
lnicola commented 7 years ago

I'm probably missing something, but I have the same issue on VS 2017:

cargo run --features static-onig --example syncat
[...]
  = note: libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_number_of_names referenced in function _ZN4onig5names29_$LT$impl$u20$onig..Regex$GT$17capture_names_len17heaae7388e80611b3E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_error_code_to_str referenced in function _ZN4onig5Error3new17h9ca64f62b7645244E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_new referenced in function _ZN4onig5Regex25with_options_and_encoding17h683c07008cb5e8aaE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_match referenced in function _ZN4onig5Regex19match_with_encoding17h51075420b6a12a8dE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_search referenced in function _ZN4onig5Regex20search_with_encoding17hcfbc6bc42b8ee135E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_get_encoding referenced in function _ZN4onig5Regex8encoding17h08cf132de5542b0bE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_number_of_captures referenced in function _ZN4onig5Regex12captures_len17h41374c488408d835E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_number_of_capture_histories referenced in function _ZN4onig5Regex21capture_histories_len17h69ea95531fd1c915E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_free referenced in function _ZN53_$LT$onig..Regex$u20$as$u20$core..ops..drop..Drop$GT$4drop17h140cd5314de55555E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_region_copy referenced in function _ZN4onig6region6Region14clone_from_raw17ha314369b3d6659f2E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_region_clear referenced in function _ZN4onig6region6Region5clear17hd4a052a88317fe81E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_region_resize referenced in function _ZN4onig6region6Region7reserve17h64d347b71acf0640E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_get_capture_tree referenced in function _ZN4onig6region6Region4tree17hfa04b72fd53be2dfE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_region_free referenced in function _ZN62_$LT$onig..region..Region$u20$as$u20$core..ops..drop..Drop$GT$4drop17hb6359e63c53e8f56E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxASIS referenced in function _ZN4onig6syntax6Syntax4asis17h53a67a13fd6ce9d8E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxPosixBasic referenced in function _ZN4onig6syntax6Syntax11posix_basic17h5d919363de91503aE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxPosixExtended referenced in function _ZN4onig6syntax6Syntax14posix_extended17h6bde5a80b8569dfaE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxEmacs referenced in function _ZN4onig6syntax6Syntax5emacs17h550c8c483b380f4dE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxGrep referenced in function _ZN4onig6syntax6Syntax4grep17h83d1a28c99cd01aeE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxGnuRegex referenced in function _ZN4onig6syntax6Syntax9gnu_regex17hadee3af39667aed3E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxJava referenced in function _ZN4onig6syntax6Syntax4java17hb994b0cc1a5298bdE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxPerl referenced in function _ZN4onig6syntax6Syntax4perl17h7b698a256a1c9b70E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxPerl_NG referenced in function _ZN4onig6syntax6Syntax7perl_ng17h5034b7bb56ca0b95E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxRuby referenced in function _ZN4onig6syntax6Syntax4ruby17h7db20adf9b636678E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigDefaultSyntax referenced in function _ZN4onig6syntax6Syntax7default17h83d2a011806a5568E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_get_syntax_op referenced in function _ZN4onig6syntax6Syntax9operators17h4b321af6a4bc8538E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_get_syntax_op2 referenced in function _ZN4onig6syntax6Syntax9operators17h4b321af6a4bc8538E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_syntax_op referenced in function _ZN4onig6syntax6Syntax13set_operators17h53110ff09807b20fE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_syntax_op2 referenced in function _ZN4onig6syntax6Syntax13set_operators17h53110ff09807b20fE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_get_syntax_behavior referenced in function _ZN4onig6syntax6Syntax8behavior17h39b128703d0e89d8E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_syntax_behavior referenced in function _ZN4onig6syntax6Syntax12set_behavior17h7f19ff2d3f5ea5feE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_get_syntax_options referenced in function _ZN4onig6syntax6Syntax7options17hb4937d21fa745ec6E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_syntax_options referenced in function _ZN4onig6syntax6Syntax11set_options17h7f405325be591c2dE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_meta_char referenced in function _ZN4onig6syntax6Syntax13set_meta_char17h05746b692f893ceeE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.5.o) : error LNK2019: unresolved external symbol onig_version referenced in function _ZN4onig5utils7version17hf94a93d14e370dd8E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.5.o) : error LNK2019: unresolved external symbol onig_copyright referenced in function _ZN4onig5utils9copyright17hcda9416f32995754E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.5.o) : error LNK2019: unresolved external symbol onig_unicode_define_user_property referenced in function _ZN4onig5utils20define_user_property17h938ecef04dfe20e5E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.6.o) : error LNK2019: unresolved external symbol OnigEncodingUTF8 referenced in function _ZN4onig7buffers12EncodedChars8encoding17he48a86b3b3f6af19E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.6.o) : error LNK2019: unresolved external symbol OnigEncodingASCII referenced in function _ZN4onig7buffers12EncodedBytes5ascii17h699e13fb61f74ac8E
          D:\syntect\target\debug\examples\syncat-d21a35f2d3cd3773.exe : fatal error LNK1120: 39 unresolved externals
evandrocoan commented 7 years ago

I do not know what is this static-onig, but if you run cargo run --example syncat --verbose what it does?

Did you loaded the VS environment?

  1. call "F:\VisualStudio2017\VC\vcvarsall.bat" x86_amd64
  2. cargo clean
  3. cargo run --example syncat --verbose
lnicola commented 7 years ago
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.0.26403.0
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
[snip]
D:\syntect>cargo run --example syncat --verbose
[snip]
     Running `rustc --crate-name syncat examples\syncat.rs --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg "feature=\"assets\"" --cfg "feature=\"bincode\"" --cfg "feature=\"default\"" --cfg "feature=\"dump-create\"" --cfg "feature=\"dump-load\"" --cfg "feature=\"flate2\"" --cfg "feature=\"fnv\"" --cfg "feature=\"html\"" --cfg "feature=\"onig\"" --cfg "feature=\"parsing\"" --cfg "feature=\"regex-syntax\"" --cfg "feature=\"static-onig\"" --cfg "feature=\"yaml-load\"" --cfg "feature=\"yaml-rust\"" -C metadata=d21a35f2d3cd3773 -C extra-filename=-d21a35f2d3cd3773 --out-dir D:\syntect\target\debug\examples -L dependency=D:\syntect\target\debug\deps --extern walkdir=D:\syntect\target\debug\deps\libwalkdir-4aaf84a84df08b77.rlib --extern onig=D:\syntect\target\debug\deps\libonig-7a1330401dde9099.rlib --extern lazy_static=D:\syntect\target\debug\deps\liblazy_static-292a85333d214e65.rlib --extern getopts=D:\syntect\target\debug\deps\libgetopts-4056f45b997001e6.rlib --extern plist=D:\syntect\target\debug\deps\libplist-42a3bee832a5d512.rlib --extern flate2=D:\syntect\target\debug\deps\libflate2-c11fd6c92ac9ab65.rlib --extern bitflags=D:\syntect\target\debug\deps\libbitflags-b070b55a76ce50dc.rlib --extern regex_syntax=D:\syntect\target\debug\deps\libregex_syntax-2d9d7c7128190a0a.rlib --extern fnv=D:\syntect\target\debug\deps\libfnv-73702f2cf98ab533.rlib --extern bincode=D:\syntect\target\debug\deps\libbincode-a122ee7fc31c7edc.rlib --extern regex=D:\syntect\target\debug\deps\libregex-dafa893f3d879da2.rlib --extern serde_json=D:\syntect\target\debug\deps\libserde_json-e23764b625a05e4e.rlib --extern serde_derive=D:\syntect\target\debug\deps\serde_derive-2ec2ccdfa3bd86b6.dll --extern serde=D:\syntect\target\debug\deps\libserde-85bad3f1b921d10f.rlib --extern yaml_rust=D:\syntect\target\debug\deps\libyaml_rust-35002655f00a12d5.rlib --extern rayon=D:\syntect\target\debug\deps\librayon-b3eac0214c54c3aa.rlib --extern syntect=D:\syntect\target\debug\deps\libsyntect-594a962eb01ea4fd.rlib -Zincremental=D:\syntect\target\debug\incremental -L native=D:\syntect\target\debug\build\miniz-sys-04752bbfa9fb5333\out -L native=C:\Users\GrayShade\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-65.0.1\oniguruma\src`
error: linking with `link.exe` failed: exit code: 1120
  |
  = note: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.10.25017\\bin\\HostX64\\x64\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-vec.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-raw_vec.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-btree-node.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.getopts.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-allocator.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.plist-binary-reader.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.bincode-de.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-btree-map.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-ptr.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syncat.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.bincode-ser.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-result.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.plist-xml-reader.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.plist-builder.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-parsing-syntax_set.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-io-buffered.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.plist.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-slice.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.xml-reader-parser.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-io.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.bincode-de-read.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-iter.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.base64.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-fmt.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-heap.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-string.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-nonzero.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-num-dec2flt.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-collections-hash-table.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-highlighting-theme.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.flate2-zlib.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.xml-util.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-highlighting-style.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.flate2-zio.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-dumps.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-slice-hack.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-parsing-scope.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.walkdir.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-highlighting-selector.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-highlighting-theme_set.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-boxed.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-str.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.flate2-bufreader.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.bincode-internal.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-rc.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-num-dec2flt-algorithm.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-vec_deque.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.serde-ser.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.xml-reader-lexer.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-btree-search.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-option.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-panicking.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-arc.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-slice.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-easy.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-cell.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-highlighting-settings.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-num-dec2flt-num.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-fs.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect-parsing-syntax_definition.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-cmp.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-ops-range.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-convert.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-any.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.serde-de-impls.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-num-dec2flt-rawfp.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-io-error.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-path.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-iter-traits.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.xml-reader-error.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.flate2-mem.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.bincode.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.serde-de-value.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.core-num-dec2flt-algorithm-fpu_precision.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-env.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-sync-mutex.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.plist-plist.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.serde-de.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.alloc-borrow.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.std-ffi-os_str.volatile.o" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.syntect.volatile.o" "/OUT:D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.exe" "D:\\syntect\\target\\debug\\examples\\syncat-d21a35f2d3cd3773.crate.allocator.o" "/OPT:REF,NOICF" "/DEBUG" "/NATVIS:C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\liballoc.natvis" "/NATVIS:C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\etc\\libcore.natvis" "/LIBPATH:D:\\syntect\\target\\debug\\deps" "/LIBPATH:D:\\syntect\\target\\debug\\build\\miniz-sys-04752bbfa9fb5333\\out" "/LIBPATH:C:\\Users\\GrayShade\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\onig_sys-65.0.1\\oniguruma\\src" "/LIBPATH:C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib" "D:\\syntect\\target\\debug\\deps\\libsyntect-594a962eb01ea4fd.rlib" "D:\\syntect\\target\\debug\\deps\\libbincode-a122ee7fc31c7edc.rlib" "D:\\syntect\\target\\debug\\deps\\libwalkdir-4aaf84a84df08b77.rlib" "D:\\syntect\\target\\debug\\deps\\libsame_file-f6dad38084ade4f5.rlib" "D:\\syntect\\target\\debug\\deps\\libyaml_rust-35002655f00a12d5.rlib" "D:\\syntect\\target\\debug\\deps\\libplist-42a3bee832a5d512.rlib" "D:\\syntect\\target\\debug\\deps\\libxml-d063e76d94a8dec5.rlib" "D:\\syntect\\target\\debug\\deps\\libchrono-fb9f7db0c5e8eaf0.rlib" "D:\\syntect\\target\\debug\\deps\\libbase64-17a80a13904f1920.rlib" "D:\\syntect\\target\\debug\\deps\\libsafemem-4e909340fc4975ab.rlib" "D:\\syntect\\target\\debug\\deps\\libnum-d48a27b736c874ab.rlib" "D:\\syntect\\target\\debug\\deps\\libnum_iter-68e2e2f86feea814.rlib" "D:\\syntect\\target\\debug\\deps\\libflate2-c11fd6c92ac9ab65.rlib" "D:\\syntect\\target\\debug\\deps\\libminiz_sys-11e2a3f568358313.rlib" "D:\\syntect\\target\\debug\\deps\\libserde_json-e23764b625a05e4e.rlib" "D:\\syntect\\target\\debug\\deps\\libitoa-c4f19573a84953be.rlib" "D:\\syntect\\target\\debug\\deps\\libserde-85bad3f1b921d10f.rlib" "D:\\syntect\\target\\debug\\deps\\libgetopts-4056f45b997001e6.rlib" "D:\\syntect\\target\\debug\\deps\\libonig-7a1330401dde9099.rlib" "D:\\syntect\\target\\debug\\deps\\libonig_sys-23a74a9932bcbae2.rlib" "D:\\syntect\\target\\debug\\deps\\liblazy_static-292a85333d214e65.rlib" "D:\\syntect\\target\\debug\\deps\\libbitflags-a8af987424c17fd2.rlib" "D:\\syntect\\target\\debug\\deps\\liblibc-72070fca1bbc5483.rlib" "D:\\syntect\\target\\debug\\deps\\libregex_syntax-2d9d7c7128190a0a.rlib" "D:\\syntect\\target\\debug\\deps\\libbyteorder-b138cac4adb9ba96.rlib" "D:\\syntect\\target\\debug\\deps\\libtime-e9b49c0e1f6a9ed5.rlib" "D:\\syntect\\target\\debug\\deps\\libkernel32-b7594729ed263018.rlib" "D:\\syntect\\target\\debug\\deps\\libwinapi-9a71e3ebc15f3f63.rlib" "D:\\syntect\\target\\debug\\deps\\libnum_integer-a09b9db23f5c49ad.rlib" "D:\\syntect\\target\\debug\\deps\\libnum_traits-1a0d30bd5ee9f942.rlib" "D:\\syntect\\target\\debug\\deps\\libbitflags-f5596857304b3648.rlib" "D:\\syntect\\target\\debug\\deps\\libbitflags-b070b55a76ce50dc.rlib" "D:\\syntect\\target\\debug\\deps\\libfnv-73702f2cf98ab533.rlib" "D:\\syntect\\target\\debug\\deps\\libdtoa-9e98920906c30d9f.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd-b99ffe8a80440de3.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libpanic_unwind-289a4405d4d9e684.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libunwind-72331c2c1d708e1c.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liblibc-a78d9095b039696e.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc_system-4946f1a213f3b8f4.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\liballoc-74f4353607a0c40b.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libstd_unicode-9b42694b3cac94ea.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\librand-de07414eb1395a4c.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcore-fdfb020c6a97583d.rlib" "C:\\Users\\GrayShade\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\lib\\libcompiler_builtins-d7e662c46c3cb3b3.rlib" "kernel32.lib" "advapi32.lib" "ws2_32.lib" "userenv.lib" "shell32.lib" "msvcrt.lib"
  = note: libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_number_of_names referenced in function _ZN4onig5names29_$LT$impl$u20$onig..Regex$GT$17capture_names_len17heaae7388e80611b3E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_error_code_to_str referenced in function _ZN4onig5Error3new17h9ca64f62b7645244E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_new referenced in function _ZN4onig5Regex25with_options_and_encoding17h683c07008cb5e8aaE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_match referenced in function _ZN4onig5Regex19match_with_encoding17h51075420b6a12a8dE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_search referenced in function _ZN4onig5Regex20search_with_encoding17hcfbc6bc42b8ee135E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_get_encoding referenced in function _ZN4onig5Regex8encoding17h08cf132de5542b0bE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_number_of_captures referenced in function _ZN4onig5Regex12captures_len17h41374c488408d835E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_number_of_capture_histories referenced in function _ZN4onig5Regex21capture_histories_len17h69ea95531fd1c915E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.0.o) : error LNK2019: unresolved external symbol onig_free referenced in function _ZN53_$LT$onig..Regex$u20$as$u20$core..ops..drop..Drop$GT$4drop17h140cd5314de55555E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_region_copy referenced in function _ZN4onig6region6Region14clone_from_raw17ha314369b3d6659f2E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_region_clear referenced in function _ZN4onig6region6Region5clear17hd4a052a88317fe81E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_region_resize referenced in function _ZN4onig6region6Region7reserve17h64d347b71acf0640E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_get_capture_tree referenced in function _ZN4onig6region6Region4tree17hfa04b72fd53be2dfE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.7.o) : error LNK2019: unresolved external symbol onig_region_free referenced in function _ZN62_$LT$onig..region..Region$u20$as$u20$core..ops..drop..Drop$GT$4drop17hb6359e63c53e8f56E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxASIS referenced in function _ZN4onig6syntax6Syntax4asis17h53a67a13fd6ce9d8E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxPosixBasic referenced in function _ZN4onig6syntax6Syntax11posix_basic17h5d919363de91503aE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxPosixExtended referenced in function _ZN4onig6syntax6Syntax14posix_extended17h6bde5a80b8569dfaE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxEmacs referenced in function _ZN4onig6syntax6Syntax5emacs17h550c8c483b380f4dE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxGrep referenced in function _ZN4onig6syntax6Syntax4grep17h83d1a28c99cd01aeE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxGnuRegex referenced in function _ZN4onig6syntax6Syntax9gnu_regex17hadee3af39667aed3E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxJava referenced in function _ZN4onig6syntax6Syntax4java17hb994b0cc1a5298bdE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxPerl referenced in function _ZN4onig6syntax6Syntax4perl17h7b698a256a1c9b70E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxPerl_NG referenced in function _ZN4onig6syntax6Syntax7perl_ng17h5034b7bb56ca0b95E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigSyntaxRuby referenced in function _ZN4onig6syntax6Syntax4ruby17h7db20adf9b636678E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol OnigDefaultSyntax referenced in function _ZN4onig6syntax6Syntax7default17h83d2a011806a5568E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_get_syntax_op referenced in function _ZN4onig6syntax6Syntax9operators17h4b321af6a4bc8538E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_get_syntax_op2 referenced in function _ZN4onig6syntax6Syntax9operators17h4b321af6a4bc8538E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_syntax_op referenced in function _ZN4onig6syntax6Syntax13set_operators17h53110ff09807b20fE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_syntax_op2 referenced in function _ZN4onig6syntax6Syntax13set_operators17h53110ff09807b20fE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_get_syntax_behavior referenced in function _ZN4onig6syntax6Syntax8behavior17h39b128703d0e89d8E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_syntax_behavior referenced in function _ZN4onig6syntax6Syntax12set_behavior17h7f19ff2d3f5ea5feE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_get_syntax_options referenced in function _ZN4onig6syntax6Syntax7options17hb4937d21fa745ec6E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_syntax_options referenced in function _ZN4onig6syntax6Syntax11set_options17h7f405325be591c2dE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.4.o) : error LNK2019: unresolved external symbol onig_set_meta_char referenced in function _ZN4onig6syntax6Syntax13set_meta_char17h05746b692f893ceeE
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.5.o) : error LNK2019: unresolved external symbol onig_version referenced in function _ZN4onig5utils7version17hf94a93d14e370dd8E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.5.o) : error LNK2019: unresolved external symbol onig_copyright referenced in function _ZN4onig5utils9copyright17hcda9416f32995754E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.5.o) : error LNK2019: unresolved external symbol onig_unicode_define_user_property referenced in function _ZN4onig5utils20define_user_property17h938ecef04dfe20e5E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.6.o) : error LNK2019: unresolved external symbol OnigEncodingUTF8 referenced in function _ZN4onig7buffers12EncodedChars8encoding17he48a86b3b3f6af19E
          libonig-7a1330401dde9099.rlib(onig-7a1330401dde9099.6.o) : error LNK2019: unresolved external symbol OnigEncodingASCII referenced in function _ZN4onig7buffers12EncodedBytes5ascii17h699e13fb61f74ac8E
          D:\syntect\target\debug\examples\syncat-d21a35f2d3cd3773.exe : fatal error LNK1120: 39 unresolved externals
evandrocoan commented 7 years ago

You exit code exit code: 1120 is different the one I had failed: exit code: 1107. Try searching what does mean your exit code. Also did you ran cargo clean? Perhaps this is a different issue from the original one on this thread.

lnicola commented 7 years ago

LNK1120 seems to be "unresolved externals", just like the error messages say. I did run cargo clean.