ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2007/05/16/03:15:48

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Wed, 16 May 2007 01:53:49 -0500
Date: Tue, 15 May 2007 23:53:46 -0700
From: Jim Michaels <jmichae3REMOVE AT THISPLEASEyahoo DOT com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
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>
Message-ID: <2t-dndlPSMHgN9fbnZ2dnUVZ_tOmnZ2d@comcast.com>
Lines: 77
NNTP-Posting-Host: 24.20.110.103
X-Trace: sv3-Kd0fD3trJk6d/1B91VnOUkPiN5xI17+ICFEXAPzCOkh1iADgXUIjvN0tdU48WMftvEjqiLPrl4a1fd/!kvcE/VrLSIM9/M4vnjA7ZEwNvrxAXA400cfh486ckIPRGPwbOMqSOAQYHU0o+0qy+b/PjW2aRb6X!OryXEgU3MUkht/waLh6sfaiNKFBeqg==
X-Complaints-To: abuse AT comcast DOT net
X-DMCA-Complaints-To: dmca AT comcast DOT net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.34
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Jim Michaels wrote:
> Jim Michaels wrote:
>> Manuel Collado wrote:
>>> Jim Michaels escribió:
>>>> I extracted gmp412b.zip
>>>> unfortunately, I don't really know how to include the files.  DJGPP 
>>>> is odd in the way it is set up.
>>>> I found gmp.h extracted into f:/djgpp/2.03/v2gnu/include/gmp.h
>>>
>>> So you have dowloaded the gmp sources instead of the binaries. Please 
>>> download and unpack gmp412b.zip.
>>>
>>> Regards.
>>
>>
>> I did.  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>
> 


I made a new installation of the compiler so that all the zip files were 
in the same directory, and then expanded them.  now I get no errors 
about gmp.h, but I get errors about crt.o
----------------------
Creating: fract.exe
Error: f:/djgpp/203/bin/ld.exe: crt0.o: No such file: No such file or 
directory (ENOENT)
Error: collect2: ld returned 1 exit status
There were some errors


compiling something else I get problems including stdio.h., which tells 
me I still need to edit djgpp.env...
----------------------
Compiling: 102.c
<command line>(1) In file included from <command line>:1:
f:/djgpp/203/bin/../lib/gcc/djgpp/4.10/djgpp.ver(1) Error: 25: error: 
sys/version.h: No such file or directory (ENOENT)
102.c(1) Error: 19: error: stdio.h: No such file or directory (ENOENT)
In function 'main':
102.c(9) Error: error: 'stdout' undeclared (first use in this function)
102.c(9) Error: error: (Each undeclared identifier is reported only once
102.c(9) Error: error: for each function it appears in.)
102.c(11) Warning:  incompatible implicit declaration of built-in 
function 'printf'
There were some errors


how am I going to get this compiler working correctly?
tried the directions on the web site. "download the tree & unzip in 
place". guessing my way though is all I've got left, and that's not 
working too well.

-- 

  ------------------------------------
  Jim Michaels
  for email, edit the address

  RAM Disk is *not* an installation method.

- Raw text -


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