Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

fortune: cpu time/usefulness ratio too high -- core dumped.


computers / comp.graphics.apps.gnuplot / Compiling GNU Plot in Visual C++

SubjectAuthor
* Compiling GNU Plot in Visual C++Citizen Smith
`* Re: Compiling GNU Plot in Visual C++Hans-Bernhard_Bröker
 +- Re: Compiling GNU Plot in Visual C++Citizen Smith
 `- Re: Compiling GNU Plot in Visual C++Citizen Smith

1
Subject: Compiling GNU Plot in Visual C++
From: Citizen Smith
Newsgroups: comp.graphics.apps.gnuplot
Date: Wed, 27 Nov 2019 14:23 UTC
X-Received: by 2002:ac8:3094:: with SMTP id v20mr26900098qta.306.1574864624748;
Wed, 27 Nov 2019 06:23:44 -0800 (PST)
X-Received: by 2002:a05:6830:22e6:: with SMTP id t6mr4036148otc.244.1574864624448;
Wed, 27 Nov 2019 06:23:44 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no4250350qtd.0!news-out.google.com!g53ni1465qtg.0!nntp.google.com!g89no4250345qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Wed, 27 Nov 2019 06:23:44 -0800 (PST)
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.110.242.239;
posting-account=roetWwoAAACxqlbNXlJq3RfEkcYDEJjj
NNTP-Posting-Host: 81.110.242.239
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3797dcf2-cc3a-4a0f-995d-0c160e3bb666@googlegroups.com>
Subject: Compiling GNU Plot in Visual C++
From: paul.swe...@gmail.com (Citizen Smith)
Injection-Date: Wed, 27 Nov 2019 14:23:44 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
View all headers
Hi

I am learing to program in C++ and looking for a charting package to compile with my projects.  I can Compile GNU Plot using the Makefile but wish to include the source files in my project then compile in Visual C++ with my own program calling GNU Plot from within a common executable file.  I have spent an awful lot of time trying to decipher the Makefile/CMAKE but this is proving to be a huge distraction as I just want to bring GNU Plot within my project. 

If anybody has successfully set up a GNU Plot as "project" in Visual Studio could you please tell me how you did it without getting hundreds of errors/warnings?  I suspect the file hierarchy/paths is giving me problems and assignment of various libraries also but I know they are on my machine because GNU Plot compiles with the Makefile.

Any help would be grately appreciated!


Subject: Re: Compiling GNU Plot in Visual C++
From: Hans-Bernhard_Bröke
Newsgroups: comp.graphics.apps.gnuplot
Date: Thu, 28 Nov 2019 17:34 UTC
References: 1
Path: i2pn2.org!i2pn.org!weretis.net!feeder7.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail
From: HBBroe...@t-online.de (Hans-Bernhard_Bröker)
Newsgroups: comp.graphics.apps.gnuplot
Subject: Re: Compiling GNU Plot in Visual C++
Date: Thu, 28 Nov 2019 18:34:47 +0100
Lines: 19
Message-ID: <h4aepsFesuqU1@mid.dfncis.de>
References: <3797dcf2-cc3a-4a0f-995d-0c160e3bb666@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: news.dfncis.de kunvQ5M59g3DrftR7L9iyw1Tjb3JPDB1/hKVLGCjESZ8vgHGda+gVpr3ww
Cancel-Lock: sha1:SwjncmPvWbrt4U9YXqj3p2yENIk=
Autocrypt: addr=HBBroeker@t-online.de; keydata=
mQINBFu0018BEAC34KXenx8N+WV5OOk0YGkpMbnplVar2DFCNTIDEYA6d8S84mD2IB6/R29G
gmE0NNKwt5C0vFvETkF1K8iZlI6TxzmtmTMqQk5lGWnxbv02EsSJu4drIwQssCfYoZ0y3XhL
gUlZa2PrLvrEDI4HHeYCd87xagdsDX2+fBjMMBqnvYgyAU5UOhhG+R6s/8UtHlzyeJTLYXQQ
zYcOFpcX3Q7BsDQukVAhh8RW2ss44T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4Sw1JQmE02/4xa
02kfokDzlNF148WCyg5k+0rE+XkAFbVjy4TWHS2IYa9agSQnWc8GXV4jjDCeRMwZKOJq0Bux
ExlUPGmviALMovHnE0V4RhheTPbaIIrvErL0vNZ/C5Ef69ciy/09ilyigYv5Kf9P59T7sv3E
O/Jx+VWs2ZHTmIOI5RggTZfh1jqjHVf/DDGcwDLWFwEtefg8jO8CnF/K3XGVdjRYBOnKL4ao
tqDMPJrR5d0JKgzxrCCkp76fz9pZB60XhZaEM8iZkUknulrSOVS+RQfatpLtc6I4laf39mNi
gJAx91jvpaTwvVMGZIcA3S+710LmNl+X+lWyymh9srSllmrjmCM=
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.2.2
In-Reply-To: <3797dcf2-cc3a-4a0f-995d-0c160e3bb666@googlegroups.com>
Content-Language: de-DE
View all headers
Am 27.11.2019 um 15:23 schrieb Citizen Smith:

I am learing to program in C++ and looking for a charting package to
compile with my projects.  I can Compile GNU Plot using the Makefile
but wish to include the source files in my project then compile in
Visual C++ with my own program calling GNU Plot from within a common
executable file.

You really don't want to do that.  Particularly not while you're still
learning the programming language.

gnuplot is already equipped to be run from the outside, by sending it
commands from another program.  You don't need to include it into your
own program; you don't even have to compile gnuplot yourself, as this
works just fine with the ready-made executables.

The key is the concept of a "pipe", which you use to send commands from
your own program to gnuplot.  Look up "popen" in your compiler's library
documentation.


Subject: Re: Compiling GNU Plot in Visual C++
From: Citizen Smith
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 6 Dec 2019 19:30 UTC
References: 1 2
X-Received: by 2002:a37:bf82:: with SMTP id p124mr15714482qkf.337.1575660646245;
Fri, 06 Dec 2019 11:30:46 -0800 (PST)
X-Received: by 2002:a05:6830:1555:: with SMTP id l21mr9423795otp.41.1575660645928;
Fri, 06 Dec 2019 11:30:45 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!g89no651690qtd.0!news-out.google.com!w29ni306qtc.0!nntp.google.com!g89no651678qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 6 Dec 2019 11:30:45 -0800 (PST)
In-Reply-To: <h4aepsFesuqU1@mid.dfncis.de>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=128.76.37.163;
posting-account=roetWwoAAACxqlbNXlJq3RfEkcYDEJjj
NNTP-Posting-Host: 128.76.37.163
References: <3797dcf2-cc3a-4a0f-995d-0c160e3bb666@googlegroups.com> <h4aepsFesuqU1@mid.dfncis.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <988a2e2a-e1ed-483a-9e66-a8d79df7e1cf@googlegroups.com>
Subject: Re: Compiling GNU Plot in Visual C++
From: paul.swe...@gmail.com (Citizen Smith)
Injection-Date: Fri, 06 Dec 2019 19:30:46 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 24
View all headers
On Thursday, November 28, 2019 at 5:34:53 PM UTC, Hans-Bernhard Bröker wrote:
Am 27.11.2019 um 15:23 schrieb Citizen Smith:

I am learing to program in C++ and looking for a charting package to
compile with my projects.  I can Compile GNU Plot using the Makefile
but wish to include the source files in my project then compile in
Visual C++ with my own program calling GNU Plot from within a common
executable file.

You really don't want to do that.  Particularly not while you're still
learning the programming language.

gnuplot is already equipped to be run from the outside, by sending it
commands from another program.  You don't need to include it into your
own program; you don't even have to compile gnuplot yourself, as this
works just fine with the ready-made executables.

The key is the concept of a "pipe", which you use to send commands from
your own program to gnuplot.  Look up "popen" in your compiler's library
documentation.

OK thanks Hans - I appreciate your reply!

Cheers, Paul


Subject: Re: Compiling GNU Plot in Visual C++
From: Citizen Smith
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 6 Dec 2019 19:36 UTC
References: 1 2
X-Received: by 2002:a05:620a:2193:: with SMTP id g19mr15992567qka.317.1575661012890;
Fri, 06 Dec 2019 11:36:52 -0800 (PST)
X-Received: by 2002:aca:1903:: with SMTP id l3mr13764052oii.16.1575661012739;
Fri, 06 Dec 2019 11:36:52 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!g89no667445qtd.0!news-out.google.com!w29ni306qtc.0!nntp.google.com!g89no667429qtd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups: comp.graphics.apps.gnuplot
Date: Fri, 6 Dec 2019 11:36:52 -0800 (PST)
In-Reply-To: <h4aepsFesuqU1@mid.dfncis.de>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=128.76.37.163;
posting-account=roetWwoAAACxqlbNXlJq3RfEkcYDEJjj
NNTP-Posting-Host: 128.76.37.163
References: <3797dcf2-cc3a-4a0f-995d-0c160e3bb666@googlegroups.com> <h4aepsFesuqU1@mid.dfncis.de>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <342f2aac-bb20-49d3-8e2c-3503d8110fda@googlegroups.com>
Subject: Re: Compiling GNU Plot in Visual C++
From: paul.swe...@gmail.com (Citizen Smith)
Injection-Date: Fri, 06 Dec 2019 19:36:52 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 31
View all headers
On Thursday, November 28, 2019 at 5:34:53 PM UTC, Hans-Bernhard Bröker wrote:
Am 27.11.2019 um 15:23 schrieb Citizen Smith:

I am learing to program in C++ and looking for a charting package to
compile with my projects.  I can Compile GNU Plot using the Makefile
but wish to include the source files in my project then compile in
Visual C++ with my own program calling GNU Plot from within a common
executable file.

You really don't want to do that.  Particularly not while you're still
learning the programming language.

gnuplot is already equipped to be run from the outside, by sending it
commands from another program.  You don't need to include it into your
own program; you don't even have to compile gnuplot yourself, as this
works just fine with the ready-made executables.

The key is the concept of a "pipe", which you use to send commands from
your own program to gnuplot.  Look up "popen" in your compiler's library
documentation.

OK Hans-Bernhard

I appreciate what you are saying but it would be nice to get sorted for the long term.  Considering how many people start out on Visual Studio, it would help an awful lot of people out if a GNUPlot Solution file were available.  Could this be provided in future?

I appreciate your reply - thanks a lot!

Cheers, Paul


1
rocksolid light 0.7.2
clearneti2ptor