delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/03/27/11:59:54

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: -lkernel32 bug [Re: API's that certainly do work.[...[...]]]
27 Mar 1997 11:59:54 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <9703271614.AA03146.cygnus.gnu-win32@modi.xraylith.wisc.edu>
Original-To: Colin Peters <colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp>
Original-Cc: gnu-win32 AT cygnus DOT com
In-Reply-To: Your message of "Wed, 26 Mar 1997 14:00:50 +0900."
<01BC39EE DOT 1D621C60 AT gbird0>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Colin Peters <colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp> writes:
> 
> To summarize: The GNU-Win32 version of ld appears to have problems if
> you link libkernel32 explicitly (e.g. by putting -lkernel32 on the gcc
> command line). This may cause the executable to mysteriously fail under
> Cygwin32 or produce a GP fault under Mingw32 (the difference is that
> Mingw32 doesn't install it's own exception handler). These problems may
> appear or disappear depending on whether certain functions (or numbers
> of functions?) are linked from the Win32 API (possibly from kernel32?).
> 
> To summarize the summary: Don't link with -lkernel32 on your command
> line.

THANK YOU THANK YOU THANK YOU.

I have spent an amazing amount of time getting octave 2.0.5 to even start
up properly and blamed everything from libstdc++ to my g77 patches, and
turned out be precisely the problem you mention. Octave configure extracts
all the libraries that are linked normally and puts them on the link
line explicitly, causing me nothing short of nightmares as a result.

Took away the -lkernel32 from link line and voila! Life is good.

Regards,
Mumit -- khan AT xraylith DOT wisc DOT edu
http://www.xraylith.wisc.edu/~khan/
-
For help on using this list, 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