Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Bad defaults for parsers and building
Bad defaults for parsers and building [message #171317] Tue, 13 June 2006 09:39
Eclipse UserFriend
Originally posted by: klas.blockmaster.se

Hello


I'm a mostly happy new Eclipse/CDT user. Two thing really stumped me for
a few days though:

--- Bad binary parser default ---

The default for a new Standard Make C Project is to *not* have the "PE
Windows Parser" binary parser checked even though the host is running
Windows. This has a couple of consequences that are not at all obvious
to newbies like myself:

1. The made ("maked"?) executable is not recognized properly, but since
it can be run just fine from an ordinary shell one does not suspect
anything to be wrong.

2. Since the executable is not recognized, it is impossible to start a
debug session. Very frustrating since running "gdb my.exe" from the
shell works perfectly.

--- Bad build default ---

The second issue is that Eclipse/CDT has a conflicting setting for
automatic builds. The [Properties:C/C++ Make Project:Make Builder] tab
for new projects will have "Build on resource save (Auto Build)" *not*
checked.
At the same time, the menu [Project->Build Automatically] *is* checked
and these two settings are apparently in conflict:

1. Eclipse thinks auto building should be done when I save my Makefile
and (I'm guessing) invokes the CDT auto build setting.

2. Since the CDT setting is to do nothing, the build is trivially
successful.

3. Since auto build was ok, Eclipse seems to think that manual building
is not necessary until a file changes again. Thus trying to build
manually has no effect what so ever.

All this time, I'm staring at the first and only produced console output:
> make -k clean all
> make: *** No rule to make target `clean'.
> make: *** No rule to make target `all'.

You can imagine it's pretty freaky to find that whatever you do, Eclipse
just won't be bothered to build your project after that first failure.

The workaround is to either turn on auto build in the project settings
OR to disable autobuild in the Project menu.

--- Version information ---

Eclipse: 3.1.2
CDT: 3.0.2
make: 3.79.1
gcc: 3.4.2
ld: 2.15.91
OS: Windows XP SP2


Regards / Klas Lindberg
Previous Topic:CDT compiler options
Next Topic:Loading debug symbols for external shared libraries?
Goto Forum:
  


Current Time: Sun Jun 08 01:55:38 EDT 2025

Powered by FUDForum. Page generated in 0.02370 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top