473,785 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Guidelines to using Libraries

Dear all,

I want to be able to use C++ libraries(maybe this is too abstract). Is
there a source or tutorial giving the general details on the use of C++
libraries. (Sth like, to use all C++ libraries you have to complete
these common steps and make the following configurations according to
your OS.)

I am looking for a step-by-step introduction to library usage. I also
checked out the boost web page which seemed to me a bit confusing.

Your help is very much appreciated.

Regards,

May 25 '06 #1
4 1635
* utab:
Dear all,

I want to be able to use C++ libraries(maybe this is too abstract). Is
there a source or tutorial giving the general details on the use of C++
libraries. (Sth like, to use all C++ libraries you have to complete
these common steps and make the following configurations according to
your OS.)

I am looking for a step-by-step introduction to library usage. I also
checked out the boost web page which seemed to me a bit confusing.

Your help is very much appreciated.


You may find the following useful, even though it's written for Windows
and you're on Linux (sadly, library usage in C++ is system dependent):

<url: http://home.no.net/dubjai/win32cpptut/html/w32cpptut_01.ht ml>
chapter 1.5.

To read it on Linux you can use e.g. Open Office, which is free.

--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
May 25 '06 #2
utab wrote:
Dear all,

I want to be able to use C++ libraries(maybe this is too abstract). Is
there a source or tutorial giving the general details on the use of C++
libraries. (Sth like, to use all C++ libraries you have to complete
these common steps and make the following configurations according to
your OS.)

I am looking for a step-by-step introduction to library usage. I also
checked out the boost web page which seemed to me a bit confusing.

Your help is very much appreciated.

Regards,


Well, some libraries will be entirely contained in header files, so all
you have to do is #include the right ones. Others will have file(s) to
be statically or dynamically linked in as well, but the procedures for
linking do not concern the C++ language so much as your particular
development environment (Visual Studio, Eclipse, text editor +
Makefile, etc.). So you should ask about that on the most appropriate
forum, which is not this one.

As for Boost, follow their instructions
(http://boost.org/more/getting_started.html). If you have trouble, ask
for help on the Boost user's list
(http://boost.org/more/mailing_lists.htm#users) since the details of
configuring and installing Boost for particular environments are also
off-topic here, methinks.

Cheers! --M

May 25 '06 #3
Boost was only an example of my discussion. So For example to use the
standard library, we include the necessary header files and using
directives and g++(since I am on linux) links the library automatically
and the executable is created.

My question was on the general compilation and linkage steps of a
library since I have never used such.

Regards,

May 25 '06 #4
utab wrote:
Boost was only an example of my discussion. [ ... ] My question was on the general compilation and linkage steps of a
library since I have never used such.


But my comments apply to all non-standard libraries: seek help in a
more appropriate group or from the library vendor directly since this
forum is concerned with the standard C++ language and libraries, not
configuring a particular development environment or writing a Makefile.
See the FAQ for what is on-topic here and for a list of other possible
newsgroups you could try:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

PS, Please quote the message you are responding to. It makes it easier
for all to follow the conversation. (From Google Groups, click "show
options" and then "Reply" in the revealed header to automatically quote
messages.)

May 25 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

61
669
by: Pete Vidler | last post by:
Hi Folks, I'm wondering if there is a compilation of C++ guidelines out there anywhere. Here are some of the ones I've picked up so far (as examples): - Functions should fit on one screen, from various sources. - Non-leaf classes should be abstract (have pure virtual methods), from More Effective C++, Item 33.
16
2407
by: E. Robert Tisdale | last post by:
C++ Programming Style Guidelines http://geosoft.no/development/cppstyle.html I think that these guidelines are almost *all* wrong. For example: 11. Private class variables should have underscore suffix. class SomeClass { private:
1
10923
by: Steven T. Hatton | last post by:
I think Danny was one cup of coffee shy of full consciousness when he wrote this, but the gist of it makes sens to me: "C++ Project Organization Guidelines Last updated May 26, 2005. http://www.informit.com/guides/content.asp?g=cplusplus&seqNum=175 Last week's article about inline functions subtly brought into the limelight another important issue, namely how to organize the files of a typical C++ program, or project. This week I...
39
2221
by: jamilur_rahman | last post by:
What is the BIG difference between checking the "if(expression)" in A and B ? I'm used to with style A, "if(0==a)", but my peer reviewer likes style B, how can I defend myself to stay with style A ? style A: .... .... int a = 1; if(0==a) {
3
2377
by: John Salerno | last post by:
Does Microsoft have any naming guidelines for variables? I've been reading their guidelines for just about every other type (methods, parameters, properties, etc.) but nothing about variables. Are variables treated the same as parameters (i.e., camel case)? I notice that Hungarian notation is being done away with. Also, is it good practice to use an underscore to begin the name of a field? I've seen that, and it seems like a good idea,...
1
1187
by: Will | last post by:
Our shop has 6 .Net developers, most of our work to date has been one developer on a project at a time, occasionally 2 for brief periods of time. We have souce control (SourceGear) and love what it does for us. We have a mixture of C# and Vb code (some prefer one versus the other, all of us feel comfortable looking over either when needed), but we are leaning more toward C# as time goes on. We have a mixture of Web applications and...
8
2292
by: mrashidsaleem | last post by:
Can anyone guide me what is wrong with the naming conventions suggested below? I know that this is not recommended by many (including Microsoft) but I need to know what exactly is the rationale behind going for a different convention in .NET. The recommendations do make sense (to me, at least but I may be wrong and would like someone to correct me). Scope Prefixes Member Variable Prefix: Most of the people still use (and like the idea...
12
1312
by: =?Utf-8?B?VG9tKys7?= | last post by:
I have been reading "Design Guidelines for Developing Class Libraries" at http://msdn2.microsoft.com/en-us/library/ms229042.aspx. Is it correct that they are recommending camelCase for private member variables? Doesn't this create problems for case-insensitive languages when we create a private member variable along with properties? For example Private thisIsAVariable As Int32
2
1321
by: shapper | last post by:
Hello, Where can I find some information on .NET naming conventions? For example, controls prefixes, properties, etc? And is it normal to name variables with prefixes? Dim sName As String
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10325
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10148
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.