Thread: Include all libraries in Visual studio

  1. #1
    Registered User
    Join Date
    May 2012

    Include all libraries in Visual studio


    Is there a way to include all the provided libraries in Visual studio (2008 SP1) for a VC++ code so that when the code gets compiled, it can pick up whichever required. It is OK if compilation time increases etc.


    Emma Good.
    Last edited by emmagood; 05-17-2012 at 11:35 PM.

  2. #2
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    New Zealand
    Yes there is. You could manually include every single one. No I'm not going to explain how.
    It's not a good idea as it has a larger impact that just compile times. Runtimes and memory usage are also affected etc.

    As a programmer you'll need to learn to look up stuff when you get a linker error, and see which libs to add to your project. It's pretty well documented on MSDN.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  3. #3
    Registered User
    Join Date
    May 2012
    Hi iMalc,

    Thanks for the reply. Yes, it dosnt seem to be a good programming practice. But, as of now I am trying to compile an existing code (written by someone). Previously I ran into errors where the header files were not included, now I am running into error where nested header files are not included / not getting the resources / need some more header files. For eg:

    c:\program files\labpacks\visual c++\include\vclobjects.h(262) : error C3861: 'wcstombs_s': identifier not found

    whereas the listed #includes dosnt call vlcobjects.h; maybe some of the other header file(s) is calling the vlobjects.h etc.

    Anyways, thanks,
    Emma Good

  4. #4
    Join Date
    Dec 2007
    Why did you open another thread on the same GD issue???

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Agrees with r2r, closed.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Where to include path of header files in Visual Studio
    By emmagood in forum C++ Programming
    Replies: 15
    Last Post: 05-16-2012, 11:53 PM
  2. Trying to include a libary in Visual Studio
    By Swerve in forum C++ Programming
    Replies: 1
    Last Post: 02-21-2010, 09:35 PM
  3. Visual Studio Including Winsock Libraries
    By doc in forum C Programming
    Replies: 2
    Last Post: 12-02-2009, 02:12 PM
  4. Replies: 1
    Last Post: 05-26-2004, 09:59 AM