Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Error building the newest c++ driver for Mongo
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 31 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mick  
View profile  
 More options Oct 24 2012, 3:01 pm
From: Mick <m.d.berce...@gmail.com>
Date: Wed, 24 Oct 2012 12:01:12 -0700 (PDT)
Local: Wed, Oct 24 2012 3:01 pm
Subject: Error building the newest c++ driver for Mongo

Hi,
I'm following the instructions on the mongo web site and I run "scons
mongoclient", but this is what I'm getting:

   scons: Reading SConscript files ...
   Checking for C++ library boost_thread-mt... (cached) no
   Checking for C++ library boost_thread... (cached) no
   Checking for C++ library boost_filesystem-mt... (cached) no
   Checking for C++ library boost_filesystem... (cached) no
   Checking for C++ library boost_system-mt... (cached) no
   Checking for C++ library boost_system... (cached) no
   scons: done reading SConscript files.
   scons: Building targets ...
   cl /Fobuild\mongo\bson\oid.obj /c src\mongo\bson\oid.cpp /nologo /EHsc
/O2 /TP /
   nologo /EHsc /O2 /D_SCONS /DMONGO_EXPOSE_MACROS /Ibuild /Isrc
/Ibuild\mongo /Isr
   c\mongo
   'cl' is not recognized as an internal or external command,
   operable program or batch file.
   scons: *** [build\mongo\bson\oid.obj] Error 1
   scons: building terminated because of errors.

The path is set, because if I type cl in that folder it comes up with:
   cl
   Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01
for 80x86
   Copyright (C) Microsoft Corporation.  All rights reserved.
   usage: cl [ option... ] filename... [ /link linkoption... ]

Please help.

Thank you in advance :)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Oct 24 2012, 3:13 pm
From: Eric Milkie <mil...@10gen.com>
Date: Wed, 24 Oct 2012 15:13:50 -0400
Local: Wed, Oct 24 2012 3:13 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo

Hi Mick,
scons doesn't use the PATH variable to find the compiler (the MongoDB SConstruct doesn't import the PATH variable into its internal environment).  
Do you have Visual Studio installed in an unusual place?
-Eric

On Oct 24, 2012, at 3:01 PM, Mick wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 24 2012, 4:05 pm
From: Mick <m.d.berce...@gmail.com>
Date: Wed, 24 Oct 2012 13:05:44 -0700 (PDT)
Local: Wed, Oct 24 2012 4:05 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo

Hi Eric,
Visual Studio is installed in the default location, nothing special about
it...
I'm using Visual Studio 2008.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Oct 25 2012, 1:20 pm
From: Eric Milkie <mil...@10gen.com>
Date: Thu, 25 Oct 2012 10:20:34 -0700 (PDT)
Local: Thurs, Oct 25 2012 1:20 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo

Which version of scons?  The places that it looks for executables is
actually built in to scons itself, so it's important to make sure you're on
the latest version.
If you're all up to date, then the next step is to tell scons to print out
debugging info for how it determines where cl.exe is.  Or we can just
import the PATH by adding a few lines to the SConstruct:
http://www.scons.org/wiki/FrequentlyAskedQuestions#Why_doesn.27t_SCon....


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 25 2012, 5:03 pm
From: Mick <m.d.berce...@gmail.com>
Date: Thu, 25 Oct 2012 14:03:10 -0700 (PDT)
Local: Thurs, Oct 25 2012 5:03 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo

I had an older version of Scons, so I got the latest one, and now it comes
up with a different error message:

src\mongo/pch.h(48) : fatal error C1083: Cannot open include file:
'boost/shared_ptr.hpp': No such file or directory
scons: *** [build\mongo\bson\oid.obj] Error 2
scons: building terminated because of errors

I haven't moved anything, just downloaded the C++ driver tar from Mongo
site, it comes with a boost folder, where should that be so Scons will find
the files it needs?

Thank you.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Oct 25 2012, 5:16 pm
From: Eric Milkie <mil...@10gen.com>
Date: Thu, 25 Oct 2012 17:16:37 -0400
Local: Thurs, Oct 25 2012 5:16 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo

Ok I would make sure you've checked over the instructions here first:
http://www.mongodb.org/display/DOCS/Building+for+Windows
It shows what things need to be installed and what versions are required (like for scons).

That include file should already be in the path for the compiler, so you shouldn't have to move anything, as long as your setup is correct.
-Eric

On Oct 25, 2012, at 5:03 PM, Mick wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
gli  
View profile   Translate to Translated (View Original)
 More options Oct 26 2012, 3:54 pm
From: gli <guogangl...@gmail.com>
Date: Fri, 26 Oct 2012 12:54:49 -0700 (PDT)
Local: Fri, Oct 26 2012 3:54 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo

Hi Mick,

I built mongo-cxx-driver-v2.2, using scons-2.2.0, boost_1_45_0, and VS 2010.

Before you run scons, you need to set the boost path in SConstruct file, in
mongo-cxx-driver-v2.2 directory:

env.Append(CPPPATH=your_boost_root_directory)

env.Append(LIBPATH=your_boost_libs_directory)

The is the command I ran scons:

scons.bat mode=release mongoclient.lib

Please give it a try, and let us know.

gli


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 29 2012, 11:43 am
From: Mick <m.d.berce...@gmail.com>
Date: Mon, 29 Oct 2012 08:43:46 -0700 (PDT)
Local: Mon, Oct 29 2012 11:43 am
Subject: Re: Error building the newest c++ driver for Mongo

Thank you all for your help, I was finally able to build mongoclient.lib.  
I'm using C++, VS2008, boost 1_49 and mongo 2.2.
However, I added the lib to my project, and now I'm getting these link
errors:

mongoclientd.lib(log.obj) : error LNK2019: unresolved external symbol
"class boost::filesystem2::file_status __cdecl
boost::filesystem2::detail::status_api(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,class
boost::system::error_code &)"
(?status_api@detail@filesystem2@boost@@YA?AVfile_status@23@ABV?$basic_strin g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AAVerror_code@system@3@@Z)
referenced in function "bool __cdecl boost::filesystem2::exists<class
boost::filesystem2::basic_path<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,struct
boost::filesystem2::path_traits> >(class
boost::filesystem2::basic_path<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,struct
boost::filesystem2::path_traits> const &)"
(??$exists@V?$basic_path@V?$basic_string@DU?$char_traits@D@std@@V?$allocato r@D@2@@std@@Upath_traits@filesystem2@boost@@@filesystem2@boost@@@filesystem 2@boost@@YA_NABV?$basic_path@V?$basic_string@DU?$char_traits@D@std@@V?$allo cator@D@2@@std@@Upath_traits@filesystem2@boost@@@01@@Z)

2>mongoclientd.lib(util.obj) : error LNK2001: unresolved external symbol
"class boost::system::error_category const & __cdecl
boost::system::system_category(void)"
(?system_category@system@boost@@YAABVerror_category@12@XZ)

2>mongoclientd.lib(dbmessage.obj) : error LNK2001: unresolved external
symbol "class boost::system::error_category const & __cdecl
boost::system::system_category(void)"
(?system_category@system@boost@@YAABVerror_category@12@XZ)

2>mongoclientd.lib(log.obj) : error LNK2019: unresolved external symbol
"class boost::system::error_category const & __cdecl
boost::system::system_category(void)"
(?system_category@system@boost@@YAABVerror_category@12@XZ) referenced in
function "public: __thiscall boost::system::error_code::error_code(void)"
(??0error_code@system@boost@@QAE@XZ)

2>mongoclientd.lib(syncclusterconnection.obj) : error LNK2001: unresolved
external symbol "class boost::system::error_category const & __cdecl
boost::system::system_category(void)"
(?system_category@system@boost@@YAABVerror_category@12@XZ)

2>mongoclientd.lib(dbclient_rs.obj) : error LNK2001: unresolved external
symbol "class boost::system::error_category const & __cdecl
boost::system::system_category(void)"
(?system_category@system@boost@@YAABVerror_category@12@XZ)

2>mongoclientd.lib(dbclientcursor.obj) : error LNK2001: unresolved external
symbol "class boost::system::error_category const & __cdecl
boost::system::system_category(void)"
(?system_category@system@boost@@YAABVerror_category@12@XZ)

2>mongoclientd.lib(util.obj) : error LNK2001: unresolved external symbol
"class boost::system::error_category const & __cdecl
boost::system::generic_category(void)"
(?generic_category@system@boost@@YAABVerror_category@12@XZ)

2>mongoclientd.lib(dbmessage.obj) : error LNK2001: unresolved external
symbol "class boost::system::error_category const & __cdecl
boost::system::generic_category(void)"
(?generic_category@system@boost@@YAABVerror_category@12@XZ)

2>mongoclientd.lib(log.obj) : error LNK2019: unresolved external symbol
"class boost::system::error_category const & __cdecl
boost::system::generic_category(void)"
(?generic_category@system@boost@@YAABVerror_category@12@XZ) referenced in
function "void __cdecl boost::system::`dynamic initializer for
'posix_category''(void)" (??__Eposix_category@system@boost@@YAXXZ)

2>mongoclientd.lib(syncclusterconnection.obj) : error LNK2001: unresolved
external symbol "class boost::system::error_category const & __cdecl
boost::system::generic_category(void)"
(?generic_category@system@boost@@YAABVerror_category@12@XZ)

2>mongoclientd.lib(dbclient_rs.obj) : error LNK2001: unresolved external
symbol "class boost::system::error_category const & __cdecl
boost::system::generic_category(void)"
(?generic_category@system@boost@@YAABVerror_category@12@XZ)

2>mongoclientd.lib(dbclientcursor.obj) : error LNK2001: unresolved external
symbol "class boost::system::error_category const & __cdecl
boost::system::generic_category(void)" (
?generic_category@system@boost@@YAABVerror_category@12@XZ)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Oct 29 2012, 11:49 am
From: Eric Milkie <mil...@10gen.com>
Date: Mon, 29 Oct 2012 11:49:45 -0400
Local: Mon, Oct 29 2012 11:49 am
Subject: Re: [mongodb-dev] Re: Error building the newest c++ driver for Mongo
What does your LINK command line look like?
-Eric

On Oct 29, 2012, at 11:43 AM, Mick <m.d.berce...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 29 2012, 12:24 pm
From: Mick <m.d.berce...@gmail.com>
Date: Mon, 29 Oct 2012 09:24:26 -0700 (PDT)
Local: Mon, Oct 29 2012 12:24 pm
Subject: Re: [mongodb-dev] Re: Error building the newest c++ driver for Mongo

I'm using VS2008 to build my project, link command prompt is:

/OUT:"c:\Archiver\build\wxp\..\..\Debug\wxp\bin\ArchiverMongoDBd.dll"
/INCREMENTAL /NOLOGO
/LIBPATH:"c:\Archiver\build\wxp\..\..\thirdparty\boost\wxp\debug" /DLL
/MANIFEST
/MANIFESTFILE:"c:\Archiver\build\wxp\..\..\Debug\wxp\obj\ArchiverMongoDBD\A rchiverMongoDBd.dll.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DEBUG
/PDB:"c:\Archiver\Debug\wxp\bin\..\symbols\ArchiverMongoDBd.pdb"
/SUBSYSTEM:CONSOLE /DYNAMICBASE /NXCOMPAT
/IMPLIB:"c:\Archiver\Debug\wxp\bin\ArchiverMongoDBd.lib" /MACHINE:X86
/ERRORREPORT:PROMPT Ws2_32.lib Dbghelp.lib  kernel32.lib user32.lib
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib
oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
"..\..\debug\wxp\bin\archiverloggingd.lib"


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Oct 29 2012, 1:05 pm
From: Eric Milkie <mil...@10gen.com>
Date: Mon, 29 Oct 2012 13:05:47 -0400
Local: Mon, Oct 29 2012 1:05 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo
I don't see mongoclient.lib listed explicitly on the command line; are you using #pragma comment to link it in?
From the linker messages, I think you are missing a link to one or more Boost libraries.
-Eric

On Oct 29, 2012, at 12:24 PM, Mick <m.d.berce...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 29 2012, 1:58 pm
From: Mick <m.d.berce...@gmail.com>
Date: Mon, 29 Oct 2012 10:58:59 -0700 (PDT)
Local: Mon, Oct 29 2012 1:58 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo

Hi Eric,
mongoclient.lib is added to the project file, and the boost path is
specified in the project properties.  That worked fine with the previous
version of Mongo that we were using - Mongo 2.0.6.  The only thing that
changed now is the Mongo version, all the paths are the same.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 29 2012, 6:40 pm
From: Mick <m.d.berce...@gmail.com>
Date: Mon, 29 Oct 2012 15:40:31 -0700 (PDT)
Local: Mon, Oct 29 2012 6:40 pm
Subject: Re: Error building the newest c++ driver for Mongo

I made some progress, now I'm down to 5 errors and I have no idea what they
mean...  
Has anybody seen these before and does anybody have any idea how to get rid
of them?
Thank you in advance.

error LNK2019: unresolved external symbol "public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall
mongo::DBClientWithCommands::getLastError(bool,bool,int,int)"
(?getLastError@DBClientWithCommands@mongo@@QAE?AV?$basic_string@DU?$char_tr aits@D@std@@V?$allocator@D@2@@std@@_N0HH@Z)
referenced in function "public: unsigned long __thiscall
CArcDBComm::Initialize(void)" (?Initialize@CArcDBComm@@QAEKXZ)

error LNK2019: unresolved external symbol "public: static class
mongo::ScopedDbConnection * __cdecl
mongo::ScopedDbConnection::getScopedDbConnection(class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,double)"
(?getScopedDbConnection@ScopedDbConnection@mongo@@SAPAV12@ABV?$basic_string @DU?$char_traits@D@std@@V?$allocator@D@2@@std@@N@Z)
referenced in function "public: unsigned long __thiscall
CArcDBComm::Initialize(void)" (?Initialize@CArcDBComm@@QAEKXZ)

error LNK2019: unresolved external symbol "void __cdecl
mongo::verifyFailed(char const *,char const *,unsigned int)"
(?verifyFailed@mongo@@YAXPBD0I@Z) referenced in function "public: virtual
class mongo::BSONObjBuilder & __thiscall
mongo::BSONObjBuilder::append(class mongo::BSONElement const &)"
(?append@BSONObjBuilder@mongo@@UAEAAV12@ABVBSONElement@2@@Z)

error LNK2019: unresolved external symbol "void __cdecl
mongo::msgasserted(int,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?msgasserted@mongo@@YAXHABV?$basic_string@DU?$char_traits@D@std@@V?$alloca tor@D@2@@std@@@Z)
referenced in function __catch$?_assertInvalid@BSONObj@mongo@@ABEXXZ$0

error LNK2019: unresolved external symbol "void __cdecl
mongo::uasserted(int,class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &)"
(?uasserted@mongo@@YAXHABV?$basic_string@DU?$char_traits@D@std@@V?$allocato r@D@2@@std@@@Z)
referenced in function "public: void __thiscall
mongo::BSONElement::toString(class mongo::StringBuilderImpl<class
mongo::TrivialAllocator> &,bool,bool,int)const "
(?toString@BSONElement@mongo@@QBEXAAV?$StringBuilderImpl@VTrivialAllocator@ mongo@@@2@_N1H@Z)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Oct 30 2012, 12:40 pm
From: Eric Milkie <mil...@10gen.com>
Date: Tue, 30 Oct 2012 12:40:24 -0400
Local: Tues, Oct 30 2012 12:40 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo

Those symbols should be coming from the mongoclient library.  For example, mongo::ScopedDbConnection::getScopedDbConnection() should be coming from connection_factory.cpp, a file that's compiled into the library.
Have you tried linking any of the example files in mongo\src\mongo\client\examples?  See if tutorial.cpp or first.cpp links, or if you get similar missing symbol errors.
-Eric

On Oct 29, 2012, at 6:40 PM, Mick <m.d.berce...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 30 2012, 3:30 pm
From: Mick <m.d.berce...@gmail.com>
Date: Tue, 30 Oct 2012 12:30:55 -0700 (PDT)
Local: Tues, Oct 30 2012 3:30 pm
Subject: Re: Error building the newest c++ driver for Mongo

Thank you for your help, Eric, I got past those errors.
Unfortunately now I get a different set:

1>mongoclientd.lib(stacktrace.obj) : error LNK2019: unresolved external
symbol __imp__SymCleanup@4 referenced in function "void __cdecl
mongo::printWindowsStackTrace(struct _CONTEXT &,class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(?printWindowsStackTrace@mongo@@YAXAAU_CONTEXT@@AAV?$basic_ostream@DU?$char _traits@D@std@@@std@@@Z)

1>mongoclientd.lib(stacktrace.obj) : error LNK2019: unresolved external
symbol __imp__StackWalk64@36 referenced in function "void __cdecl
mongo::printWindowsStackTrace(struct _CONTEXT &,class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(?printWindowsStackTrace@mongo@@YAXAAU_CONTEXT@@AAV?$basic_ostream@DU?$char _traits@D@std@@@std@@@Z)

1>mongoclientd.lib(stacktrace.obj) : error LNK2019: unresolved external
symbol __imp__SymSetOptions@4 referenced in function "void __cdecl
mongo::printWindowsStackTrace(struct _CONTEXT &,class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(?printWindowsStackTrace@mongo@@YAXAAU_CONTEXT@@AAV?$basic_ostream@DU?$char _traits@D@std@@@std@@@Z)

1>mongoclientd.lib(stacktrace.obj) : error LNK2019: unresolved external
symbol __imp__SymGetOptions@0 referenced in function "void __cdecl
mongo::printWindowsStackTrace(struct _CONTEXT &,class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(?printWindowsStackTrace@mongo@@YAXAAU_CONTEXT@@AAV?$basic_ostream@DU?$char _traits@D@std@@@std@@@Z)

1>mongoclientd.lib(stacktrace.obj) : error LNK2019: unresolved external
symbol __imp__SymInitialize@12 referenced in function "void __cdecl
mongo::printWindowsStackTrace(struct _CONTEXT &,class
std::basic_ostream<char,struct std::char_traits<char> > &)"
(?printWindowsStackTrace@mongo@@YAXAAU_CONTEXT@@AAV?$basic_ostream@DU?$char _traits@D@std@@@std@@@Z)

1>mongoclientd.lib(stacktrace.obj) : error LNK2019: unresolved external
symbol __imp__SymGetModuleInfo64@16 referenced in function "void __cdecl
mongo::getModuleName(void *,unsigned __int64,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > *)"
(?getModuleName@mongo@@YAXPAX_KPAV?$basic_string@DU?$char_traits@D@std@@V?$ allocator@D@2@@std@@@Z)

1>mongoclientd.lib(stacktrace.obj) : error LNK2019: unresolved external
symbol __imp__SymGetLineFromAddr64@20 referenced in function "void __cdecl
mongo::getSourceFileAndLineNumber(void *,unsigned __int64,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > *)"
(?getSourceFileAndLineNumber@mongo@@YAXPAX_KPAV?$basic_string@DU?$char_trai ts@D@std@@V?$allocator@D@2@@std@@@Z)

1>mongoclientd.lib(stacktrace.obj) : error LNK2019: unresolved external
symbol __imp__SymFromAddr@20 referenced in function "void __cdecl
mongo::getsymbolAndOffset(void *,unsigned __int64,struct _SYMBOL_INFO
*,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > *)"
(?getsymbolAndOffset@mongo@@YAXPAX_KPAU_SYMBOL_INFO@@PAV?$basic_string@DU?$ char_traits@D@std@@V?$allocator@D@2@@std@@@Z)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Oct 30 2012, 3:36 pm
From: Eric Milkie <mil...@10gen.com>
Date: Tue, 30 Oct 2012 15:36:17 -0400
Local: Tues, Oct 30 2012 3:36 pm
Subject: Re: [mongodb-dev] Re: Error building the newest c++ driver for Mongo

These are some new function calls we've added recently to support stack traces when things go wrong -- sorry we haven't updated the docs.  Add DbgHelp.lib to your link list and that should solve these.
-Eric

On Oct 30, 2012, at 3:30 PM, Mick <m.d.berce...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 30 2012, 3:53 pm
From: Mick <m.d.berce...@gmail.com>
Date: Tue, 30 Oct 2012 12:53:07 -0700 (PDT)
Local: Tues, Oct 30 2012 3:53 pm
Subject: Re: Error building the newest c++ driver for Mongo

Thank you, Eric, that fixed those link errors :)
Now another dependent project - that remained unchanged - is giving me

\bson\bsonelement.h(630) : warning C4003: not enough actual parameters for
macro 'max'

\bson\bsonelement.h(630) : error C2589: '(' : illegal token on right side
of '::'

\bson\bsonelement.h(630) : error C2059: syntax error : '::'

\bson\bsonelement.h(630) : error C2143: syntax error : missing ';' before
'{'

\bson\bsonelement.h(631) : warning C4003: not enough actual parameters for
macro 'max'

\bson\bsonelement.h(631) : error C2589: '(' : illegal token on right side
of '::'

\bson\bsonelement.h(631) : error C2059: syntax error : '::'

\bson\bsonelement.h(633) : warning C4003: not enough actual parameters for
macro 'min'

\bson\bsonelement.h(633) : error C2589: '(' : illegal token on right side
of '::'

\bson\bsonelement.h(633) : error C2059: syntax error : '::'

\bson\bsonelement.h(633) : error C2143: syntax error : missing ';' before
'{'

\bson\bsonelement.h(634) : warning C4003: not enough actual parameters for
macro 'min'

\bson\bsonelement.h(634) : error C2589: '(' : illegal token on right side
of '::'

\bson\bsonelement.h(634) : error C2059: syntax error : '::'

1>c:\program files\microsoft sdks\windows\v6.0a\include\ws2def.h(91) :
warning C4005: 'AF_IPX' : macro redefinition

1> c:\program files\microsoft sdks\windows\v6.0a\include\winsock.h(460) :
see previous definition of 'AF_IPX'
The list is long, but you get the jist of it...  Any ideas what might have
happened?  
Thanks again.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Oct 30 2012, 3:59 pm
From: Eric Milkie <mil...@10gen.com>
Date: Tue, 30 Oct 2012 15:59:33 -0400
Local: Tues, Oct 30 2012 3:59 pm
Subject: Re: [mongodb-dev] Re: Error building the newest c++ driver for Mongo

This looks like include file conflicts.  Be sure to include only dbclient.h in your code, no other MongoDB headers, and be sure to include it before any other #include lines in your source file.  Also, within dbclient.h we include <windows.h> and define WIN32_LEAN_AND_MEAN as well (this is not ideal, and we will fix this in a later MongoDB version), but for now, you will need to avoid including windows.h in any source file that includes dbclient.h.  I think this is why you are getting ws2def.h errors - you may be including windows.h after dbclient.h?
-Eric

On Oct 30, 2012, at 3:53 PM, Mick <m.d.berce...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 30 2012, 6:10 pm
From: Mick <m.d.berce...@gmail.com>
Date: Tue, 30 Oct 2012 15:10:40 -0700 (PDT)
Local: Tues, Oct 30 2012 6:10 pm
Subject: Re: [mongodb-dev] Re: Error building the newest c++ driver for Mongo

Hi Eric,
I have a solution with 6 projects, of which one communicates with Mongo
database.  The other projects call functions from this one dll.  Now dll
compiles and links fine, thanks to your suggestions, but I'm getting all
these compile errors in 2 of the projects that I did not touch...  I'm
confused about the bsonelement.h warnings and errors, because that's part
of the mongo source files.  Any ideas why I'm getting those?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Oct 30 2012, 7:57 pm
From: Eric Milkie <mil...@10gen.com>
Date: Tue, 30 Oct 2012 19:57:42 -0400
Local: Tues, Oct 30 2012 7:57 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo
The only way you could be getting those compilation errors in MongoDB headers is if you are #including them in your source files.  If you don't immediately see where it's coming from, you can try preprocessing one of the files; that should show you the include chain.
-Eric

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mick  
View profile  
 More options Oct 31 2012, 2:27 pm
From: Mick <m.d.berce...@gmail.com>
Date: Wed, 31 Oct 2012 11:27:21 -0700 (PDT)
Local: Wed, Oct 31 2012 2:27 pm
Subject: Re: [mongodb-dev] Error building the newest c++ driver for Mongo

Thank you, Eric, your help is highly appreciated.  However, we're going to
stick with the Mongo 2.0.6, the upgrade is taking way too long.  
Might try again at a later date, time permitting...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pravish Sood  
View profile  
 More options Mar 28, 4:41 pm
From: Pravish Sood <pravish.s...@gmail.com>
Date: Thu, 28 Mar 2013 13:41:41 -0700 (PDT)
Local: Thurs, Mar 28 2013 4:41 pm
Subject: Re: Error building the newest c++ driver for Mongo

Hi Mick,

I am facing same Linker issues you mentioned in you post below. You
mentioned that you could get beyond them in you next post on this thread.
Could you tell me how?
I am referencing to an external boost while building mongoclient.lib. I am
using msvc11 and building using scons.

Thanks,

Pravish

  LinkerErrors.txt
20K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Morrow  
View profile  
 More options Mar 28, 5:16 pm
From: Andrew Morrow <andrew.mor...@10gen.com>
Date: Thu, 28 Mar 2013 17:16:39 -0400
Local: Thurs, Mar 28 2013 5:16 pm
Subject: Re: [mongodb-dev] Re: Error building the newest c++ driver for Mongo

Hi Pravish -

Could you please post the exact link errors you are seeing, along with
information about which version of the C++ driver you are using?
Information on the OS and compiler revision would be very useful as well.
It will be easier to diagnose this way rather than referring back to errors
from a much earlier thread.

Thanks,
Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pravish Sood  
View profile  
 More options Mar 29, 10:31 am
From: Pravish Sood <pravish.s...@gmail.com>
Date: Fri, 29 Mar 2013 07:31:10 -0700 (PDT)
Local: Fri, Mar 29 2013 10:31 am
Subject: Re: Error building the newest c++ driver for Mongo

Hi Andrew,

Thanks for your response. I have attached a txt file containing the linker
errors.
I checked out mongo from the github master branch yesterday so it must be
the latest development.
I am trying to build a 32 bit version on Win 7 64 bit. I used the msvc11 to
build boost_1_53_0 and build the mongo with
--extrapath=1_53_0_BoostLibraryPath
I used scons to build the mongoclient.lib. The toolset is msvc11 again.

Let me know,

Best,

Pravish

From Andrew:
Could you please post the exact link errors you are seeing, along with
information about which version of the C++ driver you are using?
Information on the OS and compiler revision would be very useful as well.
It will be easier to diagnose this way rather than referring back to errors
from a much earlier thread.

  LinkerErrors.txt
20K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Milkie  
View profile  
 More options Mar 29, 10:40 am
From: Eric Milkie <mil...@10gen.com>
Date: Fri, 29 Mar 2013 07:40:29 -0700 (PDT)
Local: Fri, Mar 29 2013 10:40 am
Subject: Re: Error building the newest c++ driver for Mongo

 Hi Pravish,
Can you show the compilation and link command lines you're using?
I suspect you're not using the same calling standard for everything.  When
I compare your missing symbols to the ones present in the library, they are
mangling differently.  You should be using /MT or /MTd when you compile
foo.cpp, to match how scons is compiling the C++ driver files.
-Eric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 31   Newer >
« Back to Discussions « Newer topic     Older topic »