labrary c++

3 views
Skip to first unread message

Bat Night

unread,
Jul 27, 2011, 5:14:26 AM7/27/11
to advprg_892
salam be hame
yek soal fani:
man mikham az yek library c++ estefade konam ke oon library tooye c++ mojood nist
che kar konam
bayad download konam?

--


Ali Samimi

unread,
Jul 27, 2011, 2:20:01 PM7/27/11
to advpr...@googlegroups.com


سلام این برای ویژوال استودیو است
مسیر سرراستی داره ، بخونید اگه حل نشد بیشتر توضیح بدم
کل قضیه اینه که شما باید یه رفرنس از کتابخونه خارجی خودتون به کامپایلر بدید

این پایین نحوه ی اضافه کردن یه رفرنس جدیده ...


To use the functionality from the static library in the application

  1. After you create a console application, the wizard creates an empty program for you. The name for the source file will be the same as the name that you chose for the project earlier. In this example, it is named MyExecRefsLib.cpp.

  2. You must reference the static library you created to use its math routines. To do this, select References from the Project menu. From the MyExecRefsLib Property Pages dialog box, expand the Common Properties node and then click Add New Reference. For more information about the References dialog box, see Framework and References, Common Properties, <Projectname> Property Pages Dialog Box.

  3. The Add Reference dialog box is displayed. The Projects tab lists the projects in the current solution and any libraries that you can reference. On the Projects tab, select MathFuncsLib. Click OK.

  4. To reference the YOURLIB.h header file, you must modify the include directories path. In the MyExecRefsLib Property Pages dialog box, expand the Configuration Properties node, expand the C/C++ node, and then select General. In the Additional Include Directories property value, type the path of the MathFuncsLib directory or browse for it.

    To browse for the directory path, in the property value drop-down list box, click Edit. In the Additional Include Directories dialog box, in the text box, select a blank line and then click the ellipsis button () at the end of the line. In the Select Directory dialog box, select the YOURLIB directory and then click Select Folder to save your selection and close the dialog box. In the Additional Include Directories dialog box, click OK.


Ref : http://msdn.microsoft.com/en-us/library/ms235627%28loband%29.aspx


Reply all
Reply to author
Forward
0 new messages