<html><body>
<DIV>It seems the problem here is you are trying to access memory you don't own. When you define the array, you need to set aside the memory you need first, before initializing it. Create the array as:</DIV>
<DIV> </DIV>
<DIV>mpz_t p[<num_elements>]</DIV>
<DIV> </DIV>
<DIV>mpz_array_init(p, <num_elements>, 500)</DIV>
<DIV> </DIV>
<DIV>I hope this helps!</DIV>
<DIV> -Dave</DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message -------------- <BR><BR>> I am using version 4.1.3 of GMP with version 3.2.3 of GCC. <BR>> <BR>> I need to create an array of multiprecision integers. mpz_array_init looks <BR>> like it should produce the results I need; however, the code segment below <BR>> bombs when it executes the mpz_array_init statement. <BR>> <BR>> int <BR>> main() <BR>> { <BR>> mpz_t *p; <BR>> <BR>> mpz_arrray_init (*p, 10, 500); <BR>> <BR>> return (0); <BR>> } <BR>> <BR>> Any suggestions? Anyone have work-around? <BR>> <BR>> Thanks. <BR>> <BR>> _________________________________________________________________ <BR>> Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ <BR>> Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 <BR>> <BR>> _______________________________________________ <BR>> gmp-discuss mailing list <BR>> gmp-discuss@swox.com <BR>> https://gmplib.org/mailman/listinfo/gmp-discuss </BLOCKQUOTE></body></html>