ftp.delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
NNTP-Posting-Date: | Tue, 15 May 2007 23:21:40 -0500 |
Date: | Tue, 15 May 2007 21:21:38 -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> <462b188b$1 AT news DOT upm DOT es> |
In-Reply-To: | <462b188b$1@news.upm.es> |
Message-ID: | <9c-dnbrKZ4JJG9fbnZ2dnUVZ_gidnZ2d@comcast.com> |
Lines: | 85 |
NNTP-Posting-Host: | 24.20.110.103 |
X-Trace: | sv3-Jme+Up7RlX/PBeXA4nCmhqwrsGlCD6HQCVuoNYEMJ2+S3BqTvP2e/5ryCZaXVHaJvXdJOhMcxIdJv4S!kuth6WWNGqf31n0ZU9aiK6uxjIMB6Y2IXtltG58FSKRTvF4j2PSZPY9Lk4rgIqBKKDLBwFGSg9Yz!/CGA6shSxuq1F+uAbFhEfjExz9gr+w== |
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 |
Manuel Collado wrote: > 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. still doesn't work. extracted it into the v2gnu directory as directed by the web site's directions. the source files are also there. do I need to delete those somehow? there is F:\djgpp\2.03 F:\djgpp\2.03\v2 F:\djgpp\2.03\v2apps F:\djgpp\2.03\v2gnu F:\djgpp\2.03\v2misc F:\djgpp\2.03\v2tk and .env files scattered all over the place from what I can tell as a result. I hope that is good. I did everything according to the directions I could find and all was not well. too bad there isn't something like a "base install" of 2.03. I can't get DJGPP to work without modifying the main .env file because the includes are broken across several directories and won't work otherwise. I had to make the following changes: [cpp] CPLUS_INCLUDE_PATH=%/>;CPLUS_INCLUDE_PATH%%DJDIR%/lang/cxx;%DJDIR%/include;%DJDIR%/v2gnu/include C_INCLUDE_PATH=%/>;C_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/v2gnu/include OBJCPLUS_INCLUDE_PATH=%/>;OBJCPLUS_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/v2gnu/include;%DJDIR%/lang/objc;%DJDIR%/v2gnu/lang/objc OBJC_INCLUDE_PATH=%/>;OBJC_INCLUDE_PATH%%DJDIR%/include;%DJDIR%/lang/objc;%DJDIR%/v2gnu/include;%DJDIR%/v2gnu/lang/objc [gcc] LIBRARY_PATH=%/>;LIBRARY_PATH%%DJDIR%/lib;%DJDIR%/v2gnu/lib [info] INFOPATH=%/>;INFOPATH%%DJDIR%/info;%DJDIR%/gnu/emacs/info;%DJDIR%/v2gnu/info the v2gnu directory wasn't included by default. I guess that's because the main .env file is in the v2 directory where the compiler binaries are. something's wrong with the web site's directions for installation. are all the files supposed to be glommed into the same directory instead of in v2, v2gnu, v2tk, v2misc? it seems to me the compiler as it stands would work a lot better. -- ------------------------------------ Jim Michaels for email, edit the address RAM Disk is *not* an installation method.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |