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

fix the compilation error when building on Windows using VS2013 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

larixsoft
Copy link

  1. when building qt-gstreamer on windows using VS2013, following error will be reported
    "error C2039: 'bind2nd' : is not a member of 'std'"
    '"error C2039: 'mem_fun' : is not a member of 'std'"
    The fix is to add "#include " to resolve this compilation error.
    Please refer to http://stackoverflow.com/questions/24580416/mem-fun-is-not-a-member-of-std
  2. QCOMPARE is very strict on the data types. Both actual and expected have to be of the same type, otherwise the test won't compile. When build on window with VS2013, size_t will be interpreted as "_uint64", which is different from "unsigned long".

The fix is to static_cast all constant number to "size_t"

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

Successfully merging this pull request may close these issues.

1 participant