mingw_path = 「mingw的主目錄」
c_include_path = "%mingw_path%//include;%mingw_path%//lib//gcc//mingw32//3.4.5//include ";
cplus_include_path = "%mingw_path%//include//c++//3.4.5;%mingw_path%//include//c++//3.4.5//mingw32;%mingw_path%
//include//c++//3.4.5//backward;%c_include_path% ";
library_path = "%mingw_path%//lib;%mingw_path%//lib//gcc//mingw32//3.4.5";
path = "%mingw_path%//bin;%mingw_path%//libexec//gcc//mingw32//3.4.5;";
function
getcurrpath ()
//取得當前路徑
mingw_path
=getcurrpath ();
c_include_path
="%mingw_path%//include;%mingw_path%//lib//gcc//mingw32//3.4.5//include " ;
cplus_include_path
="%mingw_path%//include//c++//3.4.5;%mingw_path%//include//c++//3.4.5//mingw32;%mingw_path%//include/
/c++//3.4.5//backward;%c_include_path% " ;
library_path
="%mingw_path%//lib;%mingw_path%//lib//gcc//mingw32//3.4.5" ;
path
="%mingw_path%//bin;%mingw_path%//libexec//gcc//mingw32//3.4.5;" ;
varwshshell
=wscript
.createobject ("wscript.shell" );
varwshsysenv
=wshshell
.environment ("system" );
wshsysenv ("mingw_path" ) =
mingw_path ;
wshsysenv ("c_include_path" ) =
c_include_path ;
wshsysenv ("cplus_include_path" ) =
cplus_include_path ;
wshsysenv ("library_path" ) =
library_path ;
path
=path
+wshsysenv ("path" );
wshsysenv ("path" ) =
path ;
wscript
.echo ("mingw環境變數設定完成!" );
lua│
├─bin
│ bin2c.exe
│ lua.exe
│ lua5.1.dll
│ lua51.dll
│ luac.exe
│ wlua.exe
│├─include
│ lauxlib.h
│ lua.h
│ lua.hpp
│ luaconf.h
│ lualib.h
│└─lib
lua5.1.lib
lua51.lib
function
getcurrpath ()
//取得當前路徑
lua_home
=getcurrpath ();
lua_bin
="%lua_home%//bin;" ;
lua_include
="%lua_home%//include;" ;
lua_lib
="%lua_home%//lib;" ;
varwshshell
=wscript
.createobject ("wscript.shell" );
varwshsysenv
=wshshell
.environment ("system" );
wshsysenv ("lua_home" ) =
lua_home ;
//bin加入path
wshsysenv ("path" ) =
lua_bin
+wshsysenv ("path" );
//include加入mingw
wshsysenv ("c_include_path" ) =
lua_include
+wshsysenv ("c_include_path" );
//lib加入mingw
wshsysenv ("library_path" ) =
lua_lib
+wshsysenv ("library_path" );
wscript
.echo ("lua環境變數設定完成!" );
#include
#include
using
namespace
std ;
intmain ()
print ("
hello world!" )
all:
main.exe
#all:rebuild
main.exe
main.exe
:main.o
g++ -o
$@$^
-llua5.1
main.o
:main.cpp
g++ -c main.cpp
clear
:-del *.exe *.o
rebuild
:clear main.exe
g++ -c main.cpp
g++ -o main.exe main.o -llua5.1
main.exe
hello world!
請按任意鍵繼續. . .
emacs配置小結
這次的基本配置主要包括 setq default c basic offset 8 tab width 8 indent tabs mode t 調整color theme,在將color theme要求的安裝包放到.emacs.d的customer的資料夾中,並將 emacs.d customer...
nginx 配置小結
worker processes 定義了 nginx 對外提供 web 服務時的 worder 程序數。最優值取決於許多因素,包括 但不限於 cpu核的數量 儲存資料的硬碟數量及負載模式。不能確定的時候,將其設定為可用的 cpu 核心數將是乙個好的開始 設定為 auto 將嘗試自動檢測它 worke...
環境配置 mac linux配置環境變數
這裡說的是新增使用者級環境變數。sudo vi bash profile 2 然後通過vim編輯器 當然也可以用其他編輯器如nano 新增或修改環境變數。關於vim操作的常見指令可以參考這裡。編輯完畢後在vim裡輸入 wq退出 3 最後再執行 source bash profile立即生效。4 通過...