OK I have a work-around to build a V8 DLL using MinGW.

The problem is that in order to build the DLL it needs to link with the
libraries winnm and ws2_32.  For some reason, when using gcc these are not
automatically linked in so I forced it to use them by modifying the
SConstruct file like this:

In the LIBRARY_FLAGS section under 'os:win32', simply add this line:

      'LIBS': ['winmm', 'ws2_32'],
Then build with "scons toolchain=gcc library=shared" and it will build
without errors.

There is probably a more "elegant" or "correct" way to modify the scons
files or pass a command line argument but this will at least get you going.

HTH,

-Qu0ll
On Tue, May 5, 2009 at 5:20 PM, Qu0ll <[email protected]> wrote:

> Sorry for the delay.
>
> Yes, I get link errors too when I build a shared library.  These are the
> same link errors I get if I try to link the Hello World example without
> including additional libraries ws2_32, wsock32 and winmm.  To resolve this
> it's probably just as simple as supplying command line options to scons to
> link with these libraries but I don't know scons well enough to tell you how
> to do this.
>
> Does anyone know how to supply additional dependencies to scons?
>
> Thanks,
>
> -Qu0ll
>
>   On Mon, May 4, 2009 at 11:21 PM, TechnoMancer <[email protected]> wrote:
>
>>
>> sorry its toolchain=gcc
>>
>> On May 5, 12:57 am, TechnoMancer <[email protected]> wrote:
>> > scons library=shared toolset=gcc
>> > i dont think the latter is needed but anyway
>> >
>> > On May 5, 12:55 am, Qu0ll <[email protected]> wrote:
>> >
>> > > Yes, I could try it out for you if you tell me what command line
>> options or
>> > > SCons options you are using to specify a shared build.
>> >
>> > > On Mon, May 4, 2009 at 10:52 PM, TechnoMancer <[email protected]>
>> wrote:
>> >
>> > > > can you try?
>> >
>> > > > On May 5, 12:46 am, Qu0ll <[email protected]> wrote:
>> > > > > Sorry, my mistake - I built a static library only - I haven't
>> tried to
>> > > > build
>> > > > > a DLL.
>> >
>> > > >  > On Mon, May 4, 2009 at 10:40 PM, TechnoMancer <[email protected]>
>> wrote:
>> >
>> > > > > > how many files did you have to change?
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to