Are you going to save my life ?
;-)
Thx again
Thomas CATTY
06.75.67.24.71
> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
and always the same errors even in command line :macbookprototo-3:mongodb chtoms$ sudo g++ -I/usr/local/mongodb -I/opt/local/include -pthread -lboost_filesystem /iwave360/Tutorial/main.cppPassword:
Undefined symbols:"vtable for mongo::DBClientBase", referenced from:
__ZTVN5mongo12DBClientBaseE$non_lazy_ptr in ccYePeoV.o
"mongo::asserted(char const*, char const*, unsigned int)", referenced from:
mongo::DBConnector::recv(mongo::Message&) in ccYePeoV.o
"boost::system::system_category()", referenced from:
__static_initialization_and_destruction_0(int, int)in ccYePeoV.o
"vtable for mongo::DBClientConnection", referenced from:
__ZTVN5mongo18DBClientConnectionE$non_lazy_ptr in ccYePeoV.o
"boost::system::generic_category()", referenced from:
__static_initialization_and_destruction_0(int, int)in ccYePeoV.o__static_initialization_and_destruction_0(int, int)in ccYePeoV.o
"mongo::uasserted(int, char const*)", referenced from:
mongo::HostAndPort::HostAndPort(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in ccYePeoV.omongo::HostAndPort::HostAndPort(std::basic_string<char, std::char_traits<char>, std::allocator<char> >)in ccYePeoV.o
"vtable for mongo::DBClientWithCommands", referenced from:
__ZTVN5mongo20DBClientWithCommandsE$non_lazy_ptr in ccYePeoV.o
"vtable for mongo::DBClientInterface", referenced from:
__ZTVN5mongo17DBClientInterfaceE$non_lazy_ptr in ccYePeoV.o
"mongo::DBClientConnection::_numConnections", referenced from:
__ZN5mongo18DBClientConnection15_numConnectionsE$non_lazy_ptr in ccYePeoV.old: symbol(s) not found
collect2: ld returned 1 exit status
Thomas CATTY
06.75.67.24.71
"You only live once, but if you do it right, once is enough." - (Mae West)
Envoyé le : Lun 20 juin 2011, 20h 45min 25sObjet : Re: Re : [mongodb-user] Re: Re : Re: compiling problem with Xcode / C++ (sous MAC)
> >mongodb-user+unsub...@googlegroups.com.
> > > For more options, visit this group
> >athttp://groups.google.com/group/mongodb-user?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to
> mongodb-user+unsub...@googlegroups.com.
> For more options, visit this group athttp://groups.google.com/group/mongodb-user?hl=en.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
thanks for your explanations Aaron.I have been trying for many hours now ( without sucess obviously ) such command lines like below :>sudo g++ -I/usr/local/mongodb -L/opt/local/lib -L/opt/local/include/boost -pthread -lboost_filesystem -lmongoclient /iwave360/Tutorial/main.cpp>sudo g++ -L/usr/local/mongod -L/opt/local/lib -L/opt/local/include/boost -l/usr/local/mongodb/mongo-cxx-driver-v1.8/libmongoclient.a -pthread -lboost_filesystem -lmongoclient /iwave360/Tutorial/main.cpp.......That generates many many error lines which often begin with :Undefined symbols:"boost::this_thread::interruption_point()", referenced from:mongo::BackgroundJob::wait(unsigned int)in libmongoclient.a(background.o)mongo::BackgroundJob::wait(unsigned int)in libmongoclient.a(background.o)"boost::thread::~thread()", referenced from:mongo::BackgroundJob::go() in libmongoclient.a(background.o)"boost::detail::once_global_epoch", referenced from:.......The "main.cpp" program is this we find on line to test :---------------
#include <iostream>
#include "client/dbclient.h"
using namespace mongo;
void run() {
DBClientConnection c;
c.connect("localhost");
}
int main() {
try {
run();
cout << "connected ok" << endl;
} catch( DBException &e ) {
cout << "caught " << e.what() << endl;
}
return 0;
}
---------------1/the necessary dbclient.h (for that program) is stored in /usr/local/mongod/client/ (with dbclient.o and others)boost is installed in /opt/local/include/boost/many .a and .dylib files in /opt/local/libmany .h files in /opt/local/include/mongod in /usr/local/mongod with a subdirectory inside for C++ drivers called "mongo-cxx-driver-v1.8" with "libmongoclient.a" inside2/ what is the difference between the -I option and the -L one ?Maybe I also missed something during the installation process...Thanks again & again guys.
Thomas CATTY
06.75.67.24.71
"You only live once, but if you do it right, once is enough." - (Mae West)
Envoyé le : Mar 21 juin 2011, 2h 13min 23s
Objet : Re: Re : Re : [mongodb-user] Re: Re : Re: compiling problem with Xcode / C++ (sous MAC)
> > > >mongodb-user+unsub...@googlegroups.com.
> > > > > For more options, visit this group
> > > >athttp://groups.google.com/group/mongodb-user?hl=en.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "mongodb-user" group.
> > > To post to this group, send email to mongod...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > mongodb-user+unsub...@googlegroups.com.
> > > For more options, visit this group at
> >http://groups.google.com/group/mongodb-user?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mongodb-user" group.
> > To post to this group, send email to mongod...@googlegroups.com.
> > To unsubscribe from this group, send email to mongodb-user+
> > unsub...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/mongodb-user?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "mongodb-user" group.
> > To post to this group, send email to mongod...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > mongodb-user+unsub...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/mongodb-user?hl=en.
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user+unsub...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>>> > > > >mongodb-user...@googlegroups.com.
>>> > > > > > For more options, visit this group
>>> > > > >athttp://groups.google.com/group/mongodb-user?hl=en.
>>> >
>>> > > > --
>>> > > > You received this message because you are subscribed to the Google
>>> > > > Groups
>>> > > > "mongodb-user" group.
>>> > > > To post to this group, send email to mongod...@googlegroups.com.
>>> > > > To unsubscribe from this group, send email to
>>> > > > mongodb-user...@googlegroups.com.
>>> > > > For more options, visit this group at
>>> > >http://groups.google.com/group/mongodb-user?hl=en.
>>> >
>>> > > --
>>> > > You received this message because you are subscribed to the Google
>>> > > Groups
>>> > > "mongodb-user" group.
>>> > > To post to this group, send email to mongod...@googlegroups.com.
>>> > > To unsubscribe from this group, send email to mongodb-user+
>>> > > unsub...@googlegroups.com.
>>> > > For more options, visit this group at
>>> > >http://groups.google.com/group/mongodb-user?hl=en.
>>> >
>>> > > --
>>> > > You received this message because you are subscribed to the Google
>>> > > Groups
>>> > > "mongodb-user" group.
>>> > > To post to this group, send email to mongod...@googlegroups.com.
>>> > > To unsubscribe from this group, send email to
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
>>>> > > > >mongodb-user...@googlegroups.com.
>>>> > > > > > For more options, visit this group
>>>> > > > >athttp://groups.google.com/group/mongodb-user?hl=en.
>>>> >
>>>> > > > --
>>>> > > > You received this message because you are subscribed to the Google
>>>> > > > Groups
>>>> > > > "mongodb-user" group.
>>>> > > > To post to this group, send email to
>>>> > > > mongod...@googlegroups.com.
>>>> > > > To unsubscribe from this group, send email to
>>>> > > > mongodb-user...@googlegroups.com.
>>>> > > > For more options, visit this group at
>>>> > >http://groups.google.com/group/mongodb-user?hl=en.
>>>> >
>>>> > > --
>>>> > > You received this message because you are subscribed to the Google
>>>> > > Groups
>>>> > > "mongodb-user" group.
>>>> > > To post to this group, send email to mongod...@googlegroups.com.
>>>> > > To unsubscribe from this group, send email to mongodb-user+
>>>> > > unsub...@googlegroups.com.
>>>> > > For more options, visit this group at
>>>> > >http://groups.google.com/group/mongodb-user?hl=en.
>>>> >
>>>> > > --
>>>> > > You received this message because you are subscribed to the Google
>>>> > > Groups
>>>> > > "mongodb-user" group.
>>>> > > To post to this group, send email to mongod...@googlegroups.com.
>>>> > > To unsubscribe from this group, send email to