资源简介

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

评论

共有 条评论