What's wrong in CDT? [message #161064] |
Mon, 26 December 2005 06:41  |
Eclipse User |
|
|
|
Originally posted by: ufel2522.ms13.hinet.net
i used eclipse to write java for a long time.
so, i very like eclipse in many aspects.
now, for my job, i must write code in c/c++.
i hate vs.net, it sucks to be a IDE.
so, i installed CDT, Mingw, indent...
i appreciated CDT team's effort to make eclipse to be a good c/c++ ide for
us.
but after two days trial, i was disappointed.
i had only one file in my existed vs.net project - sample.c
i opened a Managed C Project and followed the tutorial to cancel indexer
first.
then i built project, CDT showed me:
**** Full rebuild of configuration Debug for project Samples ****
Nothing to build for project Samples
i can't tell CDT to compile sample.c.
but it worked when i rename the sample.c to sample.C.......
it confused me!
then, i deleted project (do not delete content) and created a new one.
build project, it didn't work again.
i must rename my sample.C to sample.c to make CDT to compile it.
After i ran my executable file which compiled in CDT,
it didn't show anything in console.
but in my OS's console mode, i ran this executable manually, it printed
correct message in sample.c.
it also confused me...
other problem included:
1. slow indexer, even i just had only one file which is only 71 lines in
it.
2. clumsy outline, after i declared a new struct in sample.c, outline
didn't change. it showed my new struct when i reopened eclipse.
these problems is CDT's bug? or it because my wrong operate?
finally, i want to ask what is CDT's new schedule?
3.0.2 or 3.1 or 4.0?
thanks for CDT team.
ps: please forgive my poor english :)
|
|
|
Re: What's wrong in CDT? [message #161327 is a reply to message #161064] |
Wed, 04 January 2006 06:57  |
Eclipse User |
|
|
|
Originally posted by: screetch.gmail.com
bear wrote:
> i had only one file in my existed vs.net project - sample.c
> i opened a Managed C Project and followed the tutorial to cancel indexer
> first.
> then i built project, CDT showed me:
>
> **** Full rebuild of configuration Debug for project Samples ****
>
> Nothing to build for project Samples
>
> i can't tell CDT to compile sample.c.
> but it worked when i rename the sample.c to sample.C.......
you probably created a C++ project. a .C file is a C++ file, so it was
finally recognized as a source file and built.
>
> it confused me!
>
> then, i deleted project (do not delete content) and created a new one.
> build project, it didn't work again.
> i must rename my sample.C to sample.c to make CDT to compile it.
and then you must have created a C project, and the same problem occurred.
a project can't mix C files with C++ files i think
> After i ran my executable file which compiled in CDT,
> it didn't show anything in console.
> but in my OS's console mode, i ran this executable manually, it printed
> correct message in sample.c.
I think Eclipse has a bug with the console. it doesn't display the last
line, which is maybe the only line of your sample program. and even if
it's not the only line i don't trust much Eclpise's console output.
|
|
|
Powered by
FUDForum. Page generated in 0.03153 seconds