Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Error starting process when running C programs: (6 Items)
   
Error starting process when running C programs  
I'm learning to use Momentics, and whenever I try to run simple hello world C/C++ programs as local applications I get 
an error:
Error starting process
cannot run program
"[src path]": Launching failed.

Is there someway to fix this?
I have GNU installed and on the PATH, is there someway to tell momentics where it is since it can't seem to find it?

I've attached a screenshot of the error
Attachment: Image momentics run error.png 25.75 KB
Re: Error starting process when running C programs  
Hello Samuel

Applications that are compiled for the QNX operating cannot be run on the Windows operating system.  You will need to 
setup a target running the QNX operating system, either on a physical machine, or through VMware to run your application
. 

Thanks,
Rodney
Re: Error starting process when running C programs  
I understand that, but I thought that since I was running the program as "Local C/C++ Application" it was designed to 
work on the host.

Am I just misunderstanding what that setting is?
Re: Error starting process when running C programs  
Hello Samuel

The launch "Local C/C++ Application" is an artifact that is there 
because the CDT plugins can be run on a variety of hosts with a variety 
of compilers.  The Local C/C++ application does nothing to the selected 
application.  It assumes that the selected application has been compiled 
using a compiler for the local machine.  It tells the launch 
configuration to use a local debugger (usually gdb) and to run that 
debugger with the specified application.  It does not interact or modify 
the specified application in any way.

Thanks,
Rodney


On 07/13/2015 01:07 PM, Samuel Hutchinson wrote:
> I understand that, but I thought that since I was running the program as "Local C/C++ Application" it was designed to 
work on the host.
>
> Am I just misunderstanding what that setting is?
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post114105
> To cancel your subscription to this discussion, please e-mail general-ide-unsubscribe@community.qnx.com

Re: Error starting process when running C programs  
So if I understand correctly, you use "run as local ..." when you have a program that has been compiled for the current 
machine (probably from some other machine) and you want to run it. You can't compile normal C/C++ programs for the host 
machine at all with Momentics.

Is this all right?
Thanks for answering.
Re: Error starting process when running C programs  
Hello Samuel

So the simple answer is "No, the intended purpose of the C/C++ and Debug 
view in Momentics is not to compile/debug programs for the local machine"

Now because the Momentics C/C++ and Debug view are based on the Eclipse 
CDT, it is possible to set stuff up so that you could compile things for 
the local machine through make files and such. But again, this is not 
the intended purpose of Momentics.

Thanks,
Rodney


On 07/13/2015 01:38 PM, Samuel Hutchinson wrote:
> So if I understand correctly, you use "run as local ..." when you have a program that has been compiled for the 
current machine (probably from some other machine) and you want to run it. You can't compile normal C/C++ programs for 
the host machine at all with Momentics.
>
> Is this all right?
> Thanks for answering.
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post114107
> To cancel your subscription to this discussion, please e-mail general-ide-unsubscribe@community.qnx.com