分类目录
文章索引模板
0223 uniwin eclipse cdt gcc cygwin 3 ftp - 六月 14, 2006 by yippee

0223 uniwin eclipse cdt gcc cygwin 3 ftp

0223 uniwin eclipse cdt gcc cygwin 1
http://www.yippeesoft.com/blog/p/0223uniwineclipsecdtgcccygwin1.php

0223 uniwin eclipse cdt gcc cygwin 2
http://www.yippeesoft.com/blog/p/0223uniwineclipsecdtgcccygwin2.php

终于发现问题所在:
我在LINUX下面直接运行也是如此:
[sf@mobile Debug]$ g++ -O0 -g3 -Wall -c -fmessage-length=0 -otttt.o ../tttt.cpp
[sf@mobile Debug]$ g++ -otttt.exe ./tttt.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0×18): In function `_start\’:
../sysdeps/i386/elf/start.S:77: undefined reference to `main\’
collect2: ld returned 1 exit status

仔细一看:
总用量 4
drwxr-xr-x    2 sf       root         4096  2月 23 12:40 Debug
-rw-r–r–    1 sf       root            0  2月 23 09:21 t.c
-rw-r–r–    1 sf       root            0  2月 23 12:22 tttt.cpp

文件居然都是空的?!
所以虽然编译出来
总用量 4
-rw-r–r–    1 sf       root         1992  2月 23 12:40 tttt.o

但是没有办法连接了

但是看看UNIWIN的LOG,应该没有什么问题啊
local: O:/java/eclipse/works/tttt/tttt.cpp

        ==>  remote: /home/sf/tttt/tttt.cpp
local: O:/java/eclipse/works/tttt/tttt.cpp

        ==>  remote: /home/sf/tttt/tttt.cpp

没有报告什么
=> no operation taken.
之类的,真是非常奇怪~~~~~

然后在LINUX下面VI复制代码。直接编译出来A.OUT,运行OK,再用ECLIPSE编译
Building file: ../tttt.cpp
Invoking: GCC C++ Compiler
O:/java/eclipse/Uniwin/bin/g++ -O0 -g3 -Wall -c -fmessage-length=0 -otttt.o ../tttt.cpp

Finished building: ../tttt.cpp
 
Building target: tttt.exe
Invoking: GCC C++ Linker
O:/java/eclipse/Uniwin/bin/g++ -otttt.exe ./tttt.o

Finished building target: tttt.exe
 
Build complete for project tttt
非常OK

标签:, , , , , , ,
0223 uniwin eclipse cdt gcc cygwin 4 ftp - 六月 13, 2006 by yippee

0223 uniwin eclipse cdt gcc cygwin 4 ftp

代码:以前玩嵌入式LINUX交叉编译的
#include <stdio.h> 

int main(void)
&leftsign;
    int i;

    for(i = 0; i < 6; i++)&leftsign;

        printf("i = %d  ",i);

        printf("Hello, embedded linux!\\n");
    &rightsign;

    return 0;
&rightsign;

输出很正常
 ./tttt
i = 0  Hello, embedded linux!
i = 1  Hello, embedded linux!
i = 2  Hello, embedded linux!
i = 3  Hello, embedded linux!
i = 4  Hello, embedded linux!
i = 5  Hello, embedded linux!

可是我修改了一下循环次数,编译又出现

**** Incremental build of configuration Debug for project tttt ****

make -k all
Building file: ../tttt.cpp
Invoking: GCC C++ Compiler
O:/java/eclipse/Uniwin/bin/g++ -O0 -g3 -Wall -c -fmessage-length=0 -otttt.o ../tttt.cpp

Finished building: ../tttt.cpp
 
Building target: tttt.exe
Invoking: GCC C++ Linker
O:/java/eclipse/Uniwin/bin/g++ -otttt.exe ./tttt.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0×18): In function `_start\’:
../sysdeps/i386/elf/start.S:77: undefined reference to `main\’
collect2: ld returned 1 exit status

Finished building target: tttt.exe
 
Build complete for project tttt

再一看LINUX下面文件
总用量 4
drwxr-xr-x    2 sf       root         4096  2月 23 12:50 Debug
-rw-r–r–    1 sf       root            0  2月 23 09:21 t.c
-rw-r–r–    1 sf       root            0  2月 23 12:49 tttt.cpp

又为0字节了,我怀疑是FTP失败,创建了新文件,但是没有能够传输字节上去

标签:, , , , , , ,
0223 uniwin eclipse cdt gcc cygwin 2 - 六月 12, 2006 by yippee

0223 uniwin eclipse cdt gcc cygwin 2

0223 uniwin eclipse cdt gcc cygwin 1
http://www.yippeesoft.com/blog/p/0223uniwineclipsecdtgcccygwin1.php

0223 uniwin eclipse cdt gcc cygwin 3 ftp (2006-6-14)

 0223 uniwin eclipse cdt gcc cygwin 4 ftp (2006-6-13) 

原来老是习惯性按下 确定,把UNIWIN关了,打开之后再 BUILD 结果
Building file: ../tttt.cpp
Invoking: GCC C++ Compiler
O:/java/eclipse/Uniwin/bin/gcc -O0 -g3 -Wall -c -fmessage-length=0 -otttt.o ../tttt.cpp
gcc: ../tttt.cpp: 没有那个文件或目录
gcc: no input files

Finished building: ../tttt.cpp
 
Building target: tttt.exe
Invoking: GCC C++ Linker
g++ -otttt.exe ./tttt.o
/bin/../lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(libcmain.o)(.text+0xb3): undefined reference to `_WinMain@16\’
collect2: ld returned 1 exit status
make: *** [tttt.exe] Error 1
make: Target `all\’ not remade because of errors.
Build complete for project tttt

看来是文件没有上传上去,按照作者说的,随便加了一个空格,保存,现在LINUX下面有了。

Building file: ../tttt.cpp
Invoking: GCC C++ Compiler
O:/java/eclipse/Uniwin/bin/gcc -O0 -g3 -Wall -c -fmessage-length=0 -otttt.o ../tttt.cpp

Finished building: ../tttt.cpp
 
Building target: tttt.exe
Invoking: GCC C++ Linker
g++ -otttt.exe ./tttt.o
/bin/../lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../libcygwin.a(libcmain.o)(.text+0xb3): undefined reference to `_WinMain@16\’
collect2: ld returned 1 exit status
make: *** [tttt.exe] Error 1
make: Target `all\’ not remade because of errors.
Build complete for project tttt

继续修改BUILDER LINK 选项
**** Full rebuild of configuration Debug for project tttt ****

make -k clean all
rm -rf  ./tttt.o  ./tttt.d tttt.exe
 
Building file: ../tttt.cpp
Invoking: GCC C++ Compiler
O:/java/eclipse/Uniwin/bin/gcc -O0 -g3 -Wall -c -fmessage-length=0 -otttt.o ../tttt.cpp

Finished building: ../tttt.cpp
 
Building target: tttt.exe
Invoking: GCC C++ Linker
O:/java/eclipse/Uniwin/bin/gcc -otttt.exe ./tttt.o
/usr/lib/gcc-lib/i386-redhat-linux/3.2.2/../../../crt1.o(.text+0×18): In function `_start\’:
../sysdeps/i386/elf/start.S:77: undefined reference to `main\’
collect2: ld returned 1 exit status

Finished building target: tttt.exe
 
Build complete for project tttt

标签:, , , , , ,
0223 uniwin eclipse cdt gcc cygwin 1 - 六月 11, 2006 by yippee

0223 uniwin eclipse cdt gcc cygwin 1

作者很强:升级很快
我还是装了一个vmware + linux测试了一下telnet/ftp组合,把最后的在我这边跑的很happy的放到一个叫02_22_2006的patch里面了。

于是今天继续试用:
作者说:
只要%path of uniwin%/uniwin/bin在PATH环境变量最前面,eclipse缺省调用gcc, 就会调用uniwin/bin/目录下的gcc。这块不用设置。

结果:
这是XP设置用户变量
O:\\微软\\VS6\\Common\\Tools\\WinNT;O:\\微软\\VS6\\Common\\MSDev98\\Bin;O:\\微软\\VS6\\Common\\Tools;O:\\微软\\VS6\\VC98\\bin;N:\\share\\UltraEdit-32;O:\\ms\\xpsdk\\Bin\\.;O:\\ms\\xpsdk\\Bin\\WinNT\\;

全局变量
O:\\java\\eclipse\\Uniwin\\bin;%SystemRoot%\\system32;%SystemRoot%;%SystemRoot%\\system32\\WBEM;F:\\Program Files\\Common Files\\GTK\\2.0\\bin;F:\\WINXP\\Microsoft.Net\\Framework\\v1.1.4322;O:\\ms\\xpsdk\\Bin\\.;O:\\ms\\xpsdk\\Bin\\WinNT\\.;F:\\Program Files\\Microsoft SQL Server\\90\\Tools\\binn\\;F:\\Program Files\\Subversion\\bin

这是DOS下变量
Path=O:\\java\\eclipse\\Uniwin\\bin;F:\\WINXP\\system32;F:\\WINXP;F:\\WINXP\\system32\\WBEM;F:\\Program Files\\Common Files\\GTK\\2.0\\bin;F:\\WINXP\\Microsoft.Net\\Framework\\v1.1.4322;O:\\ms\\xpsdk\\Bin\\.;O:\\ms\\xpsdk\\Bin\\WinNT\\.;F:\\Program Files\\Microsoft SQLServer\\90\\Tools\\binn\\;F:\\Program Files\\Subversion\\bin;O:\\微软\\VS6\\Common\\Tools\\WinNT;O:\\微软\\VS6\\Common\\MSDev98\\Bin;O:\\微软\\VS6\\Common\\Tools;O:\\微软\\VS6\\VC98\\bin;N:\\share\\UltraEdit-32;O:\\ms\\xpsdk\\Bin\\.;O:\\ms\\xpsdk\\Bin\\WinNT\\;O:\\java\\eclipse\\Uniwin\\bin;F:\\WINXP\\system32;F:\\WINXP;F:\\WINXP\\system32\\WBEM;F:\\Program Files\\Common Files\\GTK\\2.0\\bin;F:\\WINXP\\Microsoft.Net\\Framework\\v1.1.4322;O:\\ms\\xpsdk\\Bin\\.;O:\\ms\\xpsdk\\Bin\\WinNT\\.;F:\\Program Files\\Microsoft SQL Server\\90\\Tools\\binn\\;F:\\Program Files\\Subversion\\bin;N:\\TOOLS;N:\\TOOLS\\NC;"D:\\ProgramFiles\\MicrosoftSQLServer\\80\\Tools\\Binn\\"

可是到了ECLIPSE第一个变成 M:\\CYGWIN\\BIN

然后就报告
Severity Description Resource In Folder Location Creation Time Id
1 Error launching \’cygpath\’ command tttt   2006年2月23日 9:29:31 3
Severity Description Resource In Folder Location Creation Time Id
1 C/C++ Indexer Problem: Preprocessor Inclusion not found: stdio.h in file: O:\\java\\eclipse\\works\\tttt\\t.c on line: 1. t.c tttt line 1 2006年2月23日 9:35:20 4

 作者提示:
 我也碰到这个问题过,我在step by step里写了eclipse和cygwin紧紧绑定,使用uniwin的时候‘如果装了cygwin, 请不要装gcc & g++那部分’。
不知道把cygwin的原来的gcc, g++换个名字行不行,我装了cygwin, 但是不装gcc, g++是可以的。
或者在eclipse配置project的编译器把gcc指定到O:\\java\\eclipse\\Uniwin\\bin\\gcc我想应该行的

我修改了一下:
**** Full rebuild of configuration Debug for project tttt ****
make -k clean all
rm -rf  ./tttt.o  ./tttt.d tttt.exe

Building file: ../tttt.cpp
Invoking: GCC C++ Compiler
O:\\java\\eclipse\\Uniwin\\bin\\gcc -O0 -g3 -Wall -c -fmessage-length=0 -otttt.o ../tttt.cpp
O:javaeclipseUniwinbingcc: not found
make: *** [tttt.o] Error 127
make: Target `all\’ not remade because of errors.
Build complete for project tttt

修改 O:\\java\\eclipse\\Uniwin\\bin\\ 为 O:/java/eclipse/Uniwin/bin/ 结果
make -k clean all
rm -rf  ./tttt.o  ./tttt.d tttt.exe
 
Building file: ../tttt.cpp
Invoking: GCC C++ Compiler
O:/java/eclipse/Uniwin/bin/gcc -O0 -g3 -Wall -c -fmessage-length=0 -otttt.o ../tttt.cpp
Could not open file mapping object (2).
Running gserver first!
make: *** [tttt.o] Error 255
make: Target `all\’ not remade because of errors.
Build complete for project tttt

标签:, , , , , ,
0220 eclipse cdt uniwin try - 六月 7, 2006 by yippee

0220 eclipse cdt uniwin try

uniwin可以作为一个IDE和服务器之间的转发PROXY,这样就可以在WINDOWS下编辑,UNIX/LINUX服务器上编译
类似于MAGIC C++,但是它不用自己的IDE,可以使用ECLIPSE DEV-CPP MINGW之类的IDE

Uniwin是一套基于ssh/sftp技术的用于在Windows客户端开发远程Unix服务器程序的软件。
Uniwin自带了两个极其有用的小工具。一个是基于SFTP的客户端和远程服务器之间的文件同步,能够通过SFTP协议实时的同步客户端和服务器的指定的目录下的任何文件。另外一个是FTP/SFTP桥,Uniwin为了支持eclipse的同步工具,自带了一个全功能,多线程的FTP到SFTP协议转化程序,在本地提供FTP服务,同时又是远程Unix服务器的一个SFTP客户程序。

uniwin的工作机理是对GNU Toolchain做包装,将他们变成通讯程序了,从底层着手,IDE调用gcc, g++, gdb的时候根本感觉不到这些工具有什么不一样,所以对所有IDE通吃。

uniwin支持什么Code::Blocks, Dev-Cpp, Relo, MingW Developer Studio, Vide and ….。总有一个成的。Cygwin/DDD也被Uniwin改造成远程调试器了。我还附带加了X11程序的远程调试开发。

0210 mimetic Uniwin (2006-5-1)  http://www.yippeesoft.com/blog/p/0210mimeticUniwin.php

TCP       10.10.30.40 : 5002      192.168.11.11 : 21       ESTABLISHED         25420     K:4\\java\\eclipse\\Uniwin\\bin\\ftpd.exe
TCP       10.10.30.40 : 5018      192.168.11.11 : 21       ESTABLISHED         25420     K:4\\java\\eclipse\\Uniwin\\bin\\ftpd.exe
TCP       127.0.0.1 : 21          127.0.0.1 : 4987        CLOSE_WAIT          25420     K:4\\java\\eclipse\\Uniwin\\bin\\ftpd.exe
TCP       10.10.30.40 : 4992      192.168.11.11 : 21       ESTABLISHED         25420     K:4\\java\\eclipse\\Uniwin\\bin\\ftpd.exe
TCP       127.0.0.1 : 21          127.0.0.1 : 5001        CLOSE_WAIT          25420     K:4\\java\\eclipse\\Uniwin\\bin\\ftpd.exe
TCP       127.0.0.1 : 21          127.0.0.1 : 5017        CLOSE_WAIT          25420     K:4\\java\\eclipse\\Uniwin\\bin\\ftpd.exe
TCP       0.0.0.0 : 21            0.0.0.0 : 0             LISTENING           25420     K:4\\java\\eclipse\\Uniwin\\bin\\ftpd.exe
TCP       10.10.30.40 : 5048      192.168.11.11 : 23       ESTABLISHED         25380     K:4\\java\\eclipse\\Uniwin\\bin\\gssh.exe
TCP       10.10.30.40 : 5043      192.168.11.11 : 23       ESTABLISHED         25380     K:4\\java\\eclipse\\Uniwin\\bin\\gssh.exe
TCP       10.10.30.40 : 5047      192.168.11.11 : 23       ESTABLISHED         25380     K:4\\java\\eclipse\\Uniwin\\bin\\gssh.exe
TCP       10.10.30.40 : 5044      192.168.11.11 : 21       ESTABLISHED         28360     K:4\\java\\eclipse\\Uniwin\\bin\\gtftp.exe

按照它的STEP STEP基本配置OK,可是没有办法同步,同步的时候总是最后报告失败。

本机直接FTP实验了一下
c:\\>ftp 127.0.0.1
Connected to 127.0.0.1.
220  SFTP server ready.
User (127.0.0.1:(none)): sf
331 Password required for sf
Password:
Connection closed by remote host.

直接远程
c:\\>ftp 192.168.11.11
Connected to 192.168.11.11.
220 (vsFTPd 1.1.3)
User (192.168.11.11:(none)): sf
331 Please specify the password.
Password:
230 Login successful. Have fun.
ftp> ll
Invalid command.
ftp> ls
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.
ftp> ls
200 PORT command successful. Consider using PASV.
425 Failed to establish connection.

估计是那个PASV的问题?

标签:, , , , ,
0220 Eclipse cdt mingw IDE - 六月 5, 2006 by yippee

0220 Eclipse cdt mingw IDE

Eclipse统一开发环境

Eclipse是一个开放式的软件开发平台,可以进行java、c++、pyhton的开发。

 一、Windows环境
1、安装配置JDK

Eclipse本身是用Java语言编写,但下载的压缩包中并不包含Java运行环境,需要用户自己另行安装JRE,

并且要在操作系统的环境变量中指明JRE中bin的路径。

JDK下载连接http://java.sun.com/downloads/
以下环境变量,%installdir%表示安装目录

JAVA_BIN=%installdir%\\bin

JAVA_HOME=%installdir%

JAVA_INCLUDE=%installdir%\\include

CLASSPATH=.;%installdir%\\lib\\dt.jar;%installdir%\\lib\\htmlconverter.jar;%installdir%\\lib\\tools.jar

2、安装eclispe

eclipse下载连接http://www.eclipse.org/downloads/index.php  

eclipse是一个绿色软件,直接解压到目标目录就可以了(例如C:\\eclipse)

3、安装配置MinGW+MSys

因为CDT没有附带编译调试工具,所以要自己下载编译调试工具(Cygwin或Mingw+Msys)。

Cygwin提供了在windows上使用unix环境的套件,但是编译出来的程序需要连接Cygwin特定的dll,移植性不好。

MSYS+MinGW包括了许多的子套件。首先MSYS是Minimal SYStem的缩写提供了类似Bourne shell环境下编译程序

的一些utility,像automake之类。而MinGW则是Minimalistic GNU for Windows的缩写

他包含了许多的compiler for windows、win32api等等,是用来编译for windows的程序用,

不像Cygwin编出來的程序必須在Cygwin下才能跑。

MinGW和MSys下载连接http://sourceforge.net/project/showfiles.php?group_id=2435

添加以下环境变量,%installdir%表示安装目录

Path中增加%installDir%\\bin

C_INCLUDE_PATH=%installDir%\\include

CPLUS_INCLUDE_PATH=%installDir%\\include\\c++\\3.2.3;%installDir%\\include\\c++\\3.2.3\\mingw32;

%installDir%\\include\\c++\\3.2.3\\backward;%installDir%\\include

LIBRARY_PATH=%installDir%\\lib

将%installdir%\\bin下的mingw32-make.exe改名为make.exe,因为CDT缺省的是使用make

4、安装eclipse的C++开发插件

CDT下载连接http://www.eclipse.org/downloads/index.php  

将CDT解压到一个专门存放插件的目录(例如D:\\plugin)

在c:\\eclipse下新增加一个目录links,创建一个.txt文件,文件名为CDT解压后的目录名称。

编辑这个文件在其中添加  path=存放插件的目录\\CDT解压后的目录名称

例如c:\\eclipse\\links\\pydev_0_9_4.txt的内容为

path=d:\\plugin\\pydev_0_9_4

5、安装配置python

python的下载连接http://www.python.org/

添加以下环境变量,%installdir%表示安装目录

%installdir%表示安装目录

PYTHONPATH=.;%installdir%\\lib

PYTHON_HOME=%installdir%

PYTHON_INCLUDE=%installdir%\\include

PYTHON_LIB=%installdir%\\libs

6、安装eclipse的python插件

pydev插件的下载连接http://pydev.sourceforge.net/

将pydev解压到专门存放插件的目录(例如D:\\plugin)

创建一个.txt文件,文件名为pydev解压后的目录名称。

编辑这个文件在其中添加  path=存放插件的目录\\pydev解压后的目录名称

7、yacc和lex

从cygwin中拷贝bison.exe、bison.hairy、bison.simple和flex.exe到mingw\\bin下

添加以下环境变量,%installdir%表示MinGW的安装目录

BISON_HAIRY=%installdir%\\bin\\bison.hairy

BISON_SIMPLE=%installdir%\\bin\\bison.simple

标签:, , , ,
0220 Eclipse cdt mingw install - 六月 4, 2006 by yippee

0220 Eclipse cdt mingw install

终于安装OK了
4、安装eclipse的C++开发插件

CDT下载连接http://www.eclipse.org/downloads/index.php  

将CDT解压到一个专门存放插件的目录(例如D:\\plugin)

在c:\\eclipse下新增加一个目录links,创建一个.txt文件,文件名为CDT解压后的目录名称。

编辑这个文件在其中添加  path=存放插件的目录\\CDT解压后的目录名称

例如c:\\eclipse\\links\\pydev_0_9_4.txt的内容为

path=d:\\plugin\\pydev_0_9_4

下载了 mingw/MinGW-5.0.2.exe  ,完全安装了

环境变量也增加了 SET PATH = D:\\MinGW\\bin;%PATH%

eclipse 下用cdt插件开发c c++程序
                                     作者 一时无两  http://blog.csdn.net/sundaylin
1 cdt插件的下载 http://www.eclipse.org/cdt/
2 cdt只是个壳 真正编译c c++的是 GCC、GDB 和 Make
  想在windows下使用 下载MinGW http://www.mingw.org/download.shtml
  我在到的是 MinGW-3.1.0-1.exe (我载的时候已经有更新的版本了)
3 安装 MinGW  一直next就行了  (一下假设你装在d盘)
4 设置 MinGW 的环境变量
要测试一下环境变量设得对不对
在 运行-cmd  打上g++ 如果不出现“g++不是内部或外部命令….” 那么你的设置就对了
你的第一个c++程序
1 打开eclipse new->project->Standard Make C++ Project 再输入项目名为test
2 在Project->Properties->C/C++ make project 那里  build command 的“make”改为“mingw32-make”
  再按“应用” “确定” 

问题就是我没有办法看到 新建里面有C++

创建新项目

在 Eclipse 中安装 CDT 之后,浏览至 File => New => Project,在那里,您将发现三个新的可用项目类型:C(“Standard C Make Project”)、C++(“Standard C++ Make Project”)和“Convert to C or C++ Projects”。从“Standard Make C++ Project”开始,为您的项目创建源代码文件。在 C/C++ Projects 视图中,单击鼠标右键,然后选择 New => Simple => File。命名您的文件并保存它。您可能会用这种方法创建许多头文件以及 C/C++ 实现代码文件。最后当然是 Makefile,GNU Make 将使用它来构建二进制文件。对该 Makefile 使用常见的 GNU make 语法(请参阅 参考资料)。请记住:Makefile 要求您使用 Tab 字符而不是空格来产生缩进行

我就是没有办法看到

. 安装eclipse和CDT

? ?? 到 http://www.eclipse.org上下载eclipse和CDT,解压到同一个目录下,比如 D:\\eclipse ,运行eclipse.exe 即可
? ?? 注意的是:? CDT要搭载对应的版本的eclipse使用,下载时候阅读说明选择正确版本的CDT即可
win32下GNU 编译环境搭建
?
?? eclipse和dev-cpp这些都是调用MinGW或者Cygin来编译调试C/C++程序的. 建议使用MinGW,它全称是Minimal GNU for Win,是GNU开发工具在win32平台上的一个移植,不同于Cygin,MinGW是原生的win32移植,不需要另外的POSIX模拟中间层的支持.另外MinGW项目也发布了一个最小的posix实现接口–msys,移植了很多linux下很方便的小工具,比如ls,vi,rvxt等等

CDT 3.0 – New and Noteworthy
Oh the summer is here and the software is hot!

Right on the heels of the Eclipse 3.1 release is the CDT 3.0 release, providing something new for all the C/C++ developers to play with while they soak up the warm summer rays! The CDT 3.0 download is now available though the CDT download page.
Note that CDT 3.0 requires version 3.1 of the Eclipse framework.
This version of the CDT provides a number of performance and scalability improvements and a few new features:
 

标签:, , , ,
0220 Eclipse cdt mingw info - 六月 3, 2006 by yippee

0220 Eclipse cdt mingw info

不知道是不是我的RPWT,这个玩意就是不能运行。

已经安装的 Eclipse SDK
Version: 3.1.2
Build id: M20060118-1600

根据CDT的说明:CDT 3.0.2 (Feb 9, 2006)
February 10, 2005 – CDT 3.0.2 Now Available — – This is the latest official release of the CDT and is a maintenance release of CDT 3.0. It runs only against Eclipse 3.1.x. For more information, see the 3.0.2 Release Notes and CDT 3.0 New and Noteworthy. For install instructions please see the CDT Eclipse 3.1 Based Releases Page
CDT Eclipse 3.1.x Based Releases Page
 Welcome to the CDT Eclipse 3.1.x based releases page.
The contents of this site will only work with Eclipse 3.1.x. Since this version of the Eclipse platform has introduced API changes that affect the CDT, you will need to start with a fresh new CDT when upgrading to Eclipse 3.1.x. Also these builds here will not work with Eclipse 3.0.x.

安装CDT的官方说明
To install the update in Eclipse 3.0, first uninstall any CDT version you happen to have currently installed. Then from the menu bar,

select Help->Software Updates->Find and Install…,
select “Search for new features to install”,
add the update site with the above URL,
and proceed through the rest of the wizard.
There are zip files available at this same link.

不行~~~~~~~~~

所有的资料都说的非常简单:
安装和运行 CDT

在下载和安装 CDT 之前,首先必需确保 GNU C 编译器(GNU C compiler,GCC)以及所有附带的工具(make、binutil 和 GDB)都是可用的。如果正在运行 Linux,只要通过使用适用于您分发版的软件包管理器来安装开发软件包。在 Windows平台上,将需要安装 Cygwin 工具箱(请参阅 参考资料以获得链接)。Cygwin 是用于 Windows 的类 UNIX 环境,它包括 GCC 移植以及所有必需的开发工具,包括 automake 和 GNU 调试器(GNU Debugger,GDB)。Cygwin 是在 cygwin1.dll 库基础上构建的。Cygwin 的备用解决方案是 Minimalist GNU for Windows(MinGW)(请参阅 参考资料以获得链接)。该工具是一组可免费获取、自由分发的特定于 Windows 的头文件和导入库,这些头文件和导入库与 GNU 工具集(它们允许您生成不依赖于任何第三方 DLL 的本机 Windows 程序)结合在一起。如果您想要创建与 POSIX 兼容的 Windows 应用程序,那么 MinGW 是最佳选择。MinGW 甚至可以在 Cygwin 安装之上工作。 Solaris和 QNX要求您从因特网下载并安装其特定的 GCC、GNU Make binutils 和 GDB 移植(请参阅 参考资料以获得链接)。

假设您安装了适当的 Java SDK/JRE 和 Eclipse 平台 SDK,并且它们都正常运行。CDT 以两种“方式”可用:稳定的发行版和试运行版(nightly build)。试运行版未经完全测试,但它们提供了更多的功能并改正了当前错误。安装之前,请检查磁盘上是否存在先前版本的 CDT,如果存在,请确保完全除去它。因为 CDT 没有可用的卸载程序,所以需要手工除去它。为了检查先前版本是否存在,转至 CDT 插件所驻留的目录: eclipse/plugins 。接着,除去所有以 org.eclipse.cdt 名称开头的目录。需要做的最后一件事情是从 workspace/.metadata/.plugins 和 features 除去 CDT 元数据目录 or.eclipse.cdt.* 。

下一步是下载 CDT 二进制文件。注意:请下载适合于您操作系统的正确的 CDT。遗憾的是,即使 CDT 是用 Java 编写的,它也不是与平台无关的。接着,将归档文件解压到临时目录中,从临时目录将所有插件目录内容都移到 Eclipse plugins 子目录。还需要将 features 目录内容移到 Eclipse features 子目录中。现在,重新启动 Eclipse。Eclipse 再次启动之后,更新管理器将告诉您它发现了更改并询问您是否确认这些更改。现在您将能够看到两个可用的新项目:C 和 C++。

Eclipse就是这样一个开发工具??开放源代码、免费、优秀的厂商支持,并且拥有丰富的扩展资源。

Eclipse
  1.Eclipse的历史

  Eclipse的前身是IBM的Visual Age for Java(简称VA4J)。把这个项目免费赠送给Eclipse社团(www.eclipse.org)前,IBM已经投入超过四千万美元进行研发。Eclipse社团的创始人还包括Borland、Merant、QNX Software Systems、Rational Software、Red Hat、SuSE、TogetherSoft和Webgain,后来加入的还有Oracle等公司,实力相当雄厚。如今,IBM通过附属的研发机构Object Technologies International(简称OTI),继续领导着Eclipse的开发。

CDT 是完全用 Java 实现的开放源码项目(根据 Common Public License 特许的),它作为 Eclipse SDK 平台的一组插件。这些插件将 C/C++ 透视图添加到 Eclipse 工作台(Workbench)中,现在后者可以用许多视图和向导以及高级编辑和调试支持来支持 C/C++ 开发。
主 CDT 插件(Primary CDT plug-in)是“框架”CDT 插件。
CDT 功能 Eclipse(CDT Feature Eclipse)是 CDT 功能组件(Feature Component)。
CDT 核心(CDT Core)提供了核心模型(Core Model)、CDOM 和核心组件(Core Component)。
CDT UI是核心 UI、视图、编辑器和向导。
CDT 启动(CDT Launch)为诸如编译器和调试器之类的外部工具提供了启动机制。
CDT 调试核心(CDT Debug Core)提供了调试功能。
CDT 调试 UI(CDT Debug UI)为 CDT 调试编辑器、视图和向导提供了用户界面。
CDT 调试 MI(CDT Debug MI)是用于与 MI 兼容的调试器的应用程序连接器。

MinGW: A collection of freely available and freely distributable Windows specific header files and import libraries combined with GNU toolsets that allow one to produce native Windows programs that do not rely on any 3rd-party C runtime DLLs.

标签:, , , ,