lynnux / xpsupport

make rust support XP and vista
31 stars 1 forks source link

试了下,运行不了 #1

Open xicheng opened 7 years ago

xicheng commented 7 years ago

开发电脑是win7 x64

编译成功,放xp上面就不是有效的win32.

然后试了下, cargo build --target i686-pc-windows-msvc 编译不过。

lynnux commented 4 years ago

@xicheng 试试0.2版本,另外vs编译命令是cargo rustc -- -C link-args="/subsystem:console,5.01" 吗?

longyn commented 4 years ago

Windows 10 64 位, 32, 64toolchain 都有

cargo rustc --release -- -C link-args="/subsystem:console,5.01" --target i686-pc-windows-msvc
   Compiling format_print v0.1.0 (D:\project\rust\21_format_print)
error[E0461]: couldn't find crate `xpsupport` with expected target triple i686-pc-windows-msvc
 --> src\main.rs:1:1
  |
1 | extern crate xpsupport;
  | ^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: the following crate versions were found:
          crate `xpsupport`, target triple x86_64-pc-windows-msvc: \\?\D:\project\rust\21_format_print\target\release\deps\libxpsupport-34b04cbc09296eef.rlib

error: aborting due to previous error

error: could not compile `format_print`.

To learn more, run the command again with --verbose.
longyn commented 4 years ago

成功了,需要把default toolchain改成32位, 然后运行编译命令, 指定target貌似不行