Project Home
Project Home
Source Code
Source Code
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 - Regarding qcc compilation flags to generate dependency files: Page 1 of 7 (7 Items)
   
Regarding qcc compilation flags to generate dependency files  
Hi All,

please help me in generating dependecy files using proper flags with qcc
compiler.

why the -M flag is not working as expected with qcc ?

what is the flag in qcc similar to gcc's -M.

The compiler version, I am using is 4.2.4,gcc_ntox86        (default).

The problem is, if I compile simple "hello world" program using qcc
qcc -M -o hello hello.c is generating an executable ( not understandalbe)
file

but gcc -M -o hello.dep hello.c is generating proper dependency file as
follows

hello.o: hello.c /usr/qnx640/target/qnx6/usr/include/stdio.h \
  /usr/qnx640/target/qnx6/usr/include/sys/platform.h \
  /usr/qnx640/target/qnx6/usr/include/sys/compiler_gnu.h \
  /usr/qnx640/target/qnx6/usr/include/sys/cdefs.h \
  /usr/qnx640/target/qnx6/usr/include/x86/platform.h \
  /usr/qnx640/target/qnx6/usr/include/_pack64.h \
  /usr/qnx640/target/qnx6/usr/include/sys/target_nto.h \
  /usr/qnx640/target/qnx6/usr/include/_packpop.h
~
Please help in this regard.

Thanks,
Ramakrishna.