shell - passing string value in GCC comand using variable -


I have to pass the string value in GCC command using the variable

something like the bottom

  gcc -dname = '' abc ''  

but it will come in "ABC" anime variable like

  name1 = ABC  

please tell this work

  GCC-Demon = $ name1  

if you use Are working here

  $ name1 = abc $ cat main.cpp NAME $ gcc -DNAME = \ "$ name1 \" -E main CPP "ABC"  

If you are using a different shell, i.e. zsh or fish, then you can include information and man pages that tell you how variable replacements work for them.


Comments

Popular posts from this blog

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

Send innerHTML text in URL in JSP -