Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » compile single file
compile single file [message #127161] Sun, 14 November 2004 18:26 Go to next message
Eclipse UserFriend
Originally posted by: spam.spam.com

hi all

How do I compile a single file in a project?

I'm converting a large project from MSVC7, so build all spews out a whole
load of errors. If I can get one .cpp file to compile without error, it
should be trivial to get the rest to...

cheers,
Rob
Re: compile single file [message #127616 is a reply to message #127161] Wed, 17 November 2004 22:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lothar.xcerla.com

Rob wrote:

> hi all
>
> How do I compile a single file in a project?
>
> I'm converting a large project from MSVC7, so build all spews out a whole
> load of errors. If I can get one .cpp file to compile without error, it
> should be trivial to get the rest to...
>
> cheers,
> Rob

My SCons Builder Plugin is able to issue a compile for a single file.
Although only if you use the SCons build system it provides. It does NOT
work with Makefiles.

(see thread <SCons builder plugin as addon to the CDT>

For more information see
http://nic-nac-project.de/~lothar/eclipse/update/SConsBuilde rPlugin.html

The plugin is registed at http://eclipse-plugins.2y.net.
If you like it you can rate it at
http://eclipse-plugins.2y.net/eclipse/plugin_details.

Lothar
Re: compile single file [message #127640 is a reply to message #127161] Thu, 18 November 2004 08:08 Go to previous message
Eclipse UserFriend
Originally posted by: johan.nosp.m.appeal.se

Without knowing how to do this within the CDT, what you're looking for is
probably a way to prevent CDT from passing "-k" to make.

"make -k" means "build as many files as possible, try to ignore any errors".
Make's default behaviour (i.e. without "-k") is to give up at the first error.

Regards //Johan

Rob wrote / skrev:
> hi all
>
> How do I compile a single file in a project?
>
> I'm converting a large project from MSVC7, so build all spews out a whole
> load of errors. If I can get one .cpp file to compile without error, it
> should be trivial to get the rest to...
>
> cheers,
> Rob
>
>
Previous Topic:Bison/Flex
Next Topic:content assist disabled
Goto Forum:
  


Current Time: Sat Oct 19 22:45:24 GMT 2024

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

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

Back to the top