Skip to content

Comments

multiple compiling issues resolved#3

Open
Foadsf wants to merge 2 commits intoDakkers:masterfrom
Foadsf:patch-2
Open

multiple compiling issues resolved#3
Foadsf wants to merge 2 commits intoDakkers:masterfrom
Foadsf:patch-2

Conversation

@Foadsf
Copy link

@Foadsf Foadsf commented May 12, 2018

  1. from here curly braces should be removed to solve the error:

error: expected expression

  1. from here the error:

error: too many arguments to function call, expected single argument '__x', have 2 arguments

should be resolved.

  1. the error:

error: no matching member function for call to 'build'

from the cl::Program Class Reference the build function requires const vector< Device > or const char *options

Foadsf added 2 commits May 12, 2018 05:22
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`
Copy link
Author

@Foadsf Foadsf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the error:

error: use of undeclared identifier 'simple_add'

@stroucki
Copy link

I have no problem with the braces and the implied make_pair, so are you sure you are using the correct c++ version?

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.

2 participants