Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-ui-dev] How to use CDT 4.0+gcc

I know it is only a naive question, but I have token several days to test,
and still know how to do
=======================================================================================================
I use eclipse for Java, PHP and Python, and It is a perfect IDE, for now, I
want to use CDT:WinnXP+Eclipse 3.3+CDT 4.0+Dev-Cpp(it provide gcc, make).I
ever  
used CDT 3.0.X,just add C:\Dev-Cpp\bin(gcc,make are here) to system
path,then create managed C Project,everything works fine, but now I do not
know how  
to use CDT 4.0,and following is my operations:

 C project->executable (Hello World ANSI C Project)->Basic Settings->Select
Configurations(Advanced settings->c/c++ Build->Tool chain editor->Select  
tools->remove all XL things(I think I must do that, no xl complier,
linker...are installed in my laptop)->add GCC compiler, linker...)->specify
Linux GCC  
as Current toolchain(Maybe, there is something wrong here, but I do not know
to do)->specify Gnu Make Builder as Current Builder->in Paths and symbols 
(under C/C++ General test page) to add C:\Dev-Cpp\include to GNU C'S
Includes ->XL Compiler Setting(do nothing)->Just click finish.


1.I create test.c:
****************************************************************
int main(void){
    printf ("Hello World!\n");
}
****************************************************************

2.Right-click build selected files, get following messages:
****************************************************************
Rebuilding selected file(s)

**** Internal Builder is used for build               ****
gcc -IC:\Dev-Cpp\include -O2 -g -Wall -c -fmessage-length=0 -osrc\test2.o
..\src\test2.c
Internal Builder: Exec error:The system cannot find the file specified.


Build of selected resources is complete.
****************************************************************


Questions:
1.What is Internal Builder, I think eclipse does not provide Builder? Why
use it, I use GCC,it is an external builder.
2. Why cannot find the file specified?
3. Error parser does not work, even I check all error parsers, because I add
'a' to test.c like:
 int main(void){'
    printf ("Hello World!\n");
    a
}

No error message in problem view.


I hope get detailed answers,and example of configuration is better.
Thanks in advance. 

-- 
View this message in context: http://www.nabble.com/How-to-use-CDT-4.0%2Bgcc-tf4926858.html#a14101402
Sent from the Eclipse CDT - UI mailing list archive at Nabble.com.



Back to the top