delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/23/19:20:11

From: jeffrey DOT hawk AT fibre DOT com
Subject: Unable to link with advapi32
23 Jan 1998 19:20:11 -0800 :
Message-ID: <9800218854.AA885419872.cygnus.gnu-win32@ccrouter1.fibre.com>
To: jeffrey DOT hawk AT ccrouter1 DOT fibre DOT com, gnu-win32 AT cygnus DOT com

I'm trying to compile the Info-zip code using Mingw32 and I'm getting the
following linker error:

nt.o(.text+0xf6):nt.c: undefined reference to `GetKernelObjectSecurity AT 20'
nt.o(.text+0x127):nt.c: undefined reference to `GetKernelObjectSecurity AT 20'
nt.o(.text+0x4bd):nt.c: undefined reference to `GetKernelObjectSecurity AT 20'
nt.o(.text+0x4ca):nt.c: undefined reference to `GetSecurityDescriptorLength AT 4'
nt.o(.text+0x535):nt.c: undefined reference to `OpenProcessToken AT 12'
nt.o(.text+0x55e):nt.c: undefined reference to `LookupPrivilegeValueA AT 12'
nt.o(.text+0x574):nt.c: undefined reference to `AdjustTokenPrivileges AT 24'
nt.o(.text+0x5a7):nt.c: undefined reference to `LookupPrivilegeValueA AT 12'
nt.o(.text+0x5b9):nt.c: undefined reference to `AdjustTokenPrivileges AT 24'
gcc: Internal compiler error: program ld got fatal signal 1

I did a dump of the libadvapi32.a module and found that these symbols all have
prepended underscores. 

How do I make the linker and compiler happy?

Thanks,
Jeff Hawk
Advanced Fibre Communication

-
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