Page 1 of 1

*** multiple target patterns. Stop.

Posted: Thu Jan 26, 2012 2:39 am
by jiapei100
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.
*** multiple target patterns. Stop.
However, if I typed my own makefile, say,

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
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

Re: *** multiple target patterns. Stop.

Posted: Thu Jan 26, 2012 9:15 am
by eranif
jiapei100 wrote:*** multiple target patterns. Stop.
Where is the rest of the build log?
jiapei100 wrote:Anyway, how come the command line (makefile) behavior is so different from CodeLite IDE behavior?
Where is codelite's generated makefile?

Eran