Like Tree1Likes
  • 1 Post By rags_to_riches

Include all libraries in Visual studio

This is a discussion on Include all libraries in Visual studio within the C++ Programming forums, part of the General Programming Boards category; Hi, Is there a way to include all the provided libraries in Visual studio (2008 SP1) for a VC++ code ...

  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    21

    Include all libraries in Visual studio

    Hi,

    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.

    Thanks,

    Emma Good.
    Last edited by emmagood; 05-18-2012 at 12:35 AM.

  2. #2
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    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
    Posts
    21
    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
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,652
    Why did you open another thread on the same GD issue???
    Salem likes this.

  5. #5
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,764
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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-17-2012, 12:53 AM
  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, 10:59 AM

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