Is there any problem if the compile line sees two '-o' 's

P

parag_paul

I mean
cc -o p1.so -o p2.so

or cc -o p1.so -o p1.so
Is there are any problem. I understand that it is upto to the arg
parser to take care of this,.
beacuse My makefiles pick up from diff places , I was worried
 
K

Keith Thompson

I mean
cc -o p1.so -o p2.so

or cc -o p1.so -o p1.so
Is there are any problem. I understand that it is upto to the arg
parser to take care of this,.
beacuse My makefiles pick up from diff places , I was worried

This is a question about your compiler, not about the C language. The
C standard says nothing about command-line arguments.

I suggest consulting your compiler's documentation, or, if that fails,
asking in a newsgroup that supports your compiler or operating system.

But assuming "-o" specifies an output file, it doesn't seem to make
much sense to specify two of them (unless the compiler specifically is
able to generate two or more output files). You probably need to fix
your Makefiles.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,438
Messages
2,571,699
Members
48,796
Latest member
Greg L.
Top