Ask Your Question
2

What does the error "expected unqualified-id before '=' token" mean when trying to assign a function pointer to the address of another function?

asked 2023-07-14 21:32:51 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-07-14 21:39:02 +0000

djk gravatar image

This error means that there is an issue with the syntax of your code. Specifically, it means that the compiler is expecting an identifier (a name that identifies a variable, function, or constant) but instead it found an equals sign (=). This often occurs when there is a problem with the way you are declaring or using a function pointer.

In this particular case, it suggests that you may not have declared the function pointer correctly, or that you are trying to assign a function pointer to a function that is not declared or defined yet. Check the syntax of your function pointer declaration and make sure that the function you are trying to assign it to has been declared or defined before you try to assign it.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-07-14 21:32:51 +0000

Seen: 21 times

Last updated: Jul 14 '23