In 'Project' tool window, the 'Project Source Files' does not include some source files
Hi!
I wonder if anyone else is experiencing this.
I'm working on a small project, using CLion 2022.3.2 on Ubuntu22 (BTW trial expires 2mrw but I'm using this as individual so there gotta be some way to get an extension if anyone can share a tip. I'm still far from establishing the source in GitHub but I will eventually, problem is that it would be hard to keep on going using kdeveloper. anyway if anyone can share a copun or something to allow me to keep using CLion that would be great, closing the bracket, that's not what I came here to ask),
As I was saying I'm working on a small project using CLion 2022.3.2 on Ubuntu22,
And I try to have a clean view only on the sources i.e. *.c and *.h ,
So I use the 'Project' tool window's 'Project Source Files' built-in filter but weirdly, only some of the sources appear while others not.
The 'ls' result is
z@xps:~/code/c/frank$ ll *.c *.h
-rwxrwx--- 1 z clionz 2494 Feb 14 00:09 main-standalone.c*
-rwxrwx--- 1 z clionz 579 Feb 13 11:46 mylib.c*
-rwxrwx--- 1 z clionz 242 Feb 13 11:03 mylib.h*
-rwxrwx--- 1 z clionz 1603 Feb 14 00:07 physics.c*
-rwxrwx--- 1 z clionz 705 Feb 13 21:34 physics.h*
-rw-rw-r-- 1 z z 3729 Feb 14 01:21 rendering.c
-rwxrwx--- 1 z clionz 561 Feb 13 20:52 rendering.h*
-rw-rw-r-- 1 z z 1132 Feb 6 23:04 socketclient.c
-rw-rw-r-- 1 z z 6155 Feb 6 20:58 sockettest.c
-rw-rw-r-- 1 z z 20 Feb 6 20:25 sockettest.h
-rwxrwx--- 1 z clionz 2795 Feb 13 18:59 world.c*
-rwxrwx--- 1 z clionz 898 Feb 13 21:34 world.h*
But the window does not show some files like `main-standalone.c` , `world.c` , `mylib.c` , `physics.c`,
yet it does show other c files like `rendering.c` and `sockettest.c` , as well as some
I can't explain this behavior.
This is how the makefile looks like
CC = gcc
LDLIBS = -lncurses -lm
CFLAGS += -g -Wall
main-standalone: mylib.o physics.o world.o rendering.o sockettest.o socketclient.o main-standalone.o
$(CC) $(CFLAGS) -o main-standalone mylib.o physics.o world.o rendering.o sockettest.o main-standalone.o $(LDLIBS)
socketclient: sockettest.o
$(CC) $(CFLAGS) -o socketclient socketclient.o
main-standalone.o: main-standalone.c
$(CC) $(CFLAGS) -c main-standalone.c
rendering.o: rendering.c
$(CC) $(CFLAGS) -c rendering.c
physics.o: physics.c
$(CC) $(CFLAGS) -c physics.c
world.o: world.c
$(CC) $(CFLAGS) -c world.c
mylib.o: mylib.c
$(CC) $(CFLAGS) -c mylib.c
sockettest.o: sockettest.c
$(CC) $(CFLAGS) -c sockettest.c
socketclient.o: socketclient.c
$(CC) $(CFLAGS) -c socketclient.c
clean:
rm -rf *.o
rm -rf frank-standalone
Please sign in to leave a comment.
Hello!
While CLion Early Access Program is in progress, you can use CLion EAP builds, they are free to use - https://www.jetbrains.com/clion/nextversion/.
As for the main question:
Please go to `File | Settings | Build, Execution, Deployment | Makefile` and specify main-standalone in the `Build target` field. After that do `Tools | Makefile | Clean and Reload Makefile Project`. Does it help?