SciTE 与 MinGW的安装方法
如何让这两个软件兼容安装?我已经下载了。但是不懂怎么让这两个配合,请高人指教。完成后再追加50分...
如何让这两个软件兼容安装?
我已经下载了。 但是不懂怎么让这两个配合, 请高人指教。
完成后再追加 50分 展开
我已经下载了。 但是不懂怎么让这两个配合, 请高人指教。
完成后再追加 50分 展开
3个回答
展开全部
MinGW的安装方法:官方提供的MinGW的one click installer实在是太古老了,明显不符合gcc4.2/3代表先进生产力的主流。下面介绍一下从www.mingw.org里直接下载MinGW/gcc/g++的binary文件,组装成比较新版本的MinGW的方法。顺便提一下,www.sf.net现在大陆被封了,sf的mirror我这里最快的是ftp://ftp.jaist.ac.jp/sourceforge,目录里有全套的MinGW的产品。
Step 1:
下载如下组件,直接把下面的各链接目标加进迅雷~~
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gcc-core-4.2.1-sjlj-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gdb-6.8-mingw-3.tar.bz2
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/libgcc_sjlj_1.dll.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/mingw32-make-3.81-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/mingw-runtime-3.14.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/w32api-3.11.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gcc-gfortran-4.2.1-sjlj-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gcc-g++-4.2.1-sjlj-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/binutils-2.18.50-20080109-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gcc-core-4.2.1-sjlj-2.tar.gz
Step 2:
将上述组件全选,然后用winrar解压到一个文件夹里,比如C:/MinGW,如果有重复的文件,不妨全部替换之。
Step 3:
在系统路径里加入如下内容:
set PATH = C:\MinGW\i686-pc-mingw32\bin;C:\MinGW\libexec\gcc\mingw32\4.2.1-sjlj;C:\Min
GW\bin;%PATH%
Step 4:
新建如下环境变量:
a: CPATH
C:\MinGW\include;C:\MinGW\lib\gcc\mingw32\4.2.1-sjlj\include;
b: LIBRARY_PATH
C:\MinGW\lib\gcc\mingw32\4.2.1-sjlj;C:\MinGW\lib;C:\MinGW\i686-pc-mingw32\lib;
Step 5:
Reboot the machine, Done!!!
至此,一套能够工作的MinGW/gcc/g++已经构建完毕,至少在我的机器上可以输出c/c++版的"hello, world!"了~~~~
Enjoy!!!
scite:
添加了嵌套输入的功能。本人水平有限,欢迎大家测试!有问题留言
安装方法:请看snippets v1.2中的介绍。
演示:
源代码:
local i = 0
local Index = 0
local findsp,findep,temp,snend
local sntable = {}
local sp = {}
sntable[0] = 1
function snippets()
if i == 10 then
i = 0
end
sp[0] = editor.CurrentPos
if Index == 0 and editor:GetSelText()=="" and sntable[i+1] == nil and snend == nil and i < 10 then
scite.MenuCommand(IDM_ABBREV)
end
if editor.CurrentPos ~= sp[0] then
i = i + 1
sntable[i] = Index
sp[i] = editor.CurrentPos
Index = 0
snend = nil
end
IndexText = "\$"..Index.."{"
findsp,findep = editor:findtext(IndexText, SCFIND_REGEXP,sp[i])
while findep == nil and Index < 10 do
Index = Index + 1
findsp,findep = editor:findtext("\$"..Index.."{", SCFIND_REGEXP,sp[i])
end
if findep~=nil then
repeat
editor:GotoPos(findep)
scite.MenuCommand(IDM_SELECTTOBRACE)
temp = editor:GetSelText()
editor:GotoPos(findep-1)
scite.MenuCommand(IDM_MATCHBRACE)
if editor.CurrentPos == 0 then
editor:GotoPos(findsp)
editor:ReplaceSel("}")
findep = findep + 1
else
break
end
until editor.CurrentPos == 0
editor:SetSel(editor.CurrentPos, findsp)
if temp == "" then
Index = 0
end
editor:ReplaceSel(temp)
findsp,findep = editor:findtext(temp, SCFIND_REGEXP,findsp)
if findep~=findsp then
editor:SetSel(findsp, findep)
end
findep = nil
else
Index = 0
findsp,findep = editor:findtext("\$0", SCFIND_REGEXP,sp[i])
if findep~=findsp then
editor:SetSel(findep, findsp)
editor:Clear()
findep = nil
Index = sntable[i]
sntable[i] = nil
i = i - 1
if i ~= 0 then
end
else
editor:Tab()
findep = nil
end
end
end
提示:制作abbreviations的时候,{ 括号里的内容为空的时候才可以嵌套输入
Step 1:
下载如下组件,直接把下面的各链接目标加进迅雷~~
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gcc-core-4.2.1-sjlj-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gdb-6.8-mingw-3.tar.bz2
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/libgcc_sjlj_1.dll.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/mingw32-make-3.81-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/mingw-runtime-3.14.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/w32api-3.11.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gcc-gfortran-4.2.1-sjlj-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gcc-g++-4.2.1-sjlj-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/binutils-2.18.50-20080109-2.tar.gz
ftp://ftp.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw/gcc-core-4.2.1-sjlj-2.tar.gz
Step 2:
将上述组件全选,然后用winrar解压到一个文件夹里,比如C:/MinGW,如果有重复的文件,不妨全部替换之。
Step 3:
在系统路径里加入如下内容:
set PATH = C:\MinGW\i686-pc-mingw32\bin;C:\MinGW\libexec\gcc\mingw32\4.2.1-sjlj;C:\Min
GW\bin;%PATH%
Step 4:
新建如下环境变量:
a: CPATH
C:\MinGW\include;C:\MinGW\lib\gcc\mingw32\4.2.1-sjlj\include;
b: LIBRARY_PATH
C:\MinGW\lib\gcc\mingw32\4.2.1-sjlj;C:\MinGW\lib;C:\MinGW\i686-pc-mingw32\lib;
Step 5:
Reboot the machine, Done!!!
至此,一套能够工作的MinGW/gcc/g++已经构建完毕,至少在我的机器上可以输出c/c++版的"hello, world!"了~~~~
Enjoy!!!
scite:
添加了嵌套输入的功能。本人水平有限,欢迎大家测试!有问题留言
安装方法:请看snippets v1.2中的介绍。
演示:
源代码:
local i = 0
local Index = 0
local findsp,findep,temp,snend
local sntable = {}
local sp = {}
sntable[0] = 1
function snippets()
if i == 10 then
i = 0
end
sp[0] = editor.CurrentPos
if Index == 0 and editor:GetSelText()=="" and sntable[i+1] == nil and snend == nil and i < 10 then
scite.MenuCommand(IDM_ABBREV)
end
if editor.CurrentPos ~= sp[0] then
i = i + 1
sntable[i] = Index
sp[i] = editor.CurrentPos
Index = 0
snend = nil
end
IndexText = "\$"..Index.."{"
findsp,findep = editor:findtext(IndexText, SCFIND_REGEXP,sp[i])
while findep == nil and Index < 10 do
Index = Index + 1
findsp,findep = editor:findtext("\$"..Index.."{", SCFIND_REGEXP,sp[i])
end
if findep~=nil then
repeat
editor:GotoPos(findep)
scite.MenuCommand(IDM_SELECTTOBRACE)
temp = editor:GetSelText()
editor:GotoPos(findep-1)
scite.MenuCommand(IDM_MATCHBRACE)
if editor.CurrentPos == 0 then
editor:GotoPos(findsp)
editor:ReplaceSel("}")
findep = findep + 1
else
break
end
until editor.CurrentPos == 0
editor:SetSel(editor.CurrentPos, findsp)
if temp == "" then
Index = 0
end
editor:ReplaceSel(temp)
findsp,findep = editor:findtext(temp, SCFIND_REGEXP,findsp)
if findep~=findsp then
editor:SetSel(findsp, findep)
end
findep = nil
else
Index = 0
findsp,findep = editor:findtext("\$0", SCFIND_REGEXP,sp[i])
if findep~=findsp then
editor:SetSel(findep, findsp)
editor:Clear()
findep = nil
Index = sntable[i]
sntable[i] = nil
i = i - 1
if i ~= 0 then
end
else
editor:Tab()
findep = nil
end
end
end
提示:制作abbreviations的时候,{ 括号里的内容为空的时候才可以嵌套输入
展开全部
Scite + Gcc 标准C++编译环境配置记录
安装 MinGW Developer Studio
原因:MinGW Developer Studio自带了gcc和g++和c++的编译环境.
设置环境变量
#安装gcc和g++的目录
path = D:Program FilesMinGW StudioMinGWbin
cpp.properties
# command.go.$(file.patterns.cplusplus)=./$(FileName)
command.go.$(file.patterns.cplusplus)=$(FileName)
#test code
#include
using namespace std;
int main()
{
cout << "Welcome yoshow's blog" << endl;
printf("2007-05-13n");
}
1.保存为hello.cpp
2.Ctrl+F7 编译
3.F5 运行
SciTEGlobal.properties
#line Number
line.margin.visible=1
#default window size
position.width=576
position.height=740
#current row highlight
caret.fore=#FF0000
caret.width=2
caret.line.back=#FF9900
caret.line.back.alpha=63
安装 MinGW Developer Studio
原因:MinGW Developer Studio自带了gcc和g++和c++的编译环境.
设置环境变量
#安装gcc和g++的目录
path = D:Program FilesMinGW StudioMinGWbin
cpp.properties
# command.go.$(file.patterns.cplusplus)=./$(FileName)
command.go.$(file.patterns.cplusplus)=$(FileName)
#test code
#include
using namespace std;
int main()
{
cout << "Welcome yoshow's blog" << endl;
printf("2007-05-13n");
}
1.保存为hello.cpp
2.Ctrl+F7 编译
3.F5 运行
SciTEGlobal.properties
#line Number
line.margin.visible=1
#default window size
position.width=576
position.height=740
#current row highlight
caret.fore=#FF0000
caret.width=2
caret.line.back=#FF9900
caret.line.back.alpha=63
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
MinGW Developer Studio自带了gcc和g++和c++的编译环境.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询