Giter Club home page Giter Club logo

Comments (4)

lifthrasiir avatar lifthrasiir commented on June 23, 2024

That sounds like a linkage error and not a fault of Encoding. Did you use Cargo with an ordinary dependency or a direct command line to rustc? (AFAIK Cargo does not have MSVC support at the moment, but it might have been changed.)

from rust-encoding.

sbant avatar sbant commented on June 23, 2024

sorry, I found may be some problem in RustDT.

In command line,with "cargo build", both gnu and msvc cargo can build the project without problem.

But in RustDT, looks like it will mix the gnu's and msvc's rlib, so there are so many linkage errors.

from rust-encoding.

therustmonk avatar therustmonk commented on June 23, 2024

I have the same problem. Build success, but lib fails on tests (or when I use items from lib in code): https://gist.github.com/DenisKolodin/f45760e6d1883fda0652
I've gist cargo test log with verbose flag.

Cargo calls MS linker.
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe" "/NOLOGO" "/NXCOMPAT" "/LIBPATH:C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib" "C:\DEVELOPMENT\rustio\rust-encoding\target\debug\examples\recode.0.o" "/OUT:C:\DEVELOPMENT\rustio\rust-encoding\target\debug\examples\recode.exe" "/OPT:REF,ICF" "/DEBUG" "C:\DEVELOPMENT\rustio\rust-encoding\target\debug\libencoding.rlib" "C:\DEVELOPMENT\rustio\rust-encoding\target\debug\deps\libencoding_index_singlebyte-d3520d24c050d74f.rlib" "C:\DEVELOPMENT\rustio\rust-encoding\target\debug\deps\libencoding_index_korean-6a481ab62fa85cae.rlib" "C:\DEVELOPMENT\rustio\rust-encoding\target\debug\deps\libencoding_types-fe8521ccc808562d.rlib" "C:\DEVELOPMENT\rustio\rust-encoding\target\debug\deps\libencoding_index_simpchinese-bbf6de1c29d64619.rlib" "C:\DEVELOPMENT\rustio\rust-encoding\target\debug\deps\libencoding_index_tradchinese-50f5d4943fa2e14a.rlib" "C:\DEVELOPMENT\rustio\rust-encoding\target\debug\deps\libencoding_index_japanese-504681e476128dbc.rlib" "C:\DEVELOPMENT\rustio\rust-encoding\target\debug\deps\libgetopts-bd82d57ca5684ae5.rlib" "C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib\libstd-10cbabc2.rlib" "C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib\libcollections-10cbabc2.rlib" "C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib\librustc_unicode-10cbabc2.rlib" "C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib\librand-10cbabc2.rlib" "C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib\liballoc-10cbabc2.rlib" "C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib\liballoc_system-10cbabc2.rlib" "C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib\liblibc-10cbabc2.rlib" "C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib\libcore-10cbabc2.rlib" "/LIBPATH:C:\DEVELOPMENT\rustio\rust-encoding\target\debug" "/LIBPATH:C:\DEVELOPMENT\rustio\rust-encoding\target\debug\deps" "/LIBPATH:C:\Rust\rust-nightly-i686-pc-windows-msvc\bin\rustlib\i686-pc-windows-msvc\lib" "/LIBPATH:C:\DEVELOPMENT\rustio\rust-encoding.rust\bin\i686-pc-windows-msvc" "/LIBPATH:C:\DEVELOPMENT\rustio\rust-encoding\bin\i686-pc-windows-msvc" "ws2_32.lib" "userenv.lib" "advapi32.lib" "kernel32.lib" "shell32.lib" "msvcrt.lib" "compiler-rt.lib"

Other crates compiles with MSVC version without similar errors.
With gnu version that tests was passed. Any ideas how can I help to fix it?

from rust-encoding.

DoumanAsh avatar DoumanAsh commented on June 23, 2024

JFYI: been playing with this crate, don't see any problem to compile it om msvc compiler

from rust-encoding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.