delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/04/22/04:15:41

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Sun, 22 Apr 2007 10:09:43 +0200
From: Manuel Collado <m DOT collado AT lml DOT ls DOT fi DOT upm DOT es>
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
Newsgroups: comp.os.msdos.djgpp
Subject: Re: gmp.h from GMP package - how to include?
References: <j4OdneZCoa5JkLXbnZ2dnUVZ_oupnZ2d AT comcast DOT com> <462873a0$1 AT news DOT upm DOT es> <262dnTAaCpMfMrTbnZ2dnUVZ_tqnnZ2d AT comcast DOT com> <EvCdnTIj-a9SGLfbnZ2dnUVZ_u_inZ2d AT comcast DOT com>
In-Reply-To: <EvCdnTIj-a9SGLfbnZ2dnUVZ_u_inZ2d@comcast.com>
NNTP-Posting-Host: 138.100.242.201
Message-ID: <462b188b$1@news.upm.es>
X-Trace: news.upm.es 1177229451 138.100.242.201 (22 Apr 2007 10:10:51 +0200)
Lines: 35
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Jim Michaels escribió:
> Jim Michaels wrote:
>> Manuel Collado wrote:
>>> Jim Michaels escribió:
>>>> I extracted gmp412b.zip

Are you really sure it wasn't gmp412s.zip?

>>>> [snip]
>>>> I found gmp.h extracted into f:/djgpp/2.03/v2gnu/include/gmp.h
>> [snip]  I had to go into the .env file and insert 
>> ;%DJENV%/v2gnu/include and ;%DJENV%/v2gnu/lib in appropriate places.
>>
>> but now I can't link.
>> I get:
>> no errors
>> Creating: fract.exe
>> Error: fract.o:fract.cc:(.gnu.linkonce.t._ZN8fractionC1Ell+0xe): 
>> undefined reference to `___gmpq_init'
>> Error: fract.o:fract.cc:(.gnu.linkonce.t._ZN8fractionC1Ell+0x24): 
>> undefined reference to `___gmpq_set_si'
>> Error: fract.o:fract.cc:(.gnu.linkonce.t._ZN8fractionD1Ev+0xe): 
>> undefined reference to `___gmpq_clear'
> 
> by the way, I can at least now compile.  sort of.  it doesn't link - I 
> get an error from ld.  I included gmp.h
> #include <gmp.h>

All you describe are the precise symptoms of installing the sources 
instead of the binaries. Please INSTALL (uncompress) gmp412b.zip. And 
please DO NOT MODIFY djgpp.env

Regards.
-- 
Manuel Collado - http://lml.ls.fi.upm.es/~mcollado

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019