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

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

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

c# - Using the generic type 'System.Collections.Generic.List<T>' requires 1 type arguments -