Building Win32 RePlugin

Joshua 'Schwa' Gargus schwa at cc.gatech.edu
Mon Mar 3 18:19:05 UTC 2003


Hi PhiHo,

The dll that you provided didn't work, but your suggestion to define
STATIC did.

Thanks,
Joshua


On Sun, Mar 02, 2003 at 04:51:15PM -0500, PhiHo Hoang wrote:
> Hi Joshua,
> 
> > Looking back through the archives, I saw that PhiHo also encoutered
> > the _imp__prce_malloc, but couldn't find out how he rectified the
> > situation.  Any ideas?
> 
>     #define STATIC
> 
>     was added to pcre.h above:
> 
> /* Win32 uses DLL by default */
> #ifdef _WIN32
> # ifdef STATIC
> #  define PCRE_DL_IMPORT
> # else
> #  define PCRE_DL_IMPORT __declspec(dllimport)
> # endif
> #else
> # define PCRE_DL_IMPORT
> #endif
> 
>     You might want to try this:
> 
>         http://www.smallsqueak.net/SqM/SqMOM/RePlugin.dll.gz
> 
>     to see if it works for you.
> 
>     Cheers,
> 
>     PhiHo.
> 
> 
> ----- Original Message ----- 
> From: "Joshua 'Schwa' Gargus" <schwa at cc.gatech.edu>
> To: "Squeak Mailing List" <squeak-dev at lists.squeakfoundation.org>
> Sent: Sunday, March 02, 2003 2:53 PM
> Subject: Building Win32 RePlugin
> 
> 
> > After failing last night to successfully use the REPLUGIN.DLL downloaded from
> > Andrew's site, I tried to build my own.  I am using the same 3.4-5170 image and
> > source tree that I have successfully built other VMs and plugins from.  I'm
> > using Andreas' Win32 toolchain.
> >
> > I downloaded the RePlugin package from SqueakMap and added RePlugin to the list
> > of external plugins, and generated the external plugins.  The build goes fine until
> > the end:
> >
> >
> > dlltool \
> >         --output-def ./RePlugin.def \
> >         --output-exp ./RePlugin.exp \
> >         --output-lib ./RePlugin.lib \
> >         RePlugin.o chartables.o get.o pcre.o study.o
> > dllwrap -mwindows \
> >         -def ./RePlugin.def \
> >         -o   ./RePlugin.dll \
> >         -lddraw -lopengl32 -lwsock32 -lcomdlg32 -lole32 -lwinmm -luser32 -lgdi32 -lkernel32 -lcrtd
> ll \
> >         ./RePlugin.exp \
> >         RePlugin.o chartables.o get.o pcre.o study.o
> > pcre.o: In function `escapes':
> > //C/Documents and Settings/localadmin/My
> Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/pcre.c(.data+0x34): multiple
> definition of `pcre_malloc'
> > RePlugin.o(.data+0x0):RePlugin.c: first defined here
> > pcre.o: In function `escapes':
> > //C/Documents and Settings/localadmin/My
> Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/pcre.c(.data+0x38): multiple
> definition of `pcre_free'
> > RePlugin.o(.data+0x4):RePlugin.c: first defined here
> > get.o: In function `pcre_free_substring':
> > //C/Documents and Settings/localadmin/My
> Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/get.c:224: undefined reference
> to `_imp__pcre_free'
> > get.o: In function `pcre_free_substring_list':
> > //C/Documents and Settings/localadmin/My
> Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/get.c:160: undefined reference
> to `_imp__pcre_free'
> > get.o: In function `pcre_get_substring':
> > //C/Documents and Settings/localadmin/My
> Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/get.c:200: undefined reference
> to `_imp__pcre_malloc'
> > get.o: In function `pcre_get_substring_list':
> > //C/Documents and Settings/localadmin/My
> Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/get.c:122: undefined reference
> to `_imp__pcre_malloc'
> > study.o: In function `pcre_study':
> > //C/Documents and Settings/localadmin/My
> Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin/study.c:387: undefined
> reference to `_imp__pcre_malloc'
> > dllwrap: gcc exited with status 1
> > make[1]: *** [makedll] Error 1
> > make[1]: Leaving directory `C:/Documents and Settings/localadmin/My
> Documents/Squeak/VMs/src/3.4-vmmaker/platforms/win32/plugins/RePlugin'
> > make: *** [RePlugin.dll] Error 2
> >
> >
> > Looking back through the archives, I saw that PhiHo also encoutered
> > the _imp__prce_malloc, but couldn't find out how he rectified the
> > situation.  Any ideas?
> >
> > Thanks,
> > Joshua
> >
> >
> >
> 



More information about the Squeak-dev mailing list