Adding Lib;s into VC++

Started by
5 comments, last by TechnoOrganics 21 years, 11 months ago
LOL ok iv read Visual C++ 6.0 in 24hrs and starting Tricks of the WIndows Game Programming Gurus.. neither explain how to add Lib''s from DX to VC++ lol so here a newbish question which should be easy to answer ----------------------------- Im a Noob but i am willing to learn -----------------------------
-----------------------------Im a Noob but i am willing to learn-----------------------------
Advertisement
Just add them into your project.

---------------------------------------------------------------------------------------
Before I couldn''t spell engineer, now I are one.
---------------------------------------------------------------------------------------Before I couldn't spell engineer, now I are one.
read tips and tricks more carefully. The beginning talks about how to set up VC++ with the directX libs.

[edited by - tenball on May 7, 2002 9:06:57 PM]
VC++ project-settings-link-(category)general, add your libs there.
The sky is the limit !
In general, there are two ways to add static library archives to projects using MSVC:
  1. In-code:
    #pragma comment( lib, "libfile.lib" )


  2. Project Settings:
    Open the Project Settings dialog, select the appropriate configuration (Debug, Release, All Configs or any custom/alternate platform configs you may have), click the Link tab and type the .lib file name in the list of files to be linked in (I typically just add it to the end). This requires that the .lib file be in one of the directories specified in your Tools->Options...->Directories (LIB option) dialog box. If it isn''t, either add it or see the next paragraph.

    In the Project Settings dialog box, on the Link tab, select Input from the drop-down box. There, you can type in the name of the .lib file as well as any additional paths in which to search for .lib files (separated by semicolons).


Hope that helped.

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ ]
[ MS RTFM [MSDN] | SGI STL Docs | Boost ]
[ Google! | Asking Smart Questions | Jargon File ]
Thanks to Kylotan for the idea!
hehe i wish i could say it did.. which if i did go through it it propely would =p but i have found my problem in learning VC++ due to a long conversation w/ someone via icq from the board and it was that i know no syntax and classes ect. so i am going back to chapters to buy C++ for dummies and read it from front to back and hopefully learn alot!


thanks for your guys''s help and sorry i didnt close the post when i realized this.. i thought it was too far down the line to be even read...


thanks and sorry

Paul Donald
Techno Organics
http://technoorganics.netfirms.com



-----------------------------
Im a Noob but i am willing to learn
-----------------------------
-----------------------------Im a Noob but i am willing to learn-----------------------------
Easiest way to add a directory of Librars is this path..

Tools(in the menu bar) - Options - Directories.

and there you can add Include directories, Library Directories and so on.

hope i was any help

[edit]

Oops someone already said that =P

[edited by - Neko- on May 10, 2002 8:13:47 AM]
True hackers are intelligent, they have to be. Either they do really great in school because they have nothing better to do, or they don't do so well because school is terribly boring. And the ones who are bored aren't that way because they don't give a shit about learning anything. A true hacker wants to know everything. They're bored because schools teach the same dull things over and over and over, nothing new, nothing challenging.

This topic is closed to new replies.

Advertisement