Skip to main content



      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
Eclipse UserFriend
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] by Moderator

Re: Unrecognized Eclipse configuration ? [message #922434 is a reply to message #922363] Mon, 24 September 2012 22:29 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 10:13:31 EDT 2025

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

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

Back to the top