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# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

Registering an Interceptor For All Interface Implementaions in Castle Windsor -