Skip to content

dumb-jump not finding declaration in extremely simple C example #128

@esthermations

Description

@esthermations

It's likely this is a problem with my setup, but I can't get dumb-jump to work for C at all.

Here's what I'm trying to get working. I have a folder with just two files in it, test.c and test.h.

This is test.c:

#include "test.h"
int main(void) { some_function(); return 0; }

And this is test.h:

void some_function(void) { return; }

If I navigate to some_function() in test.c and do M-x dumb-jump-go or any other dumb-jump command, it fails to find the declaration of some_function in test.h. Changing the whitespace around doesn't seem to change anything.

Can anyone reproduce this? It seems like the simplest possible use case for the program. I'm convinced it must be a problem with my setup, but I don't know.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions