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

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -