delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/10/20:06:32

From: jmamer AT anderson DOT ucla DOT edu (John Mamer)
Subject: impure ptr
10 Jan 1999 20:06:32 -0800 :
Message-ID: <Pine.HPP.3.95q.990110142126.16350A-100000.cygnus.gnu-win32@risc.anderson.ucla.edu>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

Hi there!
  I am trying to compile a program to work with the win32
api only (not through the cygwin layer).  I read the FAQ and
scanned the archives.  The advice seems to be to hand the
-mno-cygwin to gcc.  Here's my problem:

I type: gcc myprog.cpp -mno-cygwin 

It compiles and tries to link but the linker comes up with
multiple errors of the form:

C:\TEMP\cckpwiFV.o(.text+0x2bb):myprog.cc: undefined
reference to '_impure_ptr'

I used to get this kind of error when I inadvertantly tried
to link cygwin produced object files with mingw32.  I'm
guessing that something similar is happening here.   I read
the FAQ, but all I was able to uncover was the advice to use
the -mno-cygwin as a gcc flag. I tried running gcc with -v
and got a lot of output, some of which seemed to indicate
that the linker was looking at the cygwin libs (which I
thougth it wasn't supposed to do with the -mno-cygwin flag).  

Any help that anyone can give here would be greatly
appreciated.  I shall continue to read through the mail
archives in the mean time. 

thank you.
j

-
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