This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
problems passing -DPARAM="String" from sh
- To: cygwin at sourceware dot cygnus dot com
- Subject: problems passing -DPARAM="String" from sh
- From: Gerard Blais <gblais at nuance dot com>
- Date: Tue, 15 Aug 2000 17:43:30 -0400
- Reply-to: gblais at nuance dot com
The following sh script works fine with cygnus B20 but causes an error with
the latests cygwin.
#!/bin/sh
SOURCE="-DPARAM=\"Stringfirstpart Stringsecondpart\" file.cpp"
icl $SOURCE
This simply calls the icl (intel compiler) as: icl -DPARAM="Stringfirstpart
Stringsecondpart" file.cpp
The compiler complains about Stringsecondpart" not being a valid source
file. Somehow the space contained in the string causes the compiler to see
this as two seperate parameters even though they should be seen as a single
string. It works fine if the string has no spaces in it.
Gérard Blais Software Engineer, Core Software
Tel: (514) 732-4717 Nuance Communications Ltd.
Fax: (514) 767-2337 14 Place du Commerce, Suite 200
Email: gblais@nuance.com Île-des-Soeurs, Verdun, Québec, H3E 1T5
cygcheck.out
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com