public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Date / Time Stuff..
@ 1997-08-31 13:43 Keet / Foxbird
  1997-09-03  0:42 ` Eric Britten
  0 siblings, 1 reply; 2+ messages in thread
From: Keet / Foxbird @ 1997-08-31 13:43 UTC (permalink / raw)
  To: gnu-win32

I tried compiling some 'out-of-the-box' examples from a learn C++ guide and
I get a really nice error that looks like this:

C:\WINDOWS\Desktop\fb5.56\test\c++tutor\source>c++ -g -O -o date date.cpp
C:\gnuwin32\b18\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\cygnus-2.7.2-97040
4\..
/../../../i386-cygwin32\lib/libcygwin.a(libcmain.o)(.text+0x1e):libcmain.cc:
 und
efined reference to `WinMain@16'
C__~1.EXE: Internal compiler error: program ld got fatal signal 1

Am I missing a library, an environment setting or something along those
lines? I've compiled other date stuff before, but this is the first one
that doesn't work. If you need the source, just ask, I've got it available.

- Greg Neujahr


-
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] 2+ messages in thread

* Re: Date / Time Stuff..
  1997-08-31 13:43 Date / Time Stuff Keet / Foxbird
@ 1997-09-03  0:42 ` Eric Britten
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Britten @ 1997-09-03  0:42 UTC (permalink / raw)
  To: Keet / Foxbird; +Cc: gnu-win32

Keet / Foxbird wrote:

> I tried compiling some 'out-of-the-box' examples from a learn C++
> guide and
> I get a really nice error that looks like this:
>
> C:\WINDOWS\Desktop\fb5.56\test\c++tutor\source>c++ -g -O -o date
> date.cpp
> C:\gnuwi
> 32\b18\H-i386-cygwin32\lib\gcc-lib\i386-cygwin32\cygnus-2.7.2-97040
> 4\..
> /../
> ./../i386-cygwin32\lib/libcygwin.a(libcmain.o)(.text+0x1e):libcmain.cc:
>
>  und
> efined reference to `WinMain@16'
> C__~1.EXE: Internal compiler error: program ld got fatal signal 1
>
> Am I missing a library, an environment setting or something along
> those
> lines? I've compiled other date stuff before, but this is the first
> one
> that doesn't work. If you need the source, just ask, I've got it
> available.
>

This can happen when you are missing a main() function in your program.
If you are then gcc and ld will link a default main() that calls
WinMain.  This is so people who write windows programs can compile them
using gcc/g++.

Hope this helps.

Eric Britten

> - Greg Neujahr
>



-
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] 2+ messages in thread

end of thread, other threads:[~1997-09-03  0:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-31 13:43 Date / Time Stuff Keet / Foxbird
1997-09-03  0:42 ` Eric Britten

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