[DOCS-1623] Comment on: "ecosystem/tutorial/getting-started-with-cpp-driver.txt" Created: 19/Jun/13  Updated: 03/Nov/17  Resolved: 07/Aug/13

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: auto Assignee: Barrie Segal
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
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


Participants:
Days since reply: 10 years, 35 weeks ago

 Description   

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


Generated at Thu Feb 08 07:41:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.