|
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 |