Results 1 to 3 of 3

Thread: Dll size

  1. #1

    Thread Starter
    Hyperactive Member abhid's Avatar
    Join Date
    Nov 2001
    Location
    3rd rock from the sun
    Posts
    467

    Dll size

    hi,
    I have created a simple dll using MSVC. But after building, its size becomes more than 200Kb.
    I have included windows.h and <cstring>
    is there any way I can make it smaller?
    thanks in advance.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try compiling in Release mode. Unfortunately, the STL tends to inflate code a bit because it's all included mostly-inline for speed.

    You could change to using Multithreaded DLL as your compile type (Project Settings).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  3. #3

    Thread Starter
    Hyperactive Member abhid's Avatar
    Join Date
    Nov 2001
    Location
    3rd rock from the sun
    Posts
    467

    Thumbs up 28 Kb!

    thanks parksie,
    it works fine.

    abhid

Posting Permissions

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



Click Here to Expand Forum to Full Width