compiling project

This is a discussion on compiling project within the C++ Programming forums, part of the General Programming Boards category; When I compile my project, should I use Multi-threaded runtime library or Multi-threaded dll runtime library ? I use MSVC ...

  1. #1
    l2u
    l2u is offline
    Registered User
    Join Date
    May 2006
    Posts
    630

    compiling project

    When I compile my project, should I use Multi-threaded runtime library or Multi-threaded dll runtime library?

    I use MSVC 2005.

    Is it true, if I dont use Multithreaded runtime library, my application wont work on older systems?
    The exe will be like 100KBs bigger (release mode).

    Thanks for help

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,687
    Well you only need the MT library (either version) if you actually use multiple threads in your program. If you don't, then use the single threaded library.

    Link with the DLL if you want a smaller executable, and to benefit from "improvements" to the DLL which might happen over time.

    Link with the .lib if you're concerned about "regressions" to the DLL which might happen over time.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    7,340
    Also, if you link to the dll, you may have to distribute the dll with your application.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Open-source Game Project
    By Glorfindel in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 03-24-2009, 01:12 AM
  2. Project Varia recruiting.
    By Raigne in forum Projects and Job Recruitment
    Replies: 0
    Last Post: 10-12-2008, 03:15 PM
  3. HELP! 1st Project!
    By Zionstorm in forum C++ Programming
    Replies: 3
    Last Post: 09-15-2008, 09:36 AM
  4. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM
  5. Compiling assembly code into project
    By knutso in forum C Programming
    Replies: 2
    Last Post: 02-26-2002, 02:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21