Professional Web Applications Themes

Building static ruby.exe on Win32 - Ruby

I'm trying to build my own statically linked ruby.exe using VC++. The Makefile.sub builds a dynamically linked ruby.exe that depends on msvcrt-ruby18.dll. I tried modifying the Makefile.sub to link to the static library msvcrt-ruby18-static.lib, but I still end up with what seems to be a dynamically linked ruby.exe (since it's only 4608 bytes, it _has_ to be dynamically linked). Does anyone know the recipe ? Phil...

  1. #1

    Default Building static ruby.exe on Win32

    I'm trying to build my own statically linked ruby.exe using VC++. The
    Makefile.sub builds a dynamically linked ruby.exe that depends on
    msvcrt-ruby18.dll. I tried modifying the Makefile.sub to link to the
    static library msvcrt-ruby18-static.lib, but I still end up with what
    seems to be a dynamically linked ruby.exe (since it's only 4608 bytes,
    it _has_ to be dynamically linked).

    Does anyone know the recipe ?

    Phil
    Phil Guest

  2. #2

    Default Re: Building static ruby.exe on Win32


    "Phil Tomson" <com> 

    <snip>
     

    A naive suggestion: will creating a simple "Win32 Console Application"
    project and then adding all the required C files one by one as needed
    do the job ?

    Admittedly a very tedious process, considering that there are about
    175 files. But if push comes to shove!

    Or am I completely off ?
    -- shanko


    Shashank Guest

  3. #3

    Default Re: Building static ruby.exe on Win32


    "Phil Tomson" wrote: 


    Hi Phil,

    Probably waay too late to be useful to _you, but miniruby.exe is
    an example of what you're looking for. It's built along with
    everything else by Makefile.sub.


    daz



    daz Guest

Similar Threads

  1. Win32::GUI newbie question re dynamic GUI building
    By arne thormodsen in forum PERL Modules
    Replies: 3
    Last Post: October 6th, 11:03 PM
  2. Problem building quixml on Win32
    By Berger, Daniel in forum Ruby
    Replies: 0
    Last Post: September 2nd, 02:37 PM
  3. Problem building quixml on Win32 - possible mkmf bug
    By nobu.nokada@softhome.net in forum Ruby
    Replies: 1
    Last Post: September 2nd, 07:51 AM
  4. Building Ruby 1.8 preview 3
    By Gavin Sinclair in forum Ruby
    Replies: 5
    Last Post: July 13th, 11:14 AM
  5. Building ruby/tcltk on Mac OSX
    By Mike in forum Ruby
    Replies: 0
    Last Post: July 12th, 07:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139