No include suggestions but .h is in Header Search Path

Answered

Something odd is going on with the includes suggestions: in a .cpp I have a call to socket (sys/socket.h) and a call to shmget (sys/shm.h). Clion shows the suggestion for socket, but only the "Can't resolve variable 'shmget'" for shmget. Both sys/socket.h and sys/shm.h are under External Libraries in the Project tree, so I can't think of a reason why it works for one but not for the other.

It's really not that much of a problem, but it is a bit annoying.

 

1
2 comments

Hello!

I've created an issue in our tracker: https://youtrack.jetbrains.com/issue/CPP-9418 Feel free to follow or upvote. Sorry for the inconvenience.

0
Avatar
Permanently deleted user

I'm having the exact same issue, except I'm using the wxWidgets library. It will recognize wx/app.h, but not wx/frame.h. Both files are in the same directory.

0

Please sign in to leave a comment.