*** multiple target patterns. Stop.

CodeLite installation/troubleshooting forum
jiapei100
CodeLite Expert
Posts: 115
Joined: Wed Dec 30, 2009 8:29 am
Genuine User: Yes
IDE Question: C++
Location: Surrey, BC, Canada
Contact:

*** multiple target patterns. Stop.

Post 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
Welcome to Vision Open
http://www.visionopen.com
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: *** multiple target patterns. Stop.

Post 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
Make sure you have read the HOW TO POST thread
Post Reply