Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - First Project: (3 Items)
   
First Project  
Hello!
I had installed QNX Momentics Development Suite 6.3.2 in Windows XP. IDE 4.0.1
Trying to make the first project of C++.
Program text:
#include <stdio.h>

int main(void) {
	printf("Welcome\n");
	return 0;//EXIT_SUCCESS;
}

Selected Project type:  QNX C/C++.

Build Variants: x86 (debug, release)
Compiler Type: GNU 3.3.5
Linker -> Category: General Options
Make Builder -> marking Use default, Build (Incremental Build), Clean

Build Project had no mistakes.

Select Windows -> Customize Perspective -> Launch

Run -> Debug:
Launch Configuration: C/C++ Local Application
Main -> C/C++ Application: x86/o-g/new_project_g
Debugger -> Debugger: gdb/mi
		Stop on startup at: main
		Main -> GDB Debugger: gdb
			  GDB Command Set: CygWin
			  Protocol: mi
		Shared Libraries -> load automatically
Source -> Source Lookup Path: Default

After pressing Apply, Debug the error window appears:
Error creating session
Exec error: Launching failed (3 lines)

Trying to change 	Debugger: CygWin Debugger, gdb Debugger
			GDB Command Set: Standard, Standard (Windows)
I’ve got the same error.

What can be changed (added, deleted)?
Re: First Project  
Hello Michael
The problem is you are trying to run (debug) a QNX executable on a Windows box.
The C/C++ Local option is for a self-hosted system, that is when your host is running QNX Neutrino.
You need a QNX target computer to run (debug) your executable.
In case you do not have a “real” QNX box, create a VMware workstation on your Windows computer, install QNX on this 
virtual computer and use it as your target.
Regards,
Yuriy
Re: First Project  
You cannot do C/C++ local application.
You need to pick QNX QConn IP launch config and pick the target.



Michael Seleznev wrote:
> Hello!
> I had installed QNX Momentics Development Suite 6.3.2 in Windows XP. IDE 4.0.1
> Trying to make the first project of C++.
> Program text:
> #include <stdio.h>
> 
> int main(void) {
> 	printf("Welcome\n");
> 	return 0;//EXIT_SUCCESS;
> }
> 
> Selected Project type:  QNX C/C++.
> 
> Build Variants: x86 (debug, release)
> Compiler Type: GNU 3.3.5
> Linker -> Category: General Options
> Make Builder -> marking Use default, Build (Incremental Build), Clean
> 
> Build Project had no mistakes.
> 
> Select Windows -> Customize Perspective -> Launch
> 
> Run -> Debug:
> Launch Configuration: C/C++ Local Application
> Main -> C/C++ Application: x86/o-g/new_project_g
> Debugger -> Debugger: gdb/mi
> 		Stop on startup at: main
> 		Main -> GDB Debugger: gdb
> 			  GDB Command Set: CygWin
> 			  Protocol: mi
> 		Shared Libraries -> load automatically
> Source -> Source Lookup Path: Default
> 
> After pressing Apply, Debug the error window appears:
> Error creating session
> Exec error: Launching failed (3 lines)
> 
> Trying to change 	Debugger: CygWin Debugger, gdb Debugger
> 			GDB Command Set: Standard, Standard (Windows)
> I’ve got the same error.
> 
> What can be changed (added, deleted)?
> 
> _______________________________________________
> QNX Momentics Getting Started
> http://community.qnx.com/sf/go/post15216
Attachment: Text elaskavaia.vcf 116 bytes