public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* mingw32
@ 1998-01-11  1:16 Narayan Natarajan
  1998-01-12 20:11 ` mingw32 Mumit Khan
  0 siblings, 1 reply; 7+ messages in thread
From: Narayan Natarajan @ 1998-01-11  1:16 UTC (permalink / raw)
  To: gnu-win32

Hi,

Does mingw32 have getopt in its libraries? I am having trouble compiling
code using getopt with mingw32.
 Also, could not find getopt function call man page in the online tech
reference, any reason that its not there?

Thanks in advance.

- Narayan
| Narayan     _/~~~~~~~~~~~~~~~~~~~~~ venkman1@ix.netcom.com ~~~~~~~~~~~~/
|Natarajan  _/                                   .       .____ _       _/
|         _/ "I am not a vegetarian        *   .     x  -(____/ |  _  /
|       _/ because I love animals;              ________/____/  \ ( )-----
|     _/ I am a vegetarian because I          ,/                _ ( -------
|   _/  hate plants."                        <________\       //  (_)-----
| _/                                       --<==  *    |_____/  _
|/  http://www.netcom.com/~venkman1                   -(_____) (_)-----
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* Re: mingw32
  1998-01-11  1:16 mingw32 Narayan Natarajan
@ 1998-01-12 20:11 ` Mumit Khan
  0 siblings, 0 replies; 7+ messages in thread
From: Mumit Khan @ 1998-01-12 20:11 UTC (permalink / raw)
  To: Narayan Natarajan; +Cc: gnu-win32

Narayan Natarajan <venkman1@ix.netcom.com> writes:
> Does mingw32 have getopt in its libraries? I am having trouble compiling
> code using getopt with mingw32.

yes, and no. The GNU getopt (as well as getopt_long) is part of the 
libiberty library, which should have been in the distribution (see the
<root>/lib directory), unless I missed it somehow. Unfortunately, the
getopt.h is not installed by default, which provides the prototypes and
some of the definitions needed for getopt_long. Let me know if you can't
find it in some other GNU package and I'll email it to you.

fyi, getopt is not ANSI, hence not guaranteed to be in an ANSI-only runtime;
it is however in the POSIX.1 specs, so most real systems provide it. My 
own code uses getopt that is built along with the package, so it's not an 
issue (and that's why I didn't miss the missing getopt prototype).

As a quick hack:

  extern int getopt(int argc, char * const argv[], const char *optstring);
  extern char *optarg;
  extern int optind, opterr, optopt;

  int main (int argc, char *argv[]) {
    /* use getopt */
  
  }

Now link -liberty as well.

  % cc -o getopt_test.exe getopt_test.c -liberty.

and see what happens.

Mumit
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* mingw32
  1999-02-17  3:54 mingw32 Aldo Mazzilli
@ 1999-02-28 23:02 ` Aldo Mazzilli
  0 siblings, 0 replies; 7+ messages in thread
From: Aldo Mazzilli @ 1999-02-28 23:02 UTC (permalink / raw)
  To: gnu-win32, crossgcc

I want to build a cross-compiler from Solaris to Win32 using Mingw32.
Can someone tell me the best way for that (any ideas, URL ...)

Thanks

-- 
=======================================================================
,',',',',',',' Aldo MAZZILLI             | INRIA Rhone-Alpes          |
,',',',',',',' aldo.mazzilli@inrialpes.fr| 655, avenue de l'Europe    |
,',',',',',',' Tel : 04 76 61 53 91      | 38330 Montbonnot St Martin |
,',',',',',',' Fax : 04 76 61 52 52      | FRANCE                     |
,',' *** Site WEB : http://www.inrialpes.fr/vasy/people/Aldo.Mazzilli |
=======================================================================

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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

* mingw32
@ 1999-02-17  3:54 Aldo Mazzilli
  1999-02-28 23:02 ` mingw32 Aldo Mazzilli
  0 siblings, 1 reply; 7+ messages in thread
From: Aldo Mazzilli @ 1999-02-17  3:54 UTC (permalink / raw)
  To: gnu-win32, crossgcc

I want to build a cross-compiler from Solaris to Win32 using Mingw32.
Can someone tell me the best way for that (any ideas, URL ...)

Thanks

-- 
=======================================================================
,',',',',',',' Aldo MAZZILLI             | INRIA Rhone-Alpes          |
,',',',',',',' aldo.mazzilli@inrialpes.fr| 655, avenue de l'Europe    |
,',',',',',',' Tel : 04 76 61 53 91      | 38330 Montbonnot St Martin |
,',',',',',',' Fax : 04 76 61 52 52      | FRANCE                     |
,',' *** Site WEB : http://www.inrialpes.fr/vasy/people/Aldo.Mazzilli |
=======================================================================

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: mingw32
@ 1998-01-12 10:42 JONCKHEERE
  0 siblings, 0 replies; 7+ messages in thread
From: JONCKHEERE @ 1998-01-12 10:42 UTC (permalink / raw)
  To: venkman1; +Cc: gnu-win32

getopt is not supported under the POSIX standard and has been deprecated on many 
(most? certainly IRIX and DECUnix) Unix platforms. Therefore it isn't support 
under cygwin32. It has been replaced by getopts. The functionality is the same 
though getopts is somewhat easier to use.

Alan
===============================================================================
Date: Sun, 11 Jan 1998 00:26:24 -0800
From: Narayan Natarajan <venkman1@ix.netcom.com>
Subject: mingw32
Sender: owner-gnu-win32@cygnus.com
X-Sender: venkman1@popd.ix.netcom.com
To: gnu-win32@cygnus.com
Message-id: < 3.0.1.32.19980111002624.00953b90@popd.ix.netcom.com >
MIME-version: 1.0
X-Mailer: Windows Eudora Light Version 3.0.1 (32)
Content-type: text/plain; charset="us-ascii"
Content-transfer-encoding: 7BIT
Precedence: bulk

Hi,

Does mingw32 have getopt in its libraries? I am having trouble compiling
code using getopt with mingw32.
 Also, could not find getopt function call man page in the online tech
reference, any reason that its not there?

Thanks in advance.

- Narayan
| Narayan     _/~~~~~~~~~~~~~~~~~~~~~ venkman1@ix.netcom.com ~~~~~~~~~~~~/
|Natarajan  _/                                   .       .____ _       _/
|         _/ "I am not a vegetarian        *   .     x  -(____/ |  _  /
|       _/ because I love animals;              ________/____/  \ ( )-----
|     _/ I am a vegetarian because I          ,/                _ ( -------
|   _/  hate plants."                        <________\       //  (_)-----
| _/                                       --<==  *    |_____/  _
|/  http://www.netcom.com/~venkman1                   -(_____) (_)-----
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* Re: mingw32
@ 1997-09-18  9:39 Robert Dewar
  0 siblings, 0 replies; 7+ messages in thread
From: Robert Dewar @ 1997-09-18  9:39 UTC (permalink / raw)
  To: chat, david.c.hoos.sr, gnu-win32

mingw32 is an interface to the standard Microsoft C libraries
cygwin32 is a completely new library written from scratch by Cygnus

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

* mingw32
@ 1997-09-18  9:06 David C. Hoos, Sr.
  0 siblings, 0 replies; 7+ messages in thread
From: David C. Hoos, Sr. @ 1997-09-18  9:06 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com', 'chat@gnat.com'

Hi all,
What, pray tell is mingw32?  How does it differ from cygwin32.com?
Thanks for any light on the subject.

David C. Hoos, Sr.,
david.c.hoos.sr@ada95.com

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

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

end of thread, other threads:[~1999-02-28 23:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-01-11  1:16 mingw32 Narayan Natarajan
1998-01-12 20:11 ` mingw32 Mumit Khan
  -- strict thread matches above, loose matches on Subject: below --
1999-02-17  3:54 mingw32 Aldo Mazzilli
1999-02-28 23:02 ` mingw32 Aldo Mazzilli
1998-01-12 10:42 mingw32 JONCKHEERE
1997-09-18  9:39 mingw32 Robert Dewar
1997-09-18  9:06 mingw32 David C. Hoos, Sr.

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