Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

way to dump c++ code as chunk based on sertain commands in c++

24 views
Skip to first unread message

kushal bhattacharya

unread,
Aug 17, 2017, 1:58:32 AM8/17/17
to
Hi,
Is there any c++ library as such third party or built in, that dumps set of c++ code based on certain command from the main c++ program into a file (which would make a fresh c++ program by dumping c++ code based on commands passed from the main c++ program)?
Thanks

Alf P. Steinbach

unread,
Aug 17, 2017, 2:27:46 AM8/17/17
to
That's easy to write, unless you have some really special requirements.

The main problem is if you want to automate a compiler invocation, since
there's no standard for that.

You can require the user to provide a script for that.


Cheers & hth.,

- Alf

kushal bhattacharya

unread,
Aug 17, 2017, 2:30:43 AM8/17/17
to
Could you please provide me some sample code about how to do this :) ?

kushal bhattacharya

unread,
Aug 17, 2017, 2:35:56 AM8/17/17
to
On Thursday, August 17, 2017 at 11:57:46 AM UTC+5:30, Alf P. Steinbach wrote:
suppose from the main c++ program i pass command to write code for listening sockets then the code for listening socket would be written to the c++ program file and like this the code would be written based on the command i pass from the main c++ program

kushal bhattacharya

unread,
Aug 17, 2017, 5:00:15 AM8/17/17
to
Finally, I am dumping those set of codes by calling that required bash script from the main c++ program which has those set of codes to be written on the fresh
c++ program
0 new messages