|
From: Tatsuro M. <tma...@ya...> - 2014-03-08 01:29:55
|
Hello Prof. Takeno introduced a new feature 'import' on the gnuplot threads in Japan On the ChangeLog, 2014-02-27, I have found the description. I have read 'help import' and explanation for 'import' for gnuplot.pdf created from the recent cvs source. However I cannot find out how to prepare the C or C++ codes. Are there any instruction or sample code to write import func(x) in C(++)? Regards Tatsuro |
|
From: Ethan A M. <sf...@us...> - 2014-03-08 01:36:15
|
On Saturday, 08 March, 2014 10:29:44 Tatsuro MATSUOKA wrote: > Hello > > Prof. Takeno introduced a new feature 'import' on the gnuplot threads in Japan > > On the ChangeLog, 2014-02-27, I have found the description. > > I have read 'help import' and explanation for 'import' for gnuplot.pdf created from the recent cvs source. > > However I cannot find out how to prepare the C or C++ codes. > Are there any instruction or sample code to write import func(x) in C(++)? Yes. The directory .../demo/plugin/ contains sample code, a Makefile, and a demo (plugin.dem) that exercises the sample code. Ethan |
|
From: Tatsuro M. <tma...@ya...> - 2014-03-08 02:24:55
|
--- On Sat, 2014/3/8, Ethan A Merritt wrote: > On Saturday, 08 March, 2014 10:29:44 Tatsuro MATSUOKA wrote: > > Hello > > > > Prof. Takeno introduced a new feature 'import' on the gnuplot threads in Japan > > > > On the ChangeLog, 2014-02-27, I have found the description. > > > > I have read 'help import' and explanation for 'import' for gnuplot.pdf created from the recent cvs source. > > > > However I cannot find out how to prepare the C or C++ codes. > > Are there any instruction or sample code to write import func(x) in C(++)? > > Yes. > The directory .../demo/plugin/ contains sample code, a Makefile, and > a demo (plugin.dem) that exercises the sample code. > > Ethan Thanks! I will try later. Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2014-03-08 06:32:15
|
--- On Sat, 2014/3/8, Tatsuro MATSUOKA wrote: > --- On Sat, 2014/3/8, Ethan A Merritt wrote: > > On Saturday, 08 March, 2014 10:29:44 Tatsuro MATSUOKA wrote: > > > Hello > > > > > > Prof. Takeno introduced a new feature 'import' on the gnuplot threads in Japan > > > > > > On the ChangeLog, 2014-02-27, I have found the description. > > > > > > I have read 'help import' and explanation for 'import' for gnuplot.pdf created from the recent cvs source. > > > > > > However I cannot find out how to prepare the C or C++ codes. > > > Are there any instruction or sample code to write import func(x) in C(++)? > > > > Yes. > > The directory .../demo/plugin/ contains sample code, a Makefile, and > > a demo (plugin.dem) that exercises the sample code. > > > > Ethan > > Thanks! I will try later. > > Tatsuro > I have excute build check Cygwin_x64 After make check, I have checked demo/plugin/. demo_plugin.so.exe is created. However, demo_plugin.dll is needed for Cygwin. So I have created demo_plugin.dll by gcc -shared -o demo_plugin.dll demo_plugin_so-demo_plugin.o With demo_plugin.dll, plugin.dem test went well. Thanks Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2014-03-08 10:40:14
|
--- On Sat, 2014/3/8, Tatsuro MATSUOKA wrote: > --- On Sat, 2014/3/8, Tatsuro MATSUOKA wrote: > > --- On Sat, 2014/3/8, Ethan A Merritt wrote: > > > On Saturday, 08 March, 2014 10:29:44 Tatsuro MATSUOKA wrote: > > > > Hello > > > > > > > > Prof. Takeno introduced a new feature 'import' on the gnuplot threads in Japan > > > > > > > > On the ChangeLog, 2014-02-27, I have found the description. > > > > > > > > I have read 'help import' and explanation for 'import' for gnuplot.pdf created from the recent cvs source. > > > > > > > > However I cannot find out how to prepare the C or C++ codes. > > > > Are there any instruction or sample code to write import func(x) in C(++)? > > > > > > Yes. > > > The directory .../demo/plugin/ contains sample code, a Makefile, and > > > a demo (plugin.dem) that exercises the sample code. > > > > > > Ethan > > > > Thanks! I will try later. > > > > Tatsuro > > > I have excute build check Cygwin_x64 > After make check, I have checked demo/plugin/. > > demo_plugin.so.exe is created. However, demo_plugin.dll is needed for Cygwin. > So I have created demo_plugin.dll by > > gcc -shared -o demo_plugin.dll demo_plugin_so-demo_plugin.o > > With demo_plugin.dll, plugin.dem test went well. I have renamed demo_plugin.so.exe to demo_plugin.dll. Using this file, plugin.dem test went well. Regards Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2014-03-11 05:16:37
|
Hello
I have build the recent cvs source (ChangeLog date 2014-03-10) on MinGW platform.
I would like to test import dll feature.
Different from cygwin build, Makefile was not made in demo/pluglin directory.
I tried cd to demo/pluglin directory and execute
$ automake
automake: `configure.ac' or `configure.in' is required
I could not make Makefile.
So I tried at demo/pluglin directory
$ gcc -c demo_plugin.c -I../../src
In file included from ../../src/gp_types.h:40:0,
from gnuplot_plugin.h:2,
from demo_plugin.c:14:
../../src/syscfg.h:365:23: error: two or more data types in declaration specifiers
../../src/syscfg.h:365:1: warning: useless type name in empty declaration [enabled by default]
The error
syscfg.h:365:23: error: two or more data types in declaration specifiers
seems to be critical.
Any suggestions ?
Regards
Tatsuro
|
|
From: Bastian M. <bma...@we...> - 2014-03-11 05:24:21
|
Am 11.03.2014 06:16, schrieb Tatsuro MATSUOKA: > Hello > > I have build the recent cvs source (ChangeLog date 2014-03-10) on MinGW platform. > I would like to test import dll feature. > > Different from cygwin build, Makefile was not made in demo/pluglin directory. > For the MinGW build we typically use config/mingw/Makefile, not the autotools (configure). The Makefile has support for building demo_plugin.dll. Note that you need MSYS to build. Bastian > I tried cd to demo/pluglin directory and execute > > $ automake > automake: `configure.ac' or `configure.in' is required > > I could not make Makefile. > > So I tried at demo/pluglin directory > > $ gcc -c demo_plugin.c -I../../src > In file included from ../../src/gp_types.h:40:0, > from gnuplot_plugin.h:2, > from demo_plugin.c:14: > ../../src/syscfg.h:365:23: error: two or more data types in declaration specifiers > ../../src/syscfg.h:365:1: warning: useless type name in empty declaration [enabled by default] > > The error > syscfg.h:365:23: error: two or more data types in declaration specifiers > seems to be critical. > > Any suggestions ? > > Regards > > Tatsuro > |
|
From: Tatsuro M. <tma...@ya...> - 2014-03-11 06:57:58
|
--- On Tue, 2014/3/11, Bastian Märkisch wrote: > Am 11.03.2014 06:16, schrieb Tatsuro MATSUOKA: > > Hello > > > > I have build the recent cvs source (ChangeLog date 2014-03-10) on MinGW platform. > > I would like to test import dll feature. > > > > Different from cygwin build, Makefile was not made in demo/pluglin directory. > > > > For the MinGW build we typically use config/mingw/Makefile, not the > autotools (configure). The Makefile has support for building > demo_plugin.dll. Note that you need MSYS to build. > >>Note that you need MSYS to build. I remove -rdynamic -fPIC flags from Makefile.am and execute ./prepare and ./configure script. After that I enter demo/plugin and execute 'make'. The file "demo_plugin.so.exe" was produced and was renamed as "demo_plugin.dll". test of plugin.dem worked correctly!! I have gotten gcc command lines. From next time I can use these commands. Thanks! Tatsuro |
|
From: Tatsuro M. <tma...@ya...> - 2014-03-11 07:15:19
|
--- On Tue, 2014/3/11, Tatsuro MATSUOKA wrote: > --- On Tue, 2014/3/11, Bastian Märkisch wrote: > > > Am 11.03.2014 06:16, schrieb Tatsuro MATSUOKA: > > > Hello > > > > > > I have build the recent cvs source (ChangeLog date 2014-03-10) on MinGW platform. > > > I would like to test import dll feature. > > > > > > Different from cygwin build, Makefile was not made in demo/pluglin directory. > > > > > > > For the MinGW build we typically use config/mingw/Makefile, not the > > autotools (configure). The Makefile has support for building > > demo_plugin.dll. Note that you need MSYS to build. > > > > >>Note that you need MSYS to build. > > I remove -rdynamic -fPIC flags from Makefile.am and execute ./prepare and ./configure script. After that I enter demo/plugin and execute 'make'. > > The file "demo_plugin.so.exe" was produced and was renamed as "demo_plugin.dll". > > test of plugin.dem worked correctly!! > > I have gotten gcc command lines. From next time I can use these commands. > > Thanks! > > Tatsuro > After some consideration, the below command is enough to build dll. gcc -shared -o demo_plugin.dll demo_plugin.c -DHAVE_CONFIG_H -I. -I../../src -I../../config/mingw |