*** multiple target patterns. Stop.
Posted: Thu Jan 26, 2012 2:39 am
Hi, Eran:
It seems it's a GNU issue, but I know you probably know the answer.
Codelite version: 3.5.5375
OS: Ubuntu 11.04
gdb --version: GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
I used Codelite to create a fresh project and added some of my .h and .c files. From within Codelite IDE, if I built a static library, I got the following error message.,
the static library will be successfully built.
If I tried to build a shared library, say:
Everything seems to be fine as well, a .so file can be produced right away.
Anyway, how come the command line (makefile) behavior is so different from CodeLite IDE behavior?
Best Regards
Pei
It seems it's a GNU issue, but I know you probably know the answer.
Codelite version: 3.5.5375
OS: Ubuntu 11.04
gdb --version: GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
I used Codelite to create a fresh project and added some of my .h and .c files. From within Codelite IDE, if I built a static library, I got the following error message.
However, if I typed my own makefile, say,*** multiple target patterns. Stop.
Code: Select all
gcc -c a.c -o a.o
gcc -c b.c -o b.o
gcc -c c.c -o c.o
gcc -c d.c -o d.o
ar rs libmylib.a a.o b.o c.o d.o
the static library will be successfully built.
If I tried to build a shared library, say:
Code: Select all
gcc -shared -o libmylib.so a.o b.o c.o d.o
Anyway, how come the command line (makefile) behavior is so different from CodeLite IDE behavior?
Best Regards
Pei