473,473 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Boost Compilation

I'm trying to figure out how to use Boost? For example, I'd like to
use the is_equal function to test two strings but I can't figure out
exactly what to include or how to call the method.

http://www.boost.org/doc/html/boost/.../is_equal.html

I know the boost libraries are installed.
Feb 18 '08 #1
3 3088
On Feb 18, 2:06 pm, Travis <travis.bow...@gmail.comwrote:
I'm trying to figure out how to use Boost? For example, I'd like to
use the is_equal function to test two strings but I can't figure out
exactly what to include or how to call the method.

http://www.boost.org/doc/html/boost/.../is_equal.html

I know the boost libraries are installed.
boost::is_equal test;

std::string s1("Plop");
std::string s2("Plop");

if (test(s1,s2))
{
std::cout << "Equal\n";
}
Feb 18 '08 #2
On Feb 18, 11:06 pm, Travis <travis.bow...@gmail.comwrote:
I'm trying to figure out how to use Boost? For example, I'd like to
use the is_equal function to test two strings but I can't figure out
exactly what to include or how to call the method.

http://www.boost.org/doc/html/boost/.../is_equal.html

I know the boost libraries are installed.
Could you please give a small program and possible errors that you got
during the compile phase.

1st guess on your input is : did you set -I and -l options when
compiling the program?

If you send the above mentioned, anyone familiar with boost will
direct you to the right location,

Rgds,
Feb 19 '08 #3
On Feb 18, 2:28 pm, Martin York <Martin.YorkAma...@gmail.comwrote:
On Feb 18, 2:06 pm, Travis <travis.bow...@gmail.comwrote:
I'm trying to figure out how to use Boost? For example, I'd like to
use the is_equal function to test two strings but I can't figure out
exactly what to include or how to call the method.
http://www.boost.org/doc/html/boost/.../is_equal.html
I know the boost libraries are installed.

boost::is_equal test;

std::string s1("Plop");
std::string s2("Plop");

if (test(s1,s2))
{
std::cout << "Equal\n";

}
This worked! Thanks so much. Can you explain what doing
boost::is_equal test; does? I was trying to call
boost::is_equal(s1,s2) directly.
Feb 21 '08 #4

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

Similar topics

2
by: P G | last post by:
I hope this is on topic here. I have a problem compiling a simple example of the use of boost::bind. Please take a look at the program below. ...
205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
4
by: Marcin Kalicinski | last post by:
Hi All, Does anybody has experience compiling XML parser written with boost::spirit on gcc? The parser is based on http://spirit.sourceforge.net/repository/applications/xml.zip samples. What...
0
by: ufnuceda | last post by:
Hello everyone, I was wondering if any of you have some experience with the boost library. I am having trouble compiling code with it. Since boost is being used a lot these days I thought some...
34
by: Guch Wu | last post by:
Boost has many terrific libraries. But I want to know whether they are ready for using in real projects. Which of them are mature enough, or just only in progress?
4
by: JDJMSon | last post by:
I was wondering if someone here could help me with a problem I'm having building Python extensions with the Boost.Python library. Basically, if I have a wrapper class with something like this: ...
14
by: IndyStef | last post by:
Hi all, This is an inquiry into the usability of the boost libraries. We are a C++ shop, and have been using STL for some time now. When the question about using boost came up, some developers...
6
by: hsmit.home | last post by:
Hello, I came across a strange error and it's really been bugging me. Maybe someone else has come across this and any insight would be appreciated. What I'm trying to accomplish is using...
3
by: neino | last post by:
Hello, did anyone of You have problems using boost::regex ? That code below : #include "boost/regex.hpp" /*1*/ int main() /*2*/ { /*3*/...
4
by: Hermann | last post by:
I remember there was a trick to get the type of a anonymous variable (like a boost::lambda functor or a boost::list_of object) so you can store it in a variable. You had to generate a specific...
0
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,...
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
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...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.