:::Windows compilation/linking question:::

Pathos pathos@vianw.pt
Wed, 16 Apr 2003 04:03:09 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C303CD.17D1CBB0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi there!

I'm having some problems using the gmp lib, i have WinXP, i use VS 6 and =
i compiled the sources on the latest cygwin with the --host=3Dwindows =
flag.

First of all the output file has a .a extension, i find that weird since =
i read some posts on this mailling list and everyone, even on windows, =
talks allways about .libs, maybe i did something wrong. None the less, =
when i linked the .a file to the VS project i didn't got a file =
corruption error, so i assume it must be the right format.

My problem is this...
Linking...
libgmp.a(memory.o) : error LNK2001: unresolved external symbol =
__impure_ptr
Debug/Secure Remote Chat.exe : fatal error LNK1120: 1 unresolved =
externals
Error executing link.exe.

I tryed including all the headers that we're mencioned in the GMP =
manual, and still didn't work, i tryed making a search on every header =
file for that external symbol, and  i found none. I tryed google to see =
if i could find something on it, but the only decent info would allways =
come from this mailling list, and i still haven't found an answer for my =
particular problem.

So if anyone could help me out i'de be much apreciated.
------=_NextPart_000_0005_01C303CD.17D1CBB0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi there!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm having some problems using the gmp =
lib, i have=20
WinXP, i use VS 6 and i compiled the sources on the latest cygwin with =
the=20
--host=3Dwindows flag.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>First of all the output file has a .a =
extension, i=20
find that weird since i read some posts on this mailling list and =
everyone, even=20
on windows, talks allways about .libs, maybe i did something wrong. None =
the=20
less, when i linked the .a file to the VS project i didn't got a file =
corruption=20
error, so i assume it must be the right format.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My problem is this...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Linking...<BR>libgmp.a(memory.o) : =
error LNK2001:=20
unresolved external symbol __impure_ptr<BR>Debug/Secure Remote Chat.exe =
: fatal=20
error LNK1120: 1 unresolved externals<BR>Error executing =
link.exe.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I tryed including all the headers that =
we're=20
mencioned in the GMP manual, and still didn't work, i tryed making a =
search on=20
every header file for that external symbol, and&nbsp; i found none. I =
tryed=20
google to see if i could find something on it, but the only decent info =
would=20
allways come from this mailling list, and i still haven't found an =
answer for my=20
particular problem.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>So if anyone could help me out i'de be =
much=20
apreciated.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C303CD.17D1CBB0--