Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Unrecognized Eclipse configuration ?(Different main per configuration; seems stuck with another...)
Unrecognized Eclipse configuration ? [message #922363] Mon, 24 September 2012 20:40 Go to next message
Alex L is currently offline Alex L
Messages: 1
Registered: September 2012
Junior Member
Hi there,

I'm trying to run a different 'main' for GoogleTest (no 'main' function, but TEST() things), which is installed and I'm able to get it to work. I made for my GoogleTests a new configuration named "GTests" based on the Debug configuration.

The problem is, when I exclude the main used to do GoogleTests for the Debug & Release configuration, it's still running in both my Debug and Release (I see the GTests output). It is the only file with Google Tests in it.

Any idea where the problem might be ? I can't seem to get that "Exclude from Build..." thing to work...

Also, I see in "Run configuration" that the plugin seems to always be created at the same place... and putting a variable ( C/C++ Application = "${config_name}/Projectname.exe" ) gives me a runtime error of Eclipse "Problem Occurred - Launching 'NameProject.exe' has encountered a problem. Project name should be specified as variable argument for ${config_name} variable" = ???

Refreshing doesn't work (F5), nor cleaning.

Thank you,

Alex

EDIT : Btw I'm using Eclipse C++ ( if it wasn't clear )

[Updated on: Mon, 24 September 2012 20:47]

Report message to a moderator

Re: Unrecognized Eclipse configuration ? [message #922434 is a reply to message #922363] Mon, 24 September 2012 22:29 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3148
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 09/24/2012 06:40 PM, Alex L wrote:
> Hi there,
>
> I'm trying to run a different 'main' for GoogleTest (no 'main' function,
> but TEST() things), which is installed and I'm able to get it to work. I
> made for my GoogleTests a new configuration named "GTests" based on the
> Debug configuration.
>
> The problem is, when I exclude the main used to do GoogleTests for the
> Debug & Release configuration, it's still running in both my Debug and
> Release (I see the GTests output). It is the only file with Google Tests
> in it.
>
> Any idea where the problem might be ? I can't seem to get that "Exclude
> from Build..." thing to work...
>
> Also, I see in "Run configuration" that the plugin seems to always be
> created at the same place... and putting a variable ( C/C++ Application
> = "${config_name}/Projectname.exe" ) gives me a runtime error of Eclipse
> "Problem Occurred - Launching 'NameProject.exe' has encountered a
> problem. Project name should be specified as variable argument for
> ${config_name} variable" = ???
>
> Refreshing doesn't work (F5), nor cleaning.
>
> Thank you,
>
> Alex
Read sticky posts at top of forum.
Previous Topic:Can't see list of available software
Next Topic:Web Service is not showing in eclipse Juno
Goto Forum:
  


Current Time: Fri Aug 22 01:56:55 EDT 2014

Powered by FUDForum. Page generated in 0.09547 seconds