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

Undefined identifier "Callback"C/C++(20) #12955

Open
hxznhf opened this issue Nov 12, 2024 · 2 comments
Open

Undefined identifier "Callback"C/C++(20) #12955

hxznhf opened this issue Nov 12, 2024 · 2 comments
Assignees
Labels
Feature: Configuration An issue related to configuring the extension or IntelliSense Language Service more info needed The issue report is not actionable in its current state

Comments

@hxznhf
Copy link

hxznhf commented Nov 12, 2024

Environment

  • OS and Version: Windows_NT x64 10.0.19045
  • VS Code Version: 1.95.2 (user setup)
  • C/C++ Extension Version: 1.23.1
  • If using SSH remote, specify OS of remote machine:

Bug Summary and Steps to Reproduce

My project used the C++header file of webview2, but the "callback" symbol cannot be parsed by the intellisence . My project compiled without any errors, only the error message was incorrect.

Configuration and Logs

{
    "configurations": [
        {
            "name": "Win32",
            "includePath": [
                "${workspaceFolder}/**",
                "${path}"
            ],
            "defines": [
                "_DEBUG",
                "UNICODE",
                "_UNICODE"
            
            ],
            "windowsSdkVersion": "10.0.22621.0",
            "compilerPath": "cl.exe",
            "cStandard": "c17",
            "cppStandard": "c++23",
            "intelliSenseMode": "windows-msvc-x64"
        }
    ],
    "version": 4
}

Other Extensions

No response

Additional context

No response

@sean-mcmanus
Copy link
Collaborator

@hxznhf Can you provide more info? Your compilation system may be using different include paths, defines, args, that what is set in your c_cpp_properties.json. If you run C/C++: Log Diagnostics you can see more info on what is being used for your IntelliSense configuration. Are you able to locate the file containing the "callback" symbol and check if the appropriate includePath or define is being set?

@sean-mcmanus sean-mcmanus self-assigned this Nov 13, 2024
@sean-mcmanus sean-mcmanus added Language Service more info needed The issue report is not actionable in its current state Feature: Configuration An issue related to configuring the extension or IntelliSense labels Nov 13, 2024
@hxznhf
Copy link
Author

hxznhf commented Nov 13, 2024

log: 20241113T102218.zip

My “include” configuration is correct, and VSCode can also jump to the callback symbol. It seems that everything is normal except for the error message that should not appear.

It seems that images cannot be uploaded here. I have attached an image information in my reply email.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Configuration An issue related to configuring the extension or IntelliSense Language Service more info needed The issue report is not actionable in its current state
Projects
Status: No status
Development

No branches or pull requests

2 participants