<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=109014115-20022010><FONT color=#0000ff
size=2 face=Arial>SPRNG is a random number generator library that
i</FONT></SPAN><SPAN class=109014115-20022010><FONT color=#0000ff size=2
face=Arial>s separate from MPI. See its user guide on how to compile and link
the library. <A
href="http://sprng.cs.fsu.edu/Version4.0/compilation.html">http://sprng.cs.fsu.edu/Version4.0/compilation.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=109014115-20022010><FONT color=#0000ff size=2
face=Arial></FONT></SPAN> </DIV>
<DIV><SPAN class=109014115-20022010><FONT color=#0000ff size=2
face=Arial>Rajeev</FONT></SPAN></DIV>
<DIV dir=ltr align=left><BR></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> mpich-discuss-bounces@mcs.anl.gov
[mailto:mpich-discuss-bounces@mcs.anl.gov] <B>On Behalf Of </B>ESMAEILI
AMIN<BR><B>Sent:</B> Saturday, February 20, 2010 5:21 AM<BR><B>To:</B>
mpich-discuss@mcs.anl.gov<BR><B>Subject:</B> Re: [mpich-discuss] Error
relating compiling a program (sprng.h)?<BR></FONT><BR></DIV>
<DIV></DIV>Dear Rajeev<BR><BR>Hi<BR>Many thanks for your help.<BR>Ive added
these line. And compiled with this:<BR><SPAN
style="FONT-FAMILY: comic sans ms,sans-serif">amin@linux-usdz:~/Desktop/AminLinx>
mpicc monte.c</SPAN><BR style="FONT-FAMILY: comic sans ms,sans-serif"><BR>and
the result was as this:<BR><SPAN
style="FONT-FAMILY: comic sans ms,sans-serif">monte.c:11:19: error: sprng.h:
No such file or directory</SPAN><BR
style="FONT-FAMILY: comic sans ms,sans-serif"><SPAN
style="FONT-FAMILY: comic sans ms,sans-serif">monte.c: In function
‘main’:</SPAN><BR style="FONT-FAMILY: comic sans ms,sans-serif"><SPAN
style="FONT-FAMILY: comic sans ms,sans-serif">monte.c:42: error:
‘SPRNG_DEFAULT’ undeclared (first use in this function)</SPAN><BR
style="FONT-FAMILY: comic sans ms,sans-serif"><SPAN
style="FONT-FAMILY: comic sans ms,sans-serif">monte.c:42: error: (Each
undeclared identifier is reported only once</SPAN><BR
style="FONT-FAMILY: comic sans ms,sans-serif"><SPAN
style="FONT-FAMILY: comic sans ms,sans-serif">monte.c:42: error: for each
function it appears in.)</SPAN><BR
style="FONT-FAMILY: comic sans ms,sans-serif"><SPAN
style="FONT-FAMILY: comic sans ms,sans-serif">monte.c:42: warning: assignment
makes pointer from integer without a cast</SPAN><BR
style="FONT-FAMILY: comic sans ms,sans-serif"><BR>I do not know, but maybe it
is due to bad installation of MPICH2 or OPENMPI, how can I assure that they`ve
installed correctly?<BR><BR>Best Regards<BR>Amin<BR><BR><BR>
<DIV class=gmail_quote>On Sat, Feb 20, 2010 at 12:49 AM, Rajeev Thakur <SPAN
dir=ltr><<A
href="mailto:thakur@mcs.anl.gov">thakur@mcs.anl.gov</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote>Try adding a #define SIMPLE_SPRNG before #include
<sprng.h>. Also move<BR>the #define USE_MPI to before #include
<sprng.h><BR><BR>Rajeev<BR><BR><BR>________________________________<BR>
<DIV class=im><BR> From: <A
href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</A><BR></DIV>[mailto:<A
href="mailto:mpich-discuss-bounces@mcs.anl.gov">mpich-discuss-bounces@mcs.anl.gov</A>]
On Behalf Of ESMAEILI AMIN<BR> Sent: Friday,
February 19, 2010 7:34 AM<BR> To: <A
href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A><BR>
Subject: [mpich-discuss] Error relating compiling a
program<BR>(sprng.h)?<BR>
<DIV>
<DIV></DIV>
<DIV class=h5><BR><BR> Dear Sir<BR><BR>
Hi<BR> Many thanks for your
MPI package.<BR> I`ve installed the MPICH2 on my
pc and made mpd.conf at HOME<BR>directory<BR><BR>
But when I compile the program:<BR>
amin@linux-usdz:~/Desktop/AminLinx> mpicc monte.c<BR><BR>
I will get this error:<BR>
monte.c:9:19: error: sprng.h:<BR> monte.c:
In function 'main':<BR><BR> monte.c:40: error:
'SPRNG_DEFAULT' undeclared (first use in this<BR>function)<BR>
monte.c:40: error: (Each undeclared identifier is reported
only<BR>once<BR> monte.c:40: error: for each
function it appears in.)<BR> monte.c:40: warning:
assignment makes pointer from integer<BR>without a cast<BR>
amin@linux-usdz:~/Desktop/AminLinx> ..<BR>
amin@linux-usdz:~/Desktop> ..<BR>
amin@linux-usdz:~> cd Desktop/AminLinx/<BR>
amin@linux-usdz:~/Desktop/AminLinx> mpirun monte.c<BR>
problem with execution of monte.c on linux-usdz:
[Errno 2] No<BR>such file or directory<BR><BR><BR>
Plz help me to compile and run the program correctly.<BR><BR>
I`ve attched the program for your inform.<BR><BR>
Best Regards<BR>
Sincerely<BR>
Amin<BR><BR><BR><BR><BR><BR></DIV></DIV>
<DIV>
<DIV></DIV>
<DIV
class=h5>_______________________________________________<BR>mpich-discuss
mailing list<BR><A
href="mailto:mpich-discuss@mcs.anl.gov">mpich-discuss@mcs.anl.gov</A><BR><A
href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss"
target=_blank>https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>