[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[fol] Re: gcc コンパイルオプションについて


In article <b0drn6$n0b$1 _at_ news512.nifty.com>,
	<kounoike _at_ mbh.nifty.com> writes:

>> CFLAGS = -Dhoge=\"hello\"
>> で行きませんか?

>なるほど,理由はよく分かりませんが,バッチリです。(どこにそんなこと書いてあ
>るんだろう?。)

シェルの man ページに書かれているはずです。RedHat 7.3 では、

$ man bash
・・・
QUOTING
・・・
       A non-quoted backslash (\) is the  escape  character.   It
       preserves  the  literal  value  of the next character that
       follows, with the exception of <newline>.  If a \<newline>

同様に、

CFLAGS = -Dhoge='"hello"'

でも OK です。
--
片山@PFU

この情報があなたの探していたものかどうか選択してください。
yes/まさにこれだ!   no/違うなぁ   part/一部見つかった   try/これで試してみる

あなたが探していた情報はどのようなことか、ご自由に記入下さい。特に「まさにこれだ!」と言う場合は記入をお願いします。
例:「複数のマシンからCATV経由でipmasqueradeを利用してWebを参照したい場合の設定について」
Follow-Ups: References: