Open
Conversation
1. from [here](https://stackoverflow.com/q/21738032/4999991) curly braces should be removed to solve the error: > error: expected expression 2. from [here](https://stackoverflow.com/a/21739380/4999991) the error: > error: too many arguments to function call, expected single argument '__x', have 2 arguments should be resolved. 3. the error: > error: no matching member function for call to 'build' from the [cl::Program Class Reference](https://github.khronos.org/OpenCL-CLHPP/classcl_1_1_program.html) the `build` function requires `const vector< Device >` or `const char *options`
Foadsf
commented
May 12, 2018
Author
Foadsf
left a comment
There was a problem hiding this comment.
for the error:
error: use of undeclared identifier 'simple_add'
|
I have no problem with the braces and the implied make_pair, so are you sure you are using the correct c++ version? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
should be resolved.
from the cl::Program Class Reference the
buildfunction requiresconst vector< Device >orconst char *options