-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new user issue (Tutorial problems) #29
Comments
Harold, whenever I create a new VM I perform the following steps:
I actually have a base image with the first two set up (sometime I want to GR Sent from my Nexus 5.
|
Thanks for the documentation, hope someone else finds this useful. |
Hi! I think I have a similar problem but I still cannot solve it: I wanted to try the first tutorial https://github.com/Microsoft/cpprestsdk/wiki/Getting-Started-Tutorial so I installed the package with nuGet as explained there. I'm using VS 2012 and I was told to install v110 and I did. I installed it on a blank VS project containing only this .cpp:
Installing seems to success, this is my log (in Italian, sorry):
First, the package isn't automatically added to the project include path (I think it should, right?) therefore I get errors about missing files.
After this the compiler is able to find the files but then I get a lot of linking errors:
Does anyone have any idea on how to solve this? |
Tutorial URL:
https://github.com/Microsoft/cpprestsdk/wiki/How-to-use-the-C---Rest-SDK-NuGet-package
I'm not sure where else to post this where a new cpprest user might see it. Until recently, I was avoiding upgrading my very very old Visual C++ 6.0 running on XP which still served my needs ... Github and NuGet and Azure are all new to me. I tried both 2013 and 2015 VS express for desktop with essentially similar problems and am posting my "solution" here for any who may be also failing to get the cpprestsdk tutorial to work.
The "problem" I suppose would have never been so frustrating if the default IDE settings for Visual Studio did not have such a short output window at the bottom of the screen. Essentially, the NuGet script output said that the cpprest package had been installed successfully and I moved on to the next tutorial step and faced a myriad of problems. I guess I should have scrolled up or expanded the output window to read all of the output, but when a script says success or "0 errors" at the end, I am predisposed to move on. At any rate, regardless of the script's success output, there was an error in the NuGet script output that had well scrolled out of the output window before the script claimed success. The error essentially said that running scripts was disabled on my computer (which was essentially a new VM so everything is default, including the Visual Studio installations).
At this point, Googling led to a solution (where Googling the various errors I was getting compile-time and link-time trying the tutorial was wasted time). All documentation I've read so far on various MS and MS-related sites says things like "The package also contains a dependency on C++ REST SDK, which will also be automatically installed by NuGet." ... nothing could I find anywhere explained that default installations essentially make NuGet inoperable, and of course it doesn't help when a script says success even though there were errors in the above wall of text preceding the final line.
Here is a link to what resolved the issue:
http://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts
Also of note, I had to exit and restart Visual Studio before the policy change took effect.
If there is any info even remotely similar to this in the cpprest documentation or the tutorial or elsewhere on this or a related site, I simply could not find it.
Hope this helps someone.
The text was updated successfully, but these errors were encountered: