View topic - Porting from QNX 650 to 660 - regarding qcc
Porting from QNX 650 to 660 - regarding qcc
5 posts
• Page 1 of 1
Porting from QNX 650 to 660 - regarding qcc
If i run command "qcc -Y _cpp -v", i get below output:
cc: looking for gcc_ntox86_cpp in /opt/qnx660/host/linux/x86/etc/qcc/gcc/4.7.3/gcc_ntox86_cpp++.conf
cc: looking for gcc_ntox86_cpp in /opt/qnx660/host/linux/x86/etc/qcc/gcc/4.7.3/gcc_ntox86_cpp.conf
Why is it llooking for 2 configuration files?
Which one will be used?
cc: looking for gcc_ntox86_cpp in /opt/qnx660/host/linux/x86/etc/qcc/gcc/4.7.3/gcc_ntox86_cpp++.conf
cc: looking for gcc_ntox86_cpp in /opt/qnx660/host/linux/x86/etc/qcc/gcc/4.7.3/gcc_ntox86_cpp.conf
Why is it llooking for 2 configuration files?
Which one will be used?
- sheran.vaz
- Senior Member
- Posts: 101
- Joined: Mon May 11, 2009 9:17 am
Re: Porting from QNX 650 to 660 - regarding qcc
One is meant for compiling C code and the other for C++ code (if you diff them you'll see LANGUAGE is defined a C or C++ along with other C/C++ differences).
Normally you'll pass an option to qcc for which you want to use. Eg '-lang-c++' for c++ code.
Tim
Normally you'll pass an option to qcc for which you want to use. Eg '-lang-c++' for c++ code.
Tim
- Tim
- Senior Member
- Posts: 1519
- Joined: Wed Mar 10, 2004 12:28 am
Re: Porting from QNX 650 to 660 - regarding qcc
Current software compilation is with stdC++ in QNX 6.6. I'm trying to change to QNX 6.6.0 Dinkum C++. I'm facing issues with cmath.h stdlib.h header files, they are unresolved.
What are the things to take care when changing the C++ library from std C++ to Dinkum?
What are the things to take care when changing the C++ library from std C++ to Dinkum?
- sheran.vaz
- Senior Member
- Posts: 101
- Joined: Mon May 11, 2009 9:17 am
Re: Porting from QNX 650 to 660 - regarding qcc
Tim wrote:One is meant for compiling C code and the other for C++ code (if you diff them you'll see LANGUAGE is defined a C or C++ along with other C/C++ differences).
Normally you'll pass an option to qcc for which you want to use. Eg '-lang-c++' for c++ code.
Tim
Thanks for the reply Tim! "qcc" is c compiler right? does it take -lang-c++ as command line option?
- sheran.vaz
- Senior Member
- Posts: 101
- Joined: Mon May 11, 2009 9:17 am
Re: Porting from QNX 650 to 660 - regarding qcc
qcc is not a compiler. It's just a QNX front end tool for calling a compiler (in your case gcc) and libraries (Dinkum in your case).
-lang-c++ is indeed an option to qcc ('use qcc' to see all options).
There is nothing special when changing to Dinkum other than specifying the option to qcc to use Dinkum. I would imagine the '.h' you are having trouble with would be the same for any compiler since they are standard files...
Tim
-lang-c++ is indeed an option to qcc ('use qcc' to see all options).
There is nothing special when changing to Dinkum other than specifying the option to qcc to use Dinkum. I would imagine the '.h' you are having trouble with would be the same for any compiler since they are standard files...
Tim
- Tim
- Senior Member
- Posts: 1519
- Joined: Wed Mar 10, 2004 12:28 am
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest