public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* VirtualProtect problem when rebuilding tool chain
@ 1997-03-07 17:24 Boatwright, Charles
  0 siblings, 0 replies; only message in thread
From: Boatwright, Charles @ 1997-03-07 17:24 UTC (permalink / raw)
  To: 'gnu-win32@cygnus.com'

*** This is a repost with more complete information.



Hey people,

I am aware that this problem may have been beaten to 
death in recent weeks, however I have not been on the list long,
and there is no reference in the archives.

Under b17.1, I am getting a strange error when compiling.

I am attempting to rebuild the tool chain, such that ld can 
read and write a.out  i.e.  

../wip/configure --enable-targets=i386-unknown-aout,i386-unknown-pe
--program-suffix=.exe --prefix=/usr -v > configure.log 2>&1
make 

gcc -O2 -DVERSION='"cygnus-2.7.1"' -I. -I. -I../bfd -I./../bfd
-I./../include  -g -O -c ./version.c
gcc -O2  -g -O  -o size size.o -Lcygwin bucomm.o version.o filemode.o
-L../bfd -lbfd ../libiberty/libiberty.a  
c:\usr\lib\gcc-lib\i386-cygwin32/cygnus-2.7.2-961023/libgcc.a(_trampolin
e.o): In function `mprotect':
/pizza/mushroom/noer/beta17/src/gcc/libgcc2.c(.text+0x67): undefined
reference to `VirtualProtect'
make: *** [size] Error 1

(note: I added the -Lcygwin)

VirtualProtect is exported from kernel32.lib, and it is used 
for changing access protection for pages. (inside function mprotect)

I have verified that I can compile and link proprerly, i.e.  hello.c 
and some other console type apps, therefor the tool chain is working
(somewhat)

any clues what is going on?

Sorry if this is a "beaten" issue, but for my efforts it is not dead.

-chuck boatwright





-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-03-07 17:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-03-07 17:24 VirtualProtect problem when rebuilding tool chain Boatwright, Charles

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).