public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: cc1plus errors
@ 2002-10-04 16:14 Nathan .
  2002-10-04 21:32 ` Hans-Peter Nilsson
  2002-10-04 21:48 ` Phil Edwards
  0 siblings, 2 replies; 10+ messages in thread
From: Nathan . @ 2002-10-04 16:14 UTC (permalink / raw)
  To: phil; +Cc: gcc

Thanks a lot Phil. It was the "-m" option. And yes -pthreads does work. It 
was a typo I was doing. "-pthread" without s.
Also I could not find any of these options in the man pages of g++ on my 
system. Perhaps it is old. If you refer me to online man page for gcc/g++.

By the way I still need to archive all the .o files. The -xar ,  -xarch=v8a 
etc options dont work with g++ . What is the alternative.

Thanks a ton again!
-Nathan


>From: Phil Edwards <phil@jaj.com>
>To: "Nathan ." <snmptoddler@hotmail.com>
>CC: gcc@gcc.gnu.org
>Subject: Re: cc1plus errors
>Date: Fri, 4 Oct 2002 18:58:47 -0400
>
>On Fri, Oct 04, 2002 at 10:55:39PM +0000, Nathan . wrote:
> > ===========errors==================================================
> > /usr/local/bin/g++ -I/usr/openwin/include -I../xobj  -I.
> > -I/opt/SUNWmotif/share/include -Dsun -D_REENTRANT -m   -c  button.cc
> > cc1plus: Invalid option `-c'
>
>Probably because "-m" is not an option, and it's getting confused.
>
>
> > #1. I've no idea where the "c" option is coming. It is not specified in 
>the
> > Makefile. Does the make utility puts it since I'm trying to create a
> > library.
>
>You need to take a closer look at the makefile, and get some advice on
>what is involved in the "seperate compilation" model used in C and C++.
>
>
> > #3. What is the valid multithreaded option in g++ flags. I tried 
>-pthread,
> > doesnt work.
>
>Try -pthreads, or look in the manual.
>
>
>Phil
>
>--
>I would therefore like to posit that computing's central challenge, viz. 
>"How
>not to make a mess of it," has /not/ been met.
>                                                  - Edsger Dijkstra, 
>1930-2002




_________________________________________________________________
Join the worldÂ’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cc1plus errors
  2002-10-04 16:14 cc1plus errors Nathan .
@ 2002-10-04 21:32 ` Hans-Peter Nilsson
  2002-10-04 22:45   ` Phil Edwards
  2002-10-05  8:31   ` cc1plus errors Gabriel Dos Reis
  2002-10-04 21:48 ` Phil Edwards
  1 sibling, 2 replies; 10+ messages in thread
From: Hans-Peter Nilsson @ 2002-10-04 21:32 UTC (permalink / raw)
  To: Nathan .; +Cc: phil, gcc

On Fri, 4 Oct 2002, Nathan . wrote:

> Thanks a lot Phil. It was the "-m" option. And yes -pthreads does work. It
> was a typo I was doing. "-pthread" without s.

Actually, on GNU/Linux system, it's spelled "-pthread" like you
did.  Maybe "-pthread" can be offered as a synonym to
"-pthreads" on Solaris for interoperability reasons?

brgds, H-P

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cc1plus errors
  2002-10-04 16:14 cc1plus errors Nathan .
  2002-10-04 21:32 ` Hans-Peter Nilsson
@ 2002-10-04 21:48 ` Phil Edwards
  1 sibling, 0 replies; 10+ messages in thread
From: Phil Edwards @ 2002-10-04 21:48 UTC (permalink / raw)
  To: Nathan .; +Cc: gcc

On Fri, Oct 04, 2002 at 11:03:07PM +0000, Nathan . wrote:
> Also I could not find any of these options in the man pages of g++ on my 
> system. Perhaps it is old. If you refer me to online man page for gcc/g++.

http://gcc.gnu.org/onlinedocs/

> By the way I still need to archive all the .o files. The -xar ,  -xarch=v8a 
> etc options dont work with g++ . What is the alternative.

Those are Sun options, not GCC options.  Try "man ar" instead.

Phil

-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cc1plus errors
  2002-10-04 21:32 ` Hans-Peter Nilsson
@ 2002-10-04 22:45   ` Phil Edwards
  2002-10-05  0:00     ` Make -pthread the generic Posix-threads option for gcc (was: Re: cc1plus errors) Hans-Peter Nilsson
  2002-10-05  8:31   ` cc1plus errors Gabriel Dos Reis
  1 sibling, 1 reply; 10+ messages in thread
From: Phil Edwards @ 2002-10-04 22:45 UTC (permalink / raw)
  To: Hans-Peter Nilsson; +Cc: Nathan ., gcc

On Fri, Oct 04, 2002 at 11:25:28PM -0400, Hans-Peter Nilsson wrote:
> On Fri, 4 Oct 2002, Nathan . wrote:
> 
> > Thanks a lot Phil. It was the "-m" option. And yes -pthreads does work. It
> > was a typo I was doing. "-pthread" without s.
> 
> Actually, on GNU/Linux system, it's spelled "-pthread" like you
> did.  Maybe "-pthread" can be offered as a synonym to
> "-pthreads" on Solaris for interoperability reasons?

And on other systems it's -mthread, or it used to be.  And some platforms
know about multiple threading options.

The goal of whoever "designed" the rat's nest of threading options seems
to have been to make the spelling of the option(s) as close as possible
to the equivalent option(s) of the native compiler.  Thus the lack of
consistency across platforms.


Phil

-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Make -pthread the generic Posix-threads option for gcc (was: Re: cc1plus errors)
  2002-10-04 22:45   ` Phil Edwards
@ 2002-10-05  0:00     ` Hans-Peter Nilsson
  2002-10-05  7:02       ` Gabriel Dos Reis
  0 siblings, 1 reply; 10+ messages in thread
From: Hans-Peter Nilsson @ 2002-10-05  0:00 UTC (permalink / raw)
  To: Phil Edwards; +Cc: Nathan ., gcc

On Fri, 4 Oct 2002, Phil Edwards wrote:
> On Fri, Oct 04, 2002 at 11:25:28PM -0400, Hans-Peter Nilsson wrote:
> > Maybe "-pthread" can be offered as a synonym to
> > "-pthreads" on Solaris for interoperability reasons?
>
> And on other systems it's -mthread, or it used to be.  And some platforms
> know about multiple threading options.
>
> The goal of whoever "designed" the rat's nest of threading options seems
> to have been to make the spelling of the option(s) as close as possible
> to the equivalent option(s) of the native compiler.  Thus the lack of
> consistency across platforms.

Well, GNU/Linux has no (more so) native compiler, and it has the
largest installed base (he says, blatantly ignoring to check up
on that), so I think offering "-pthread" as the generic gcc
option to enable Posix-threads would be useful.  At least it'd
be more useful than throwing up ones hands ;-) at the maze of
phread-options all alike.

brgds, H-P

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Make -pthread the generic Posix-threads option for gcc (was: Re:  cc1plus errors)
  2002-10-05  0:00     ` Make -pthread the generic Posix-threads option for gcc (was: Re: cc1plus errors) Hans-Peter Nilsson
@ 2002-10-05  7:02       ` Gabriel Dos Reis
  2002-10-06  0:02         ` Phil Edwards
  0 siblings, 1 reply; 10+ messages in thread
From: Gabriel Dos Reis @ 2002-10-05  7:02 UTC (permalink / raw)
  To: Hans-Peter Nilsson; +Cc: Phil Edwards, Nathan ., gcc

Hans-Peter Nilsson <hp@bitrange.com> writes:

[...]

| Well, GNU/Linux has no (more so) native compiler, and it has the
| largest installed base (he says, blatantly ignoring to check up
| on that), so I think offering "-pthread" as the generic gcc
| option to enable Posix-threads would be useful.

I'm highly supportive of that effort -- it surely would simplify
things.

Thanks,

-- Gaby

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: cc1plus errors
  2002-10-04 21:32 ` Hans-Peter Nilsson
  2002-10-04 22:45   ` Phil Edwards
@ 2002-10-05  8:31   ` Gabriel Dos Reis
  1 sibling, 0 replies; 10+ messages in thread
From: Gabriel Dos Reis @ 2002-10-05  8:31 UTC (permalink / raw)
  To: Hans-Peter Nilsson; +Cc: Nathan ., phil, gcc

Hans-Peter Nilsson <hp@bitrange.com> writes:

| On Fri, 4 Oct 2002, Nathan . wrote:
| 
| > Thanks a lot Phil. It was the "-m" option. And yes -pthreads does work. It
| > was a typo I was doing. "-pthread" without s.
| 
| Actually, on GNU/Linux system, it's spelled "-pthread" like you
| did.  Maybe "-pthread" can be offered as a synonym to
| "-pthreads" on Solaris for interoperability reasons?

Yes!

-- Gaby

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Make -pthread the generic Posix-threads option for gcc (was: Re:  cc1plus errors)
  2002-10-05  7:02       ` Gabriel Dos Reis
@ 2002-10-06  0:02         ` Phil Edwards
  2002-10-06  8:32           ` kwall
  0 siblings, 1 reply; 10+ messages in thread
From: Phil Edwards @ 2002-10-06  0:02 UTC (permalink / raw)
  To: Gabriel Dos Reis; +Cc: Hans-Peter Nilsson, Nathan ., gcc

On Sat, Oct 05, 2002 at 02:04:21PM +0200, Gabriel Dos Reis wrote:
> Hans-Peter Nilsson <hp@bitrange.com> writes:
> 
> [...]
> 
> | Well, GNU/Linux has no (more so) native compiler, and it has the
> | largest installed base (he says, blatantly ignoring to check up
> | on that), so I think offering "-pthread" as the generic gcc
> | option to enable Posix-threads would be useful.
> 
> I'm highly supportive of that effort -- it surely would simplify
> things.

At this point, I think anything would help.  :-)  Someone told me Linux
was about to gain at least one more major threading library (linux-threads
or some such from IBM).

I'd like to scrap the whole thing and standardize --threads=<model>, where
the choices for <model> might vary across platforms, but the spelling of
"--threads" wouldn't.

Phil

-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Make -pthread the generic Posix-threads option for gcc (was: Re:  cc1plus errors)
  2002-10-06  0:02         ` Phil Edwards
@ 2002-10-06  8:32           ` kwall
  2002-10-06  8:39             ` Make -pthread the generic Posix-threads option for gcc Florian Weimer
  0 siblings, 1 reply; 10+ messages in thread
From: kwall @ 2002-10-06  8:32 UTC (permalink / raw)
  To: gcc; +Cc: Phil Edwards

On Sat, Oct 05, 2002 at 07:39:13PM -0400, Phil Edwards wrote:
> On Sat, Oct 05, 2002 at 02:04:21PM +0200, Gabriel Dos Reis wrote:
> > Hans-Peter Nilsson <hp@bitrange.com> writes:
> > 
> > [...]
> > 
> > | Well, GNU/Linux has no (more so) native compiler, and it has the
> > | largest installed base (he says, blatantly ignoring to check up
> > | on that), so I think offering "-pthread" as the generic gcc
> > | option to enable Posix-threads would be useful.
> > 
> > I'm highly supportive of that effort -- it surely would simplify
> > things.
> 
> At this point, I think anything would help.  :-)  Someone told me Linux
> was about to gain at least one more major threading library (linux-threads
> or some such from IBM).

There's a project denominated Next Generation POSIX Threads at IBM
(http://oss.software.ibm.com/developerworks/opensource/pthreads/)
intended to replace linux-threads.

Kurt
-- 
If someone had told me I would be Pope one day, I would have studied
harder.
		-- Pope John Paul I

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Make -pthread the generic Posix-threads option for gcc
  2002-10-06  8:32           ` kwall
@ 2002-10-06  8:39             ` Florian Weimer
  0 siblings, 0 replies; 10+ messages in thread
From: Florian Weimer @ 2002-10-06  8:39 UTC (permalink / raw)
  To: kwall; +Cc: gcc, Phil Edwards

kwall@kurtwerks.com writes:

> There's a project denominated Next Generation POSIX Threads at IBM
> (http://oss.software.ibm.com/developerworks/opensource/pthreads/)
> intended to replace linux-threads.

And I believe a few people still use FSU Threads, which offer a
different aspect of POSIX conformance than other threading
implementations running on Linux.

And there is the new threading implementation for GNU libc...

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-10-06 15:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-04 16:14 cc1plus errors Nathan .
2002-10-04 21:32 ` Hans-Peter Nilsson
2002-10-04 22:45   ` Phil Edwards
2002-10-05  0:00     ` Make -pthread the generic Posix-threads option for gcc (was: Re: cc1plus errors) Hans-Peter Nilsson
2002-10-05  7:02       ` Gabriel Dos Reis
2002-10-06  0:02         ` Phil Edwards
2002-10-06  8:32           ` kwall
2002-10-06  8:39             ` Make -pthread the generic Posix-threads option for gcc Florian Weimer
2002-10-05  8:31   ` cc1plus errors Gabriel Dos Reis
2002-10-04 21:48 ` Phil Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).