随笔 - 70, 文章 - 0, 评论 - 9, 引用 - 0
数据加载中……

编译

[转载]编译原理之词法分析、语法分析
     摘要: 词法分析(Lexical analysis或Scanning)和词法分析程序(Lexical analyzer或Scanner)
  词法分析阶段是编译过程的第一个阶段。这个阶段的任务是从左到右一个字符一个字符地读入源程序,即对构成源程序的字符流进行扫描然后根据构词规则识别单词(也称单词符号或符号)。词法分析程序实现这个任务。词法分析程序可以使用lex等工具自动生成。  阅读全文

posted @ 2013-04-01 19:25 seahouse 阅读(799) | 评论 (0)  编辑

cygwin
     摘要: 主页:http://www.cygwin.com/
  阅读全文

posted @ 2011-02-10 08:55 seahouse 阅读(354) | 评论 (0)  编辑

MSYS下automake使用,以及configure.in和Makefile.am的修改
     摘要: automake使用:

1)运行autoscan命令,产生configure.scan文件;
2)将configure.scan 文件重命名为configure.in,并修改configure.in文件;
3)运行aclocal命令,产生aclocal.m4文件;
4)运行autoconf命令,产生configure文件;
5)新建Makefile.am文件,新建NEWS、 README、 ChangeLog 、AUTHORS文件;
6)修改Makefile.am,并运行automake -a命令;(也可automake –add-missing)
7)运行./confiugre脚本。
8)至此,Makefile已生产,然后执行make编译即可。  阅读全文

posted @ 2011-01-18 10:20 seahouse 阅读(4434) | 评论 (0)  编辑

MSYS下的automake搭建与使用
     摘要: MSYS模仿了Linux下的编译环境,但与Windows上IDE比起来,不足的是需要自己写Makefile。因此也可以搭建类似Linux的automake环境来生成Makefile。  阅读全文

posted @ 2011-01-18 10:17 seahouse 阅读(6399) | 评论 (0)  编辑

MSYS编译环境搭建
     摘要: MSYS简介

MSYS是一个小型的GNU环境,是一个通过将Linux源代码在Win32上编译而成的UNIX工作环境;

MSYS类似于Cygwin,但是由于工作原理的不同,速度更快、体积更小、功能强大、便于携带;

使用MSYS可以取代商业的VC环境,同样开发出商业版权的程序而不受任何版权限制;
  阅读全文

posted @ 2011-01-14 09:24 seahouse 阅读(5591) | 评论 (0)  编辑

VSVC编译选项/MDd与/MTd
     摘要: 由Runtime Libary中的/MDd选项产生的编译错误  阅读全文

posted @ 2011-01-13 09:26 seahouse 阅读(4506) | 评论 (0)  编辑

msvc的dill在mingw下的使用
     摘要: They have exported C++ classes from their dll, rather than C-functions. The difference is, c++ functions are always exported with names in a mangled form that is specific to a particular version of the compiler.
Their dll is usable by msvc only in that form, and will probably not even work between different versions of msvc, as Microsoft have changed their mangling scheme before.
If you have any leverage, you need to get them to change their evil ways. Otherwise you will need to use MSVC  阅读全文

posted @ 2011-01-04 16:58 seahouse 阅读(2184) | 评论 (0)  编辑

_unwind_sjlj_resume __gxx_personality_sj0编译错误解决
     摘要: 在Dev C++里编译好QuantLib后,通过Qt自带的MinGW编译环境编译自己的程序,链接了QuantLib库,此时产生了一些_unwind_sjlj_resume __gxx_personality_sj0的编译错误。
经查,是由于编译器的版本不同造成的。  阅读全文

posted @ 2010-12-24 18:45 seahouse 阅读(1649) | 评论 (0)  编辑

QuantLib的mingw编译方法
     摘要: QuantLib,强大的金融量化分析工具。
boost,C++超级标准库。
MinGW,用自由软件来生成纯粹的Win32可执行文件的编译环境。  阅读全文

posted @ 2010-12-22 09:58 seahouse 阅读(1482) | 评论 (0)  编辑