JWorld@TW the best professional Java site in Taiwan
      註冊 | 登入 | 全文檢索 | 排行榜  

» JWorld@TW » Java IDE » Eclipse  

按列印兼容模式列印這個話題 列印話題    把這個話題寄給朋友 寄給朋友   
reply to topicthreaded modego to previous topicgo to next topic
本主題所含的標籤
無標籤
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:Kirin_Lin]
blackart





發文: 14
積分: 0
於 2004-09-15 20:14 user profilesend a private message to usersend email to blackartreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
Kirin_Lin wrote:
你可以參考 eclipsewiki 網站有提供的訊息: Installing CDT with IntelC++ compiler


谢谢!正在看!


reply to postreply to post
眾里尋她千百度,驀然回首,他卻在,燈火闌珊處。
作者 Re:[教學]Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
HyperFly





發文: 1
積分: 0
於 2004-12-18 18:39 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
執行 gcj -c -O3 Test.java

source 裡有中文=>
Test.java:1: error: malformed UTF-8 character.

source 存成UTF-8=>
Test.java:1: error: Invalid character `/' in input

是不是GCJ沒有支援Unicode
請問有沒有辦法改善
不然程式裡都不能出現中文


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
monica





發文: 30
積分: 0
於 2005-01-11 18:56 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
那請問您有試用過Debug CDT嗎?

makefile :
all : hello.exe
hello.exe : hello.o
  g++ -o hello.exe hello.o
hello.o : hello.cpp
  g++ -c hello.cpp

程式碼 hello.cpp:
1
2
3
4
5
6
7
8
#include<stdio.h>
int main()
{
  int a = 0;--->我設breakpoint在這邊
  printf("Hello world");
 
  return 0;
}


可是出現的exception為:

info threads
No registers.
No symbol table is loaded. Use the "file" command.
info program

  Using the running image of child thread 3188.0x840.
Program stopped at 0x401066.
It stopped at a breakpoint that has since been deleted.
Type "info stack" or "info registers" for more information.
info threads
2 thread 3188.0xf20 * 1 thread 3188.0x840 info sharedlibrary
DLL Name Load Address
ntdll.dll 7c921000
/cygdrive/c/WINDOWS/system32/kernel32.dll 7c801000
/usr/bin/cygwin1.dll 61001000
/cygdrive/c/WINDOWS/system32/advapi32.dll 77da1000
/cygdrive/c/WINDOWS/system32/rpcrt4.dll 77e51000
/cygdrive/c/WINDOWS/system32/secur32.dll 77fc1000
/cygdrive/c/WINDOWS/system32/user32.dll 77d11000
/cygdrive/c/WINDOWS/system32/gdi32.dll 77ef1000
/cygdrive/c/WINDOWS/system32/imm32.dll 76301000
/cygdrive/c/WINDOWS/system32/lpk.dll 621f1000
/cygdrive/c/WINDOWS/system32/usp10.dll 73fa1000
/cygdrive/c/WINDOWS/system32/msvcrt.dll 77be1000
No symbol table is loaded. Use the "file" command.
No breakpoint number 1.

我用Cygwin GDB的除錯器去除錯 (因為我灌Cygwin的GDB and GCC)
在C/C++ Make 專案裡面, 除了
二進位剖析器用Cygwin PE 剖析器, PE Windows 剖析器
其他都用default值

Path=C:\WINDOWS\system32;C:WINDOWS;C:\WINDOWS\System32\Wbem;C:\JDK\jdk\bin;D:\My Documents\Applet;C:\cygwin\bin

LIBRARY_PATH=C:\cygwin\lib

C_INCLUDE_PATH=C:\cygwin\usr\include

執行這個程式不會出錯
但就是Debug時會有問題

到底是為什麼呢?
煩請厲害的高手解答了..謝謝


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:monica]
monica





發文: 30
積分: 0
於 2005-01-18 10:54 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我試出來了, 要在makefile那邊動點手腳(加上-g參數)

makefile :
1
2
3
4
5
all : hello.exe
hello.exe : hello.o
  g++ -g -o hello.exe hello.o
hello.o : hello.cpp
  g++ -c -g hello.cpp


但是在主控台那邊會出現gdb的訊息(很多看起來很討厭)
應該要printf(...)出來的東西都不出現了
有辦法把gdb的訊息不讓它show出來嗎?


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
kaze





發文: 1
積分: 0
於 2005-01-19 18:10 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問..為何我開啟Eclipse後,
在大大的◎步驟一.開啟Eclipse後,首先先開啟C/C++專用視景。
Windows->Open Perspective->C/C++ Development
我找不到C/C++ Development..
是否少裝了什麼必備的工具??

安裝環境與程式平台如下:
Win2000
cdt-full-1.2-win32.zip
eclipse-SDK-3.0-win32.zip
MinGW-3.1.0-1.exe


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:kaze]
Sengeor





發文: 62
積分: 1
於 2005-02-17 02:58 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
kaze wrote:
請問..為何我開啟Eclipse後,
在大大的◎步驟一.開啟Eclipse後,首先先開啟C/C++專用視景。
Windows->Open Perspective->C/C++ Development
我找不到C/C++ Development..
是否少裝了什麼必備的工具??

安裝環境與程式平台如下:
Win2000
cdt-full-1.2-win32.zip
eclipse-SDK-3.0-win32.zip
MinGW-3.1.0-1.exe


CDT 2.0.0, 2.0.1, 2.0.2 and 2.1 (for use only with Eclipse Platform 3.0.X)
CDT 1.1, 1.2, and 1.2.1 (for use with Eclipse Platform 2.X only)


reply to postreply to post
http://www.apollo-chess.com.tw
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
mooore





發文: 2
積分: 0
於 2005-04-09 17:10 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
您好, 我是一個Java新手, 最近在尋找將java code compile 成 native code的方法, 看過Sungo您教的用GCJ compile的方法, 真的可以將java compile to native code!!
不過我想請問如何才能用GCJ compile 使用 AWT 或 Swing 的 java code呢?
我試著用相同的command compile GCJ sample 的 SaveThatCalendar.java, 可以產生SaveThatCalendar.o (C:\gcc34-20040607\thisiscool-gcc\gcc-3.4\bin>gcj -c SaveThatCalendar.java),

但是當我要進一步 output SaveThatCalendar.exe 時便發生錯誤:
C:\gcc34-20040607\thisiscool-gcc\gcc-3.4\bin>gcj SaveThatCalendar.o --main=SaveThatCalendar -o run.exe

SaveThatCalendar.o(.text+0x11): In function `ZN16SaveThatCalendar4initEv':
C:/gcc34-20040607/thisiscool-gcc/gcc-3.4/bin/SaveThatCalendar.java:24: undefined
reference to `com::thisiscool::savethatcalendar::SaveThatCalendarGUI::class$'
SaveThatCalendar.o(.text+0x27):C:/gcc34-20040607/thisiscool-gcc/gcc-3.4/bin/Save
ThatCalendar.java:24: undefined reference to `com::thisiscool::savethatcalendar:
:SaveThatCalendarGUI::SaveThatCalendarGUI(java::awt::Container*)'
SaveThatCalendar.o(.text+0x81): In function `ZN16SaveThatCalendar4mainEP6JArrayI
PN4java4lang6StringEE':
C:/gcc34-20040607/thisiscool-gcc/gcc-3.4/bin/SaveThatCalendar.java:31: undefined
reference to `com::thisiscool::savethatcalendar::SaveThatCalendarFrame::class$'

SaveThatCalendar.o(.text+0x95):C:/gcc34-20040607/thisiscool-gcc/gcc-3.4/bin/Save
ThatCalendar.java:31: undefined reference to `com::thisiscool::savethatcalendar:
:SaveThatCalendarFrame::SaveThatCalendarFrame()'

請問這事什麼原因呢?我該如何處理呢? 謝謝大家~ ^^


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
stoneinwind





發文: 2
積分: 0
於 2005-05-28 11:24 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
不太了解GCJ,但是可以看看这一篇:http://www.linuxuser.com.tw/power/list2.php?id=2199

reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:monica]
stoneinwind





發文: 2
積分: 0
於 2005-05-28 22:22 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
monica wrote:
我試出來了, 要在makefile那邊動點手腳(加上-g參數)
。。。

但是在主控台那邊會出現gdb的訊息(很多看起來很討厭)
應該要printf(...)出來的東西都不出現了
有辦法把gdb的訊息不讓它show出來嗎?

我这里也是,版主出来扫盲了--怎么样把这些垃圾提示都关闭了?
多谢!


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
n3620v





發文: 9
積分: 0
於 2005-06-08 00:00 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我是新手, 安裝Eclipse 3.0.2, CDT並不適用上面的方式, 可能我不會設定CDT,
這裡
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/cdt-home/user/faq.html?cvsroot=Tools_Project#install_20
有線上更新安裝CDT的方法, 照著做就可以設定完成囉


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
soultse





發文: 89
積分: 0
於 2005-10-10 12:23 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
問幾個 Eclipse的 Java中有但 CDT沒有的功能的問題:
1.請問可以設定 CDT動態除錯嗎?
像 Eclipse的 Java那樣可以動態知道語法錯誤?
目前我所試的是按儲存才會幫你除錯而已。

2.其他的功能如按個快速鍵 Java可以匯入還沒 import的 package,
並移除沒用到的 package,那麼 C++的 library可能嗎?

thx a lot.


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:Kirin_Lin]
soultse





發文: 89
積分: 0
於 2005-10-31 17:24 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問大家這是什麼問題 =.=,
在第 287, 288行,有這樣的錯誤訊息,
好像不是程式碼的問題,因為我把程式碼往下移動,
他出現錯誤的地方還是那兩行....why ???
請大家幫幫忙...................

b.bmp (956.33k)


soultse edited on 2005-10-31 17:31
reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:Duncan]
carot





發文: 15
積分: 0
於 2006-01-25 11:12 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問一下,當我在eclipse鍵入main.cpp後,系統資源會完全持續在100%的狀態,查看了一下,才發覺eclipse的C/C++ Indexer一直沒跑完。
即使在設定中將Indexer設為No Indexer(search-based features will not work correctly),也無法解決。
請問也有人有這樣的問題嗎?該如何解決呢?

我的eclipse是3.1.1,cdt是3.0.1,cpu: 1g , ram: 248mb , platform: xp sp2


carot edited on 2006-01-25 11:18
reply to postreply to post
       我想加入Eclipse社群!!!
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
supergothere





發文: 1
積分: 0
於 2006-04-13 01:12 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
~"~..
我編譯的時候出現這個錯誤
Error launching builder

我知道是因為eclipse沒辦法找到make.exe

但是環境變數我也設定了!
都依照大大教的方式,幾乎一模一樣!

只是我的eclipse是3.1.1, cdt是3.0.2

有甚麼方法可以確定自己的eclipse可以抓到系統的環境變數嘛!

ps. 我在console下面可以正邊編譯執行


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:carot]
ewalker





發文: 1
積分: 0
於 2006-04-15 21:16 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
carot wrote:
請問一下,當我在eclipse鍵入main.cpp後,系統資源會完全持續在100%的狀態,查看了一下,才發覺eclipse的C/C++ Indexer一直沒跑完。
即使在設定中將Indexer設為No Indexer(search-based features will not work correctly),也無法解決。
請問也有人有這樣的問題嗎?該如何解決呢?

我的eclipse是3.1.1,cdt是3.0.1,cpu: 1g , ram: 248mb , platform: xp sp2


我的是3.12 CDT 是3.0.2 CPU P-M 1.7 RAM:784 OS:xp-sp2

結果跟你一樣! 記憶體會一直被吃掉 , cpu usage 100%

不曉得有沒有人遇過這樣的狀況?有沒有解決方案?
-------------------------------------------------------------------------------------------
繼續爬文中...尋找解法...


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
kentseng





發文: 2
積分: 0
於 2006-05-10 10:40 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我之前是JBuilder的愛用者,自從Borland宣布2006是最後一個版本後就開學Eclipse了,在這看了sungo的文章後學了很多.......感謝......

reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
slow





發文: 13
積分: 0
於 2006-09-07 11:59 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
按照大大所敎的設定後一切都RUN起來之後,第一次編輯成功了,也可以執行了,但是第二次要編輯就失敗了,出現下列的異常,請問是哪邊出錯了ㄋ

Error launching builder (mingw32-make all )
(Exec error:Launching failed)


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
brian_tsim





發文: 12
積分: 0
於 2006-09-12 11:37 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
大家好,本人是c++ 的新手,請問 Artistic Style 和 GCJ 有什麼用處?

reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
brian_tsim





發文: 12
積分: 0
於 2006-09-12 12:20 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
大家好本人成功安裝了cdt ,但不知為什麼個c/c++ indexer 時常loading ?

reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:ewalker]
andyluo197





發文: 1
積分: 0
於 2006-11-19 13:50 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
换用IBM的java sdk就不会出现cpu100%,而且速度也更快(只是使用ibm的sdk运行eclipse,eclipse的jdt还是会使用sun的jdk)

在eclipse.exe后面加jvm路径如:
D:\eclipse32\eclipse.exe -vm D:\ibm_sdk50\bin\javaw.exe

出现cpu 100%是index时sun的jdk处理速度不行。

ewalker wrote:
我的是3.12 CDT 是3.0.2 CPU P-M 1.7 RAM:784 OS:xp-sp2

結果跟你一樣! 記憶體會一直被吃掉 , cpu usage 100%

不曉得有沒有人遇過這樣的狀況?有沒有解決方案?
-------------------------------------------------------------------------------------------
繼續爬文中...尋找解法...


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:andyluo197]
along9302003

【私を梧棲の一番です】



發文: 130
積分: 0
於 2006-11-21 18:26 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
andyluo197 wrote:
换用IBM的java sdk就不会出现cpu100%,而且速度也更快(只是使用ibm的sdk运行eclipse,eclipse的jdt还是会使用sun的jdk)

在eclipse.exe后面加jvm路径如:
D:\eclipse32\eclipse.exe -vm D:\ibm_sdk50\bin\javaw.exe

出现cpu 100%是index时sun的jdk处理速度不行。


測試後,的確可以藉由 IBM 的 Java SDK 來啟動 eclipse 以改善這個問題,
不過要注意的是,在記憶體的要求上仍然不能太差,至少512M會比較能接受。。。
不過,CDT的 index 能使用真的很令人開心~~

附帶一提:
目前 IBM 的 Java SDK5.0 是放置在 IBM_DevelopmentPackage_for_Eclips 套件裡,而此套件可至 IBM 官網抓取。。。

如果,又有變更請知曉的同好告知~~


reply to postreply to post
萬丈高樓平地起,期望能再繼續進步~~Java Card 真的很棒!
作者 Re:[教學]Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
along9302003

【私を梧棲の一番です】



發文: 130
積分: 0
於 2007-02-24 04:19 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
sungo wrote:
◎補充:
由於CDT的編輯器並無內建Formatter,如果要自動排版C/C++ Source
Code 必須藉由其它排版工具來輔助。這裡我們要使用的是Artistic Style。
它是個短小簡便而且免費的Formatter,除了可以排版C/C++ Source Code
外,你也可以用來排版Java || C#。下載網址:
http://sourceforge.net/projects/astyle

在Eclipse我們必須藉由External Tools來啟動它。

Run->External Tools->External Tools,作以下設定:
name:
C_C++ Formatter

location:
C:\Astyle\astyle.exe (這裡設astyle.exe所在的完整路徑)

Working Directory:
${workspace_loc:/Hello} (請由Browse Button點選)

Arguments:
--style=kr ${resource_name}

做好設定後,當focus在*.cpp檔案上時,點選ToolBar上
的外部工具啟動鈕,就可以排版了。

註:按下排版鈕後,Eclipse會顯示MessageBox提示檔案已變更
,是否要載入,這時請選"Yes"。而Artistic Style有許多的細部
參數可以設定排版效果,可自行參考裡面的說明文件。


補充說明~
現在已經有相關的外掛 for eclipse3.1 及以上版本
1.請查照下面網址,進行下載並安裝。。。
下載網址:
http://sourceforge.net/projects/astyleclipse/

2.安裝完畢後的設定:
http://sourceforge.net/project/screenshots.php?group_id=177924

3.在安裝及設定後,在進行 CDT 的 code formatter 的設定:完成此設定後,以後對C/C++的程式碼之排版,只要先進行程是碼的反白選取,再按下Ctrl+Shift+F,
即可將選取的程式是碼部分進行排版。。。。操作上與JDT中的程式碼排版相同。。。大家可以試試看。。。終於可以擺脫設定及使用外部工具的不便了。。


reply to postreply to post
萬丈高樓平地起,期望能再繼續進步~~Java Card 真的很棒!
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
brn





發文: 2
積分: 0
於 2007-04-01 21:28 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
想請教各位大大,如果我想用eclipse去看mplayer(linux下的程式),我該怎麼執行linux下的./configure還有make呢???make感覺是用build make target那./configure呢??
請各位大大解答 先謝謝了


reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
bjk





發文: 24
積分: 0
於 2007-08-23 15:09 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
注意:makefile縮排要以Tab鍵作縮排,不能以空格4作縮排,
否則Build會有問題。
請問這句是什麼意思
all:
(Tab)g++(Tab)main.cpp(Tab)-g(Tab)-o(Tab)run
這樣嗎
不過我是複製 原文貼在makefile的

我步驟六
◎步驟六.編譯。
編譯點兩下後出現

Error launching builder (make -k all )
(Exec error:????W???)

supergothere
好像也是同樣的問題
能幫我解答嗎
謝謝


bjk edited on 2007-08-23 15:23
reply to postreply to post
作者 Re:[教學] Window+GCC+CDT用Eclipse開發C、C++ [Re:sungo]
tom2006





發文: 1
積分: 0
於 2007-10-31 20:31 user profilesend a private message to userreply to postreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
請問我所使用的版本是eclipse-SDK-3.2.1-win32.要下載那一種版本的CDT

reply to postreply to post
go to first page go to previous page  1   2   3  go to next page go to last page
» JWorld@TW »  Java IDE » Eclipse

reply to topicthreaded modego to previous topicgo to next topic
  已讀文章
  新的文章
  被刪除的文章
Jump to the top of page

JWorld@TW 本站商標資訊

Powered by Powerful JuteForum® Version Jute 1.5.8