小编Man*_*rot的帖子

尝试(并且失败)在Windows 10上的64位Ubuntu上运行Hello World 32位C++程序

我通过以下方式从头开始在Windows 10上配置我的新Ubuntu:

# apt-get update
# apt-get install build-essential
# # Am able to compile now using "g++ -Wall -o Hello-World Hello-World.cpp", the binary is working.

# # To check versions, and that both packages were indeed installed
# gcc -v
    # make -v

# apt-get install g++-multilib
# # This also installs gcc-multilib as a dependency
# # Now able to compile using "g++ -m32 -Wall -o Hello-World Hello-World.cpp
# # However the binary Hello-World can't be run. Error …
Run Code Online (Sandbox Code Playgroud)

c++ ubuntu 32bit-64bit windows-subsystem-for-linux

5
推荐指数
1
解决办法
1011
查看次数