我正在尝试运行一个 C++ 项目,但我收到此“无效的主机字符串:localhost”错误。
这是我的 /ect/hosts 文件:
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
即使,我仍然收到错误。提前致谢。