|
Boost Users : |
Subject: [Boost-users] help
From: Arpitha Inderjith (RBEI/EMT1) (Arpitha.Inderjith_at_[hidden])
Date: 2008-12-01 23:33:58
unsubscribe
-----Original Message-----
From: boost-users-bounces_at_[hidden] [mailto:boost-users-bounces_at_[hidden]] On Behalf Of boost-users-request_at_[hidden]
Sent: Tuesday, 2. December 2008 3:51 AM
To: boost-users_at_[hidden]
Subject: Boost-users Digest, Vol 1831, Issue 3
Send Boost-users mailing list submissions to
boost-users_at_[hidden]
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.boost.org/mailman/listinfo.cgi/boost-users
or, via email, send a message with subject or body 'help' to
boost-users-request_at_[hidden]
You can reach the person managing the list at
boost-users-owner_at_[hidden]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Boost-users digest..."
Today's Topics:
1. LNK2019 with boost::thread_group [!] (Joseph A. Marks)
2. new to Boost and ASIO (James Peng)
3. Re: LNK2019 with boost::thread_group [!] (Steven Watanabe)
4. Re: new to Boost and ASIO (Steven Watanabe)
5. Re: -Wundef warnings (Yang Zhang)
6. new user got compile error (James Peng)
7. Re: new user got compile error (Steven Watanabe)
8. Re: new to Boost and ASIO (boost001)
9. Re: new user got compile error (boost001)
----------------------------------------------------------------------
Message: 1
Date: Mon, 1 Dec 2008 09:59:17 -0800 (PST)
From: "Joseph A. Marks" <josephamarks_at_[hidden]>
Subject: [Boost-users] LNK2019 with boost::thread_group [!]
To: boost-users_at_[hidden]
Message-ID: <224720.62760.qm_at_[hidden]>
Content-Type: text/plain; charset=us-ascii
Here is what I'm trying to do:
boost::thread_group threadGroup;
for( ; port_min <= port_max; ++port_min )
{
threadGroup.add_thread(new boost::thread(boost::bind(CCUThread, port_min, strategy)));
}
I am getting the following error:
error LNK2001: unresolved external symbol "void __cdecl boost::assertion_failed(char const *,char const *,char const *,long)" (?assertion_failed_at_boost@@YAXPBD00J_at_Z)
..\bin\ccu_simulator.exe : fatal error LNK1120: 1 unresolved externals
Is this Boost-related?
I found one posting that was somewhat similar on the web, but the user found an error elsewhere, and it shed no light on the situation.
I am also getting several other LNK1120 errors that may be related to Boost.
I am converting working VS 6.0 (and occasionally 2005) code to VS 2008; this has caused this link error to appear.
I also have changed Boost from v. 1.31 to 1.36; whether this affects the above linker errors I do not know.
Any help would be appreciated.
Last time I posted about a linking error, I received no replies at all, so if someone knows something, please reply.
Thanks Again!
(-:
Sincerely,
Joseph
Joseph A. Marks
PHONE: 612-788-9658
e-mail: josephamarks_at_[hidden]
------------------------------
Message: 2
Date: Mon, 1 Dec 2008 12:28:04 -0800 (PST)
From: James Peng <oldyoungguy88_at_[hidden]>
Subject: [Boost-users] new to Boost and ASIO
To: boost-users_at_[hidden]
Message-ID: <376665.40525.qm_at_[hidden]>
Content-Type: text/plain; charset="us-ascii"
just build asio, what's the next?
Do I need the entire bin.v2 folder plus the boost folder or I only need those .a files plus the boost folder.
thanks,
James
-------------- next part --------------
HTML attachment scrubbed and removed
------------------------------
Message: 3
Date: Mon, 01 Dec 2008 13:09:08 -0800
From: Steven Watanabe <watanabesj_at_[hidden]>
Subject: Re: [Boost-users] LNK2019 with boost::thread_group [!]
To: boost-users_at_[hidden]
Message-ID: <49345274.5040002_at_[hidden]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
AMDG
Joseph A. Marks wrote:
> error LNK2001: unresolved external symbol "void __cdecl boost::assertion_failed(char const *,char const *,char const *,long)" (?assertion_failed_at_boost@@YAXPBD00J_at_Z)
> ..\bin\ccu_simulator.exe : fatal error LNK1120: 1 unresolved externals
>
> Is this Boost-related?
>
BOOST_ENABLE_ASSERT_HANDLER is defined somehow.
http://www.boost.org/libs/utility/assert.html
In Christ,
Steven Watanabe
------------------------------
Message: 4
Date: Mon, 01 Dec 2008 13:13:14 -0800
From: Steven Watanabe <watanabesj_at_[hidden]>
Subject: Re: [Boost-users] new to Boost and ASIO
To: boost-users_at_[hidden]
Message-ID: <4934536A.3040809_at_[hidden]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
AMDG
James Peng wrote:
> just build asio, what's the next?
>
> Do I need the entire bin.v2 folder plus the boost folder or I only
> need those .a files plus the boost folder.
If you used bjam install or bjam stage, you don't need anything in bin.v2.
In Christ,
Steven Watanabe
------------------------------
Message: 5
Date: Mon, 01 Dec 2008 16:48:04 -0500
From: Yang Zhang <yanghatespam_at_[hidden]>
Subject: Re: [Boost-users] -Wundef warnings
To: boost-users_at_[hidden]
Message-ID: <49345B94.60309_at_[hidden]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Yang Zhang wrote:
> John Maddock wrote:
>> Yang Zhang wrote:
>>>> When using the -Wundef flag with gcc, I get warnings like the
>>>> following:
>>>> error: "BOOST_MSVC" is not defined
>>>>
>>>> At least once before this was brought up on the lists:
>>>>
>>>> http://lists.boost.org/boost-users/2006/10/22819.php
>>>>
>>>> The suggested solution is to disable this warning. However, it
>>>> seems to make more sense to just fix this in Boost (using #if
>>>> defined(...) or #ifdef). Why not make this fix in Boost?
>>
>> Which Boost version, and which headers?
>>
>> We did fix this where BOOST_WORKAROUND is used hence the question.
>>
>> John.
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
> boost 1.35, boost/foreach.hpp
Just installed boost 1.37.
/opt/armed/include/boost/iterator/iterator_facade.hpp:117:1: warning:
"BOOST_RWSTD_VER_WORKAROUND_GUARD" is not defined
/opt/armed/include/boost/iterator/iterator_facade.hpp:117:1: warning:
"BOOST_RWSTD_VER" is not defined
/opt/armed/include/boost/iterator/iterator_adaptor.hpp:28:1: warning:
"__CODEGEARC___WORKAROUND_GUARD" is not defined
/opt/armed/include/boost/iterator/iterator_adaptor.hpp:28:1: warning:
"__CODEGEARC__" is not defined
/opt/armed/include/boost/function/function_fwd.hpp:24:7: warning:
"BOOST_STRICT_CONFIG" is not defined
-- Yang Zhang http://www.mit.edu/~y_z/ ------------------------------ Message: 6 Date: Mon, 1 Dec 2008 14:00:56 -0800 (PST) From: James Peng <oldyoungguy88_at_[hidden]> Subject: [Boost-users] new user got compile error To: boost-users_at_[hidden] Message-ID: <445366.72669.qm_at_[hidden]> Content-Type: text/plain; charset="iso-8859-7" Just started using Boost. Socket only right now. Created one small class but cannot compile. Please help. Compile error is In file included from Server.cpp:8: ./include/Server.h:26: error: ?io_service? is not a type ./include/Server.h:26: error: expected unqualified-id before ?(? token ./include/Server.h:26: error: expected `)' before ?(? token ./include/Server.h:26: error: expected ?,? or ?...? before ?(? token ./include/Server.h:26: error: expected ?;? before ?)? token ./include/Server.h:27: error: ?io_service? is not a type ----- My header file: /* * Server.h * * Created on: Dec 1, 2008 * Author: */ #ifndef SERVER_H_ #define SERVER_H_ #include <boost/asio.hpp> class Server{ public: Server(){}; ~Server(){}; void print(); protected: private: boost::asio::io_service io_service; boost::asio::ip::tcp::acceptor acceptor(io_service, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 13)); boost::asio::ip::tcp::socket asio_socket(io_service); boost::system::error_code error_read; }; #endif /* SERVER_H_ */ ----- My cpp file: /* * Server.cpp * * Created on: Dec 1, 2008 * Author: */ #include "Server.h" void Server::print(){ } -------------- next part -------------- HTML attachment scrubbed and removed ------------------------------ Message: 7 Date: Mon, 01 Dec 2008 14:11:33 -0800 From: Steven Watanabe <watanabesj_at_[hidden]> Subject: Re: [Boost-users] new user got compile error To: boost-users_at_[hidden] Message-ID: <49346115.5010009_at_[hidden]> Content-Type: text/plain; charset=ISO-8859-7; format=flowed AMDG James Peng wrote: > > class Server{ > > public: > Server(){}; > ~Server(){}; > > void print(); > protected: > > private: > > boost::asio::io_service io_service; > boost::asio::ip::tcp::acceptor acceptor(io_service, > boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 13)); > boost::asio::ip::tcp::socket asio_socket(io_service); > boost::system::error_code error_read; > > }; You can't initialize members in the class body. In Christ, Steven Watanabe ------------------------------ Message: 8 Date: Mon, 1 Dec 2008 14:14:05 -0800 (PST) From: boost001 <oldyoungguy88_at_[hidden]> Subject: Re: [Boost-users] new to Boost and ASIO To: boost-users_at_[hidden] Message-ID: <20781772.post_at_[hidden]> Content-Type: text/plain; charset=us-ascii Steven Watanabe-4 wrote: > > AMDG > > James Peng wrote: >> just build asio, what's the next? >> >> Do I need the entire bin.v2 folder plus the boost folder or I only >> need those .a files plus the boost folder. > > If you used bjam install or bjam stage, you don't need anything in bin.v2. > > In Christ, > Steven Watanabe > > _______________________________________________ > Boost-users mailing list > Boost-users_at_[hidden] > http://lists.boost.org/mailman/listinfo.cgi/boost-users > > If I plan to make my application selfcontained with all thirdparty library, what contents I should keep with my project tree. I don't want my application depands on what installed on the local machine because I need to test or run it on different machine and some machine may have different version of OS and boost. -- View this message in context: http://www.nabble.com/new-to-Boost-and-ASIO-tp20780520p20781772.html Sent from the Boost - Users mailing list archive at Nabble.com. ------------------------------ Message: 9 Date: Mon, 1 Dec 2008 14:16:54 -0800 (PST) From: boost001 <oldyoungguy88_at_[hidden]> Subject: Re: [Boost-users] new user got compile error To: boost-users_at_[hidden] Message-ID: <20781826.post_at_[hidden]> Content-Type: text/plain; charset=us-ascii Steven Watanabe-4 wrote: > > AMDG > > James Peng wrote: >> >> class Server{ >> >> public: >> Server(){}; >> ~Server(){}; >> >> void print(); >> protected: >> >> private: >> >> boost::asio::io_service io_service; >> boost::asio::ip::tcp::acceptor acceptor(io_service, >> boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 13)); >> boost::asio::ip::tcp::socket asio_socket(io_service); >> boost::system::error_code error_read; >> >> }; > > You can't initialize members in the class body. > > In Christ, > Steven Watanabe > > _______________________________________________ > Boost-users mailing list > Boost-users_at_[hidden] > http://lists.boost.org/mailman/listinfo.cgi/boost-users > > I think I did this with ACE and other library. Boost is special? So I should use pointer? -- View this message in context: http://www.nabble.com/new-user-got-compile-error-tp20781541p20781826.html Sent from the Boost - Users mailing list archive at Nabble.com. ------------------------------ _______________________________________________ Boost-users mailing list Boost-users_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users End of Boost-users Digest, Vol 1831, Issue 3 ********************************************
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net