Open Boscop opened 6 years ago
D:\3rdparty\rust-nostd [master ≡]> cargo build --release --target=i686-pc-windows-msvc ←[m←[m←[32m←[1m Compiling←[m rlibc v1.0.0 ←[m←[m←[32m←[1m Compiling←[m memory_units v0.4.0 ←[m←[m←[32m←[1m Compiling←[m winapi v0.3.4 ←[m←[m←[32m←[1m Compiling←[m wee_alloc v0.2.0 ←[m←[m←[32m←[1m Compiling←[m nostd v0.1.0 (file:///D:/3rdparty/rust-nostd) error: linking with `D:\Program Files\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\link.exe` failed: exit code: 1561 | = note: "D:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64_x86\\link.exe" "/NOLOGO" "/NXCOMPAT" "/LARGEA DDRESSAWARE" "/SAFESEH" "/LIBPATH:D:\\Program Files\\.multirust\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustli b\\i686-pc-windows-msvc\\lib" "D:\\3rdparty\\rust-nostd\\target\\i686-pc-windows-msvc\\release\\deps\\nostd-b7389f13b4f1 87b5.nostd0.rcgu.o" "/OUT:D:\\3rdparty\\rust-nostd\\target\\i686-pc-windows-msvc\\release\\deps\\nostd-b7389f13b4f187b5. exe" "/OPT:REF,ICF" "/DEBUG" "/NATVIS:D:\\Program Files\\.multirust\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\ru stlib\\etc\\intrinsic.natvis" "/NATVIS:D:\\Program Files\\.multirust\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\r ustlib\\etc\\liballoc.natvis" "/NATVIS:D:\\Program Files\\.multirust\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\r ustlib\\etc\\libcore.natvis" "/LIBPATH:D:\\3rdparty\\rust-nostd\\target\\i686-pc-windows-msvc\\release\\deps" "/LIBPATH: D:\\3rdparty\\rust-nostd\\target\\release\\deps" "/LIBPATH:D:\\Program Files\\.multirust\\toolchains\\nightly-x86_64-pc- windows-msvc\\lib\\rustlib\\i686-pc-windows-msvc\\lib" "D:\\3rdparty\\rust-nostd\\target\\i686-pc-windows-msvc\\release\ \deps\\librlibc-11e0d241aa201add.rlib" "advapi32.lib" "synchronization.lib" "kernel32.lib" "setupapi.lib" "user32.lib" = note: LINK : fatal error LNK1561: entry point must be defined error: aborting due to previous error ←[m←[m←[31m←[1merror:←[m Could not compile `nostd`. To learn more, run the command again with --verbose.
Did someone manage to make #![no_std] work with a Win32 target ?
#![no_std]