-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:
-
Environment:Windows 7
*Location*: http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-cpp-driver/
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36
*Referrer*: http://www.google.com/url?sa=t&rct=j&q=mongodb%20tutorial%20c%2B%2B&source=web&cd=1&cad=rja&sqi=2&ved=0CCoQFjAA&url=http%3A%2F%2Fdocs.mongodb.org%2Fecosystem%2Ftutorial%2Fgetting-started-with-cpp-driver&ei=WqzBUcm1AZWv4AOKnYFY&usg=AFQjCNFGRDXKulxTRrveHHjHha-7HZOarw&bvm=bv.47883778,d.dmg
*Screen Resolution*: 1920 x 1080
*repo*: docs-ecosystem
*source*: tutorial/getting-started-with-cpp-driver
Windows 7 *Location*: http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-cpp-driver/ *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 *Referrer*: http://www.google.com/url?sa=t&rct=j&q=mongodb%20tutorial%20c%2B%2B&source=web&cd=1&cad=rja&sqi=2&ved=0CCoQFjAA&url=http%3A%2F%2Fdocs.mongodb.org%2Fecosystem%2Ftutorial%2Fgetting-started-with-cpp-driver&ei=WqzBUcm1AZWv4AOKnYFY&usg=AFQjCNFGRDXKulxTRrveHHjHha-7HZOarw&bvm=bv.47883778,d.dmg *Screen Resolution*: 1920 x 1080 *repo*: docs-ecosystem *source*: tutorial/getting-started-with-cpp-driver
Hi,
I successfully compiled and linked the C++ tutorial. But when I try to run it, it throws an exception (c.connect("localhost"). The following is the output.
Wed Jun 19 09:57:05.688 ERROR: connect invalid socket errno:0 The operation completed successfully.
caught can't connect couldn't connect to server localhost:27017
The db server on my local machine was already running and I tested it through command line (mongo.exe) prior to testing the c++ tutorial.
I will appreciate your help on this.
Thnaks,
Anand