This is the mail archive of the cygwin@sourceware.cygnus.com 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]

Unable to link with advapi32


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@20'
nt.o(.text+0x127):nt.c: undefined reference to `GetKernelObjectSecurity@20'
nt.o(.text+0x4bd):nt.c: undefined reference to `GetKernelObjectSecurity@20'
nt.o(.text+0x4ca):nt.c: undefined reference to `GetSecurityDescriptorLength@4'
nt.o(.text+0x535):nt.c: undefined reference to `OpenProcessToken@12'
nt.o(.text+0x55e):nt.c: undefined reference to `LookupPrivilegeValueA@12'
nt.o(.text+0x574):nt.c: undefined reference to `AdjustTokenPrivileges@24'
nt.o(.text+0x5a7):nt.c: undefined reference to `LookupPrivilegeValueA@12'
nt.o(.text+0x5b9):nt.c: undefined reference to `AdjustTokenPrivileges@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@cygnus.com" with one line of text: "help".


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