[mpich-discuss] Error relating compiling a program (sprng.h)?

ESMAEILI AMIN amin at cavelab.cs.tsukuba.ac.jp
Sun Feb 21 04:54:48 CST 2010


Dear Rajeev

Hi
Many thanks for your help.

Best Regards
Amin

On Sun, Feb 21, 2010 at 12:47 AM, Rajeev Thakur <thakur at mcs.anl.gov> wrote:

>  SPRNG is a random number generator library that is separate from MPI. See
> its user guide on how to compile and link the library.
> http://sprng.cs.fsu.edu/Version4.0/compilation.html
>
> Rajeev
>
>  ------------------------------
> *From:* mpich-discuss-bounces at mcs.anl.gov [mailto:
> mpich-discuss-bounces at mcs.anl.gov] *On Behalf Of *ESMAEILI AMIN
> *Sent:* Saturday, February 20, 2010 5:21 AM
>
> *To:* mpich-discuss at mcs.anl.gov
> *Subject:* Re: [mpich-discuss] Error relating compiling a program
> (sprng.h)?
>
> Dear Rajeev
>
> Hi
> Many thanks for your help.
> Ive added these line. And compiled with this:
> amin at linux-usdz:~/Desktop/AminLinx> mpicc monte.c
>
> and the result was as this:
> monte.c:11:19: error: sprng.h: No such file or directory
> monte.c: In function ‘main’:
> monte.c:42: error: ‘SPRNG_DEFAULT’ undeclared (first use in this function)
> monte.c:42: error: (Each undeclared identifier is reported only once
> monte.c:42: error: for each function it appears in.)
> monte.c:42: warning: assignment makes pointer from integer without a cast
>
> 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?
>
> Best Regards
> Amin
>
>
> On Sat, Feb 20, 2010 at 12:49 AM, Rajeev Thakur <thakur at mcs.anl.gov>wrote:
>
>> Try adding a #define SIMPLE_SPRNG before #include <sprng.h>. Also move
>> the #define USE_MPI to before #include <sprng.h>
>>
>> Rajeev
>>
>>
>> ________________________________
>>
>>        From: mpich-discuss-bounces at mcs.anl.gov
>> [mailto:mpich-discuss-bounces at mcs.anl.gov] On Behalf Of ESMAEILI AMIN
>>        Sent: Friday, February 19, 2010 7:34 AM
>>        To: mpich-discuss at mcs.anl.gov
>>        Subject: [mpich-discuss] Error relating compiling a program
>> (sprng.h)?
>>
>>
>>        Dear Sir
>>
>>        Hi
>>        Many thanks for your MPI package.
>>        I`ve installed the MPICH2 on my pc and made mpd.conf at HOME
>> directory
>>
>>        But when I compile the program:
>>        amin at linux-usdz:~/Desktop/AminLinx> mpicc monte.c
>>
>>        I will get this error:
>>        monte.c:9:19: error: sprng.h:
>>        monte.c: In function 'main':
>>
>>        monte.c:40: error: 'SPRNG_DEFAULT' undeclared (first use in this
>> function)
>>        monte.c:40: error: (Each undeclared identifier is reported only
>> once
>>        monte.c:40: error: for each function it appears in.)
>>        monte.c:40: warning: assignment makes pointer from integer
>> without a cast
>>        amin at linux-usdz:~/Desktop/AminLinx> ..
>>        amin at linux-usdz:~/Desktop> ..
>>        amin at linux-usdz:~> cd Desktop/AminLinx/
>>        amin at linux-usdz:~/Desktop/AminLinx> mpirun monte.c
>>        problem with execution of monte.c  on  linux-usdz:  [Errno 2] No
>> such file or directory
>>
>>
>>        Plz help me to compile and run the program correctly.
>>
>>        I`ve attched the program for your inform.
>>
>>        Best Regards
>>        Sincerely
>>        Amin
>>
>>
>>
>>
>>
>>  _______________________________________________
>> mpich-discuss mailing list
>> mpich-discuss at mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>>
>
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20100221/06adc793/attachment.htm>


More information about the mpich-discuss mailing list