Comments (4)
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.
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.
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.
JFYI: been playing with this crate, don't see any problem to compile it om msvc compiler
from rust-encoding.
Related Issues (20)
- `encoding::Encoding` cannot be shared between threads safely HOT 1
- warning: private trait in public interface (error E0445) HOT 1
- `all::encodings()` returns an errornous list (and should be sorted alphabetically). HOT 4
- Charset request: ArmSCII-8 HOT 4
- How to Reset a RawDecoder HOT 1
- Implement common traits for Encoding HOT 1
- include LICENSE text to subcrates HOT 3
- C1 are part of ISO-8859-1 (as far as the IANA is concerned)
- Use Cow?
- cp437 HOT 1
- Add Support For CP850
- Warnings emited when building
- Performance: Consider replacing lookup tables with match statements or binary search in single byte index
- request for no_std support
- Abandoned? HOT 2
- to GBK and to UTF8 is not right work
- Community activeness
- Use FM-index & json for DBCS decoding. HOT 3
- Need the performance data for rust-encoding. HOT 1
- Issue with multi-codepoint graphemes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-encoding.