delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/03/17/06:08:25

From: dcosper AT gdn DOT net (Dcosper)
Subject: Re: Cannot build executable
17 Mar 1998 06:08:25 -0800 :
Message-ID: <350D16A7.5061DD14.cygnus.gnu-win32@gdn.net>
References: <19980311120516 DOT 50169 AT support DOT support DOT tivoli DOT com>
Mime-Version: 1.0
To: wwalker AT corp DOT tivoli DOT com, gnu-win32 AT cygnus DOT com

Wayne Walker wrote:

> Can anyone see what I'm doing wrong?  The error looks like it is parsing
> the arguments to gcc wrong.  It appears to be attempting to open a file
> name -lsocket rather than libsocket.a
>
> This is what I get when I try my first build with the cdk (b18, because
> my programs will HAVE to exec Win32 apps without closing file
> descriptors).  GCC_EXEC_PREFIX is set to:
>
> C:\gnuwin32\H-i386-cygwin32\lib\gcc-lib\
>
> I loaded in the default location.
>
> bash$ make httpsvc
> gcc -o httpsvc httpsvc.o sgi_utils.o -L/gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/lib/  -lsocket -lresolv -lnsl -lucb
> /gnuwin32/b18/H-i386-cygwin32/i386-cygwin32/bin/ld.exe: cannot open -lsocket: No such file or directory
> gcc: Internal compiler error: program ld got fatal signal 1
> make: *** [httpsvc] Error 1

I get that same error and have to actually change the make files to show something like this

LIBS = /cygnus/B18/H-i386-cygwin32/i386-cygwin32/lib/libsoket.a
or i do the linking manually at bash..
I would like to know why this does this too. I have messed with some of the files contained
in the cdk but then who hasent ???

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

- Raw text -


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