资源简介
Msys: 1.0.10
MinGW:5.1.4
make: 3.81.90
gcc: 4.3.2
w32api: 3.13
SDL: 1.2.1
MinGW-Runtime: 3.15
这是我自己根据一篇比较新的blog搭建的mingw+msys环境,用来编译ffmpeg的,各种版本都可以编译。
基本上解决了常出现的各种问题。移植可用!
文章地址:
http://blog.csdn.net/bihaichentian/archive/2010/08/20/5826859.aspx
MINGW+MSYS环境已经配置完成。
移植到其他电脑上时需要根据情况做修改:
若msys文件夹放在D盘根目录下,找到D:\msys\1.0\etc\fstab,以记事本或写字板打开,
将以下所示部分改为现在实际所在的路径,即D:/msys/1.0/mingw。若在C盘,则无需更改。
#Win32_Path Mount_Point
c:/msys/1.0/mingw /mingw
注意是/,不是\,因为linux下的路径都是用/的。
若电脑上安装了VC++,找到c:\msys\1.0\msys.bat并以记事本或写字板或notepad打开,在第一行添加:
call "C:\Program Files\Microsoft Visual Studio\VC98\Bin\VCVARS32.BAT"
双引号内的路径不固定,以VC安装的路径为准。
msys使用技巧:
复制:选中一段文字,就将这段文字复制到剪贴板。
粘贴:shift+鼠标左键,就将剪贴板的内容粘贴到命令行了。
代码片段和文件信息
/* Copyright (C) 1989 2000 Aladdin Enterprises. All rights reserved. */
/*$Id: ansi2knr.cv 1.3 2000/04/13 03:41:48 lpd Exp $*/
/* Convert ANSI C function definitions to K&R (“traditional C“) syntax */
/*
ansi2knr is distributed in the hope that it will be useful but WITHOUT ANY
WARRANTY. No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it serves any particular purpose or
works at all unless he says so in writing. Refer to the GNU General Public
License (the “GPL“) for full details.
Everyone is granted permission to copy modify and redistribute ansi2knr
but only under the conditions described in the GPL. A copy of this license
is supposed to have been given to you along with ansi2knr so you can know
your rights and responsibilities. It should be in a file named COPYLEFT
or if there is no file named COPYLEFT a file named COPYING. Among other
things the copyright notice and this notice must be preserved on all
copies.
We explicitly state here what we believe is already implied by the GPL: if
the ansi2knr program is distributed as a separate set of sources and a
separate executable file which are aggregated on a storage medium together
with another program this in itself does not bring the other program under
the GPL nor does the mere fact that such a program or the procedures for
constructing it invoke the ansi2knr executable bring any other part of the
program under the GPL.
*/
/*
* Usage:
ansi2knr [--filename FILENAME] [INPUT_FILE [OUTPUT_FILE]]
* --filename provides the file name for the #line directive in the output
* overriding input_file (if present).
* If no input_file is supplied input is read from stdin.
* If no output_file is supplied output goes to stdout.
* There are no error messages.
*
* ansi2knr recognizes function definitions by seeing a non-keyword
* identifier at the left margin followed by a left parenthesis with a
* right parenthesis as the last character on the line and with a left
* brace as the first token on the following line (ignoring possible
* intervening comments and/or preprocessor directives) except that a line
* consisting of only
* identifier1(identifier2)
* will not be considered a function definition unless identifier2 is
* the word “void“ and a line consisting of
* identifier1(identifier2 <>)
* will not be considered a function definition.
* ansi2knr will recognize a multi-line header provided that no intervening
* line ends with a left or right brace or a semicolon. These algorithms
* ignore whitespace comments and preprocessor directives except that
* the function name must be the first thing on the line. The following
* constructs will confuse it:
* - Any other construct that starts at the left margin and
* follows the above syntax (such as a macro or function call).
* - Some macros that tinker with the syntax of function headers.
*/
/*
* The original and principal author of
相关资源
- MinGW最新离线安装包2013-7-16最新
- PC-Lint 9.0L破解修正版
- xlsx读写库xlsxio的编译及简单策划配置
- 编译好的c++机器学习库shark4.0
- g++ for win
- mingw-w64-v7.0.0 (1).zip
- Matlab安装MinGW-w64 C/C++ 编译器
- Dev-Cpp+5.4.2+MinGW+4.7.2
- 编译原理课程设计整个项目和报告
- mplabc18编译器(c编译器工具)v3.0免费
- 编译原理LL1语法分析器C++版源代码
- PL/0语言编译器源代码及测试代码
- 编译原理之算符优先算法-迭代法
- codeblocks-16.01mingw-setup.exe
- 编译原理词法分析器实验报告含源代
- VS2010编译器 vc_stdx86.part2.rar
- PCL与MFC配合编译
- 编译原理词法分析器C++版源代码
- IAR环境 官方详细说明 编译器 连接器
- Dev-Cpp 5.4.0
- cfree5.0(内含注册码,绝非破解)
- VTK8.1VS2017编译好的VTK库c++
- win10+vs2019+bazel+编译tensorflow2.1.1-CPU版(
- 吃豆人C++vs2017编译的吃豆人
- Microsoft Visual C++ Build Tools
- rabbitmq的C++客户端SimpleAmqpClient编译库
- 现代编译原理-c语言描述虎书
- 编译好的GDAL库,含GEOS和PROJ,以及C
- 合工大编译原理实验报告
- 简单易用QR二维码生成源码 VC++2015 编
评论
共有 条评论