我之前一直用vs作为c/c++的学习环境,现在由于vs已经删除,就想用mingw+sublime进行学习我按照网上的教程,安装了mingw和TheGNUCompilesuite,并对sublime进行了buildsystem的配置,配置如下,这一段我是复制了网上的配置文件的{"cmd":["g++","${file}","-o","${file_path}/${file_base_name}"],"file_regex":"^(..[^:]*):([0-9]+):?([0-9]+)?:?(.*)$","working_dir":"${file_path}","selector":"source.c,source.c++","encoding":"cp936","shell":true,"variants":[{"name":"Run",//"cmd":["CMD","/U","/C","g++${file}-o${file_base_name}&&${file_base_name}"]"cmd":["start","${file_path}/${file_base_name}.exe"]}]}以下是我的测试代码#include usingnamespacestd;intmain(intargc,charconst*argv[]){cout<<"asd"<inta=0; cin>>a;return0;}该文件可以在sublime里正常编译,生成的exe程序也能正确运行,但当我使用sublime中的运行功能时,出现了下面的错误信息[CompileD:\GitHub\python_study\s.cpp]E:D:/GitHub/python_study/s.cpp:1Youcan'tuse`macroparametercharacter#'inverticalmode#E:D:/GitHub/python_study/s.cpp:1Missing\begin{document}.#iE:D:\GitHub\python_study\s.cpp:0Emergencystop3errors,0warnings,0badboxes[Finishedin0.06s]请问这是什么意思?
回首忆惘然
相关分类