delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/08/13:00:13

NNTP-Posting-Date: Fri, 08 Nov 2002 11:55:18 -0600
From: Charles Wilkins <chas AT pcscs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: ld: what is causing this?
Date: Fri, 08 Nov 2002 12:57:12 -0500
Message-ID: <4lunsukkrfjh1arjvdon910hm8fn6om2h5@4ax.com>
References: <sfpnsukdt3pb21a7luhnfgphsnc1crc116 AT 4ax DOT com>
X-Newsreader: Forte Agent 1.92/32.570
MIME-Version: 1.0
Lines: 40
NNTP-Posting-Host: 68.45.75.113
X-Trace: sv3-ThEhGmN1lcCXcob8XDYICWQ5PbIKlO3ZeNKJERp0dLX5yzr1i0lvXqu6XydVdn3Ch4iUOOjGSvhN1P8!0GbOHS30ZWzTpl0ebzKFa2/VRDg6H7mQw+zf11OqTnzqV3aLhUnbkyhvbw3GfDcvk5/xYlc=
X-Complaints-To: abuse AT comcast DOT com
X-DMCA-Complaints-To: dmca AT comcast DOT net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.1
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Fri, 08 Nov 2002 11:33:22 -0500, Charles Wilkins <chas AT pcscs DOT com>
wrote:

>Given the case for linux host crosscompiler i686-pc-msdosdjgpp-gcc..
>
>i686-pc-msdosdjgpp-gcc -Wl,--verbose
>
>(/usr/local/compiler/cross/djgpp/lib/gcc-lib/i686-pc-msdosdjgpp/3.2/../../../../i6/usr/local/compiler/cross/djgpp/lib/gcc-lib/i686-pc-msdosdjgpp/3.2/../../../../i686-pc-msdosdjgpp/lib/crt0.o(.data+0xc2):crt0.s:
>undefined reference to `_main'
>
>/usr/local/compiler/cross/djgpp/lib/gcc-lib/i686-pc-msdosdjgpp/3.2/../../../../i686-pc-msdosdjgpp/lib/libc.a(crt1.o)(.text+0x404):crt1.c:
>undefined reference to `_main'
>
>** Notice the mangled path above ~/../i6/usr/local/~

ok it seems the output was simply piped out of order, but the question
still remains as to what could be causing the undefined reference.

I assume that the output should be read as:

(/usr/local/compiler/cross/djgpp/lib/gcc-lib/i686-pc-msdosdjgpp/3.2/../../../../i686-pc-msdosdjgpp/lib/libc.a)fflush.o

/usr/local/compiler/cross/djgpp/lib/gcc-lib/i686-pc-msdosdjgpp/3.2/../../../../i686-pc-msdosdjgpp/lib/crt0.o(.data+0xc2):crt0.s:
undefined reference to `_main'

/usr/local/compiler/cross/djgpp/lib/gcc-lib/i686-pc-msdosdjgpp/3.2/../../../../i686-pc-msdosdjgpp/lib/libc.a(crt1.o)(.text+0x404):crt1.c:
undefined reference to `_main'

Charles

>Could this be causing the undefined reference?
>
>Where can i go to fix this?
>
>
>Best regards,
>Charles
>
>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019