473,394 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 1613
* 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.html>
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
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,...
16
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...
1
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....
39
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...
3
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...
1
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...
8
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...
12
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...
2
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
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...
0
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...

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.