Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - About GCC 3.3.5 in QNX momentics 6.3.2: (13 Items)
   
About GCC 3.3.5 in QNX momentics 6.3.2  
Hi,
Recently i have downloaded and installed QNX momentics 6.3.2 on Windows Xp
SP3 machine.When i create a build a QNX C 
project i dont find any problems in building the project, but when i create
new Managed C++ Project and try to build it 
there are problems in it.
I can select GCC 2.9.5 and GCC 3.3.5 in the compiler options, both are
available.
 
Error message is 
make: *** [cmdline.o] Error 127                Cmdline     line 0
 
With this i am also attaching my console file.
With these error i thought as there is a need to install GCC.
Is it really needed? 
Any help would be appreciated.
 
Thank you
 
 
Attachment: Text Console.txt.txt 482 bytes
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
Check you project properties "C/C++ Build -> Tool Chain Editor" page, make sure you select "QNX QCC" as you current tool
 chain, preferably select "CDT Internal Builder" as  you current builder.
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
Thank you for guiding me.
The problem related to compiler seems to be solved, but when i build my project i am getting the message as;
 
cc1plus: Invalid option `-fmessage-length=0'

I will attach console file for a getting a clear idea.
Attachment: Text console.txt 683 bytes
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
Sreesha AG wrote:
> Thank you for guiding me.
> The problem related to compiler seems to be solved, but when i build my project i am getting the message as;
>  
> cc1plus: Invalid option `-fmessage-length=0'

qcc does not support gcc's dependency generation options because qcc 
provides a conflicting option (-M for mapfile generation). If you need 
to use them and use qcc, you'll have to pass them directly down to 
compiler by using -Wc,<option>.

Regards,

Ryan Mansfield
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
hi,
I got your point.
i am doing in QNX kind of environmet for the first time. 
Isn't there any other way to execute c++ programs? i have followed the steps given in the help manual.
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
Does IDE generates this? What version is it?

Sreesha AG wrote:
> Thank you for guiding me.
> The problem related to compiler seems to be solved, but when i build my project i am getting the message as;
>  
> cc1plus: Invalid option `-fmessage-length=0'
> 
> I will attach console file for a getting a clear idea.
> 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post18287
> 
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
Elena Laskavaia wrote:
> Does IDE generates this? What version is it?

The log file shows they're using 2.95.3.

Regards,

Ryan Mansfield
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
Actually i want to use GCC 3.3.5, it is taking the path automatically.
Can i change the compiler option to 3.3.5? 
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
Can you create QNX Project instead of managed? It has drop down to select a compiler variant.
Managed project in IDE 4.0.1 is not that good. You have to start from the scratch and pick qnx toolchain and 3.3.5 
profile to do that.


Sreesha AG wrote:
> Actually i want to use GCC 3.3.5, it is taking the path automatically.
> Can i change the compiler option to 3.3.5? 
> 
> _______________________________________________
> General
> http://community.qnx.com/sf/go/post18304
> 
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
I have created QNX Project from the scratch and there was no problem in debugging. Thank for your help.
Now i am running my program and it gives "Error Starting Process" message. From the manual i came to know that for 
running QNC C/C++ project one should have Neutrino Target System as a target.
Is it necessary to have Neutrino Target for running the program?or is it possible to run without having Neutrino?
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
Your program is a Neutrino binary. Just like you can't run a Window binary on a Linux system, you can't run a Neutrino 
binary on any other systems except on Neutrino itself.

Yes you need to setup a Neutrino system as  your target. If you are looking for an easy solution for starting up, you 
can install Neutrino in a VMWare image. Neutrino works well inside a VM.
Re: About GCC 3.3.5 in QNX momentics 6.3.2  
Thank you for your suggestions
Post Deleted