Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Is there any problem if the compile line sees two '-o' 's

Reply
Thread Tools

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

 
 
parag_paul@hotmail.com
Guest
Posts: n/a
 
      09-28-2007
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

 
Reply With Quote
 
 
 
 
Keith Thompson
Guest
Posts: n/a
 
      09-28-2007
"" <> writes:
> 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.

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant compile on linux system.cant compile on cant compile onlinux system. Nagaraj C++ 1 03-01-2007 11:18 AM
501 PIX "deny any any" "allow any any" Any Anybody? Networking Student Cisco 4 11-16-2006 10:40 PM
my nic sees the network but can't connect! Taquin Noel Wireless Networking 2 04-14-2005 09:50 PM
WinXP sees WLAN, doesn't connect, no error message Jochen Rundholz Wireless Networking 2 02-22-2005 12:43 AM
Wired intermittently sees Wireless =?Utf-8?B?U2hlbGxleQ==?= Wireless Networking 0 02-09-2005 10:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57