Skip to content
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

Build Problem in VS2010 / 2013 #33

Closed
patodeborracha opened this issue Apr 11, 2015 · 9 comments
Closed

Build Problem in VS2010 / 2013 #33

patodeborracha opened this issue Apr 11, 2015 · 9 comments

Comments

@patodeborracha
Copy link

Hi, Friend!

Whats happening with you Wrapper?

http://codepaste.net/qvja8w

Thank You!

@JosephP91
Copy link
Owner

I read: 'unknown option -std=c++11'. Your c++ version does not support the latest standard! What version do you have?

@patodeborracha
Copy link
Author

i try compile in vs2010 and vs2013

@JosephP91
Copy link
Owner

And the compiler version is?

@patodeborracha
Copy link
Author

MSVC++ 12.0 _MSC_VER == 1800 (Visual Studio 2013) I Try this
MSVC++ 11.0 _MSC_VER == 1700 (Visual Studio 2012)
MSVC++ 10.0 _MSC_VER == 1600 (Visual Studio 2010) and this
MSVC++ 9.0 _MSC_VER == 1500 (Visual Studio 2008)
MSVC++ 8.0 _MSC_VER == 1400 (Visual Studio 2005)
MSVC++ 7.1 _MSC_VER == 1310 (Visual Studio 2003)
MSVC++ 7.0 _MSC_VER == 1300
MSVC++ 6.0 _MSC_VER == 1200
MSVC++ 5.0 _MSC_VER == 1100

@JosephP91
Copy link
Owner

And c++11 is supported? You should check if c++11 is supported.

@JosephP91
Copy link
Owner

Or try to enable c++11 compile option, if supported.

@patodeborracha
Copy link
Author

i'm student, and i'm a noob.. sorry for it...
i see this table: https://msdn.microsoft.com/en-us/library/vstudio/hh567368.aspx
the features of your wrapper is compatible with this?
you have a old version for i build it in VS2010 or VS2013?
thank you!

@susnux
Copy link
Contributor

susnux commented Apr 11, 2015

No I do not think it is a compiler problem.
VS2013 should fullfill the requirements, the problem is this line in curlcpp code:

 if (message->easy_handle == easy.get_curl() and message->msg == CURLMSG_DONE) {

the word "and" is, I think, not in the standard and only on gcc available. Try replacing it with "&&".
Please let me know if it works.

Edit:
Oh yes, I was wrong. It is a operator keyword but MS require a header... So same fix as above (or #include ).
Source: https://en.wikipedia.org/wiki/C_alternative_tokens

@patodeborracha
Copy link
Author

and to && work fine... thank you!!

1>------ Build started: Project: curlcpp, Configuration: Release Win32 ------
1>cl : Command line warning D9002: ignoring unknown option '-std=c++11'
1> curl_multi.cpp
1> curlcpp.vcxproj -> C:\Users\PatodeBorracha\Desktop\curlcpp-master\ProjectVS2013_x86\src\Release\curlcpp.lib
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants