This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with ld on cygwin

At 05:49 AM 9/5/2002, LEE LIK CHUAN wrote:
>I have download cgywin and installed on my computer.
>However when i try to build a program by the command:
>ld test.o
>i got the following msg:
>ld: warning: cannot find entry symbol _mainCRTStartup;
>defaulting to 00401000
>test.o(.text+0xb):test.cpp: undefined reference to
>test.o(.text+0x13):test.cpp: undefined reference to
>`endl(ostream &)'
>test.o(.text+0x20):test.cpp: undefined reference to
>test.o(.text+0x25):test.cpp: undefined reference to
>`ostream::operator<<(char co
>nst *)'
>Can anyone help?

Actually, the email archives can help with a problem like
this.  It's asked incessantly so there are lots of reference
points! ;-)  

This is not a Cygwin issue.  It's a gcc issue.  You're compiling
C++ code with gcc.  Don't.  Use g++ instead.

Larry Hall                    
RFK Partners, Inc.            
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]