Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Qcc and spaces in arguments: (3 Items)
   
Qcc and spaces in arguments  
Hello,

I'm trying to manually invoke qcc with some -D options which has some spaces in it:
qcc -DTYPE="unsigned int" main.c

This works fine using gcc, but fails with the following message with qcc:
cc1: fatal error: "-DTYPE=unsigned int": Invalid argument

This is the same kind of error that appears when trying to use spaces in paths.
Am I missing something or is there a workaround?

Cheers,
Tom
RE: Qcc and spaces in arguments  
What version of qcc. 
This works for me.
qcc -DTYPE="unsigned int" test.c

as a W/A you could try

qcc -Wc,-DTYPE="unsigned int" test.c
________________________________________
From: Tom Rouillard [community-noreply@qnx.com]
Sent: Wednesday, May 29, 2019 09:35
To: general-toolchain
Subject: Qcc and spaces in arguments

Hello,

I'm trying to manually invoke qcc with some -D options which has some spaces in it:
qcc -DTYPE="unsigned int" main.c

This works fine using gcc, but fails with the following message with qcc:
cc1: fatal error: "-DTYPE=unsigned int": Invalid argument

This is the same kind of error that appears when trying to use spaces in paths.
Am I missing something or is there a workaround?

Cheers,
Tom



_______________________________________________

General
http://community.qnx.com/sf/go/post119715
To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com
Re: RE: Qcc and spaces in arguments  
Sorry I forgot about those informations:

I'm running it on Windows 10, I think I'm using QNX 7.0.0 and qcc -V returns the following:
        5.4.0,gcc_ntoaarch64le
        5.4.0,gcc_ntoaarch64le_cxx
        5.4.0,gcc_ntoaarch64le_gpp
        5.4.0,gcc_ntoarmv7le
        5.4.0,gcc_ntoarmv7le_cxx
        5.4.0,gcc_ntoarmv7le_gpp
        5.4.0,gcc_ntox86        (default)
        5.4.0,gcc_ntox86_64
        5.4.0,gcc_ntox86_64_cxx
        5.4.0,gcc_ntox86_64_gpp
        5.4.0,gcc_ntox86_cxx
        5.4.0,gcc_ntox86_gpp

Also, adding -Wc does not change the output:
qcc -Wc,-DTYPE="unsigned int" main.c
cc1: fatal error: "-DTYPE=unsigned int": Invalid argument
compilation terminated.