Subject: Re: SDL-News: about generating random numbers
From: Xiaoming Fu (fu#cs.uni-goettingen.de)
Date: Tue Mar 16 2004 - 20:20:38 GMT
Become an SDL Forum Society member <http://www.sdl-forum.org/Society/members.htm>
The originator of this message is responsible for its content.
-----From Xiaoming Fu <fu#cs.uni-goettingen.de> to sdlnews -----
Hi,
michael.andersson#telelogic.com wrote:
>
> Hi Yang,
>
> I believe that the -lm link option is only applicable for some compilers
> (Unix...) and not necessary when compiling with the Microsoft compiler for
> win32; it links fine anyway.
>
> You should not have to do more than including random.pr in your SDL system
> (as you mention) and then it should build alright (without changing make
> options).
I'd confirm this - it works in my Tau4.4 + Msft VC6.0, without including
-lm option; simply random.pr.
Cheers,
Xiaoming
>
> regards
> Michael
>
> ----------------------------------------------------------------------------
> ----------
> Telelogic Tau Generation 2 - Development Visualized. Productivity Realized.
> Learn more about Telelogic's new software development solution at
> http://www.taug2.com
>
> Michael Andersson <mailto:michael.andersson#telelogic.com>
> Field Application Engineer Phone: +46 40 17 47 00
> Telelogic Direct: +46 40 17 47 65
> P.O. Box 4128 Mobile: +46 705 17 47 65
> SE 203 12 MALMO Fax: +46 40 17 47 47
> Sweden <http://www.telelogic.com>
>
> Telelogic - Automating the development lifecycle
> ----------------------------------------------------------------------------
> ----------
>
>
>
>
>>-----Original Message-----
>>From: yy01#mails.tsinghua.edu.cn [mailto:yy01#mails.tsinghua.edu.cn]
>>Sent: den 10 mars 2004 12:37
>>To: sdlnews#sdl-forum.org
>>Subject: SDL-news: about generating random numbers
>>
>>Become an SDL Forum Society member
>><http://www.sdl-forum.org/Society/members.htm>
>>The originator of this message is responsible for its content.
>>-----From "" <yy01#mails.tsinghua.edu.cn> to sdlnews -----
>>
>>Hi,members,
>> I want to generate random numbers in SDL system. According
>>to the help file, it will be right if I try as follows:
>> 1. The data type RandomControl may be included in any SDL
>>system using an analyzer include statement, /*##include 'random.pr' */
>> 2. As the C standard functions log and exp are used in the
>>random.pr file, it is necessary to link the application
>>together with the library for math functions, i.e. to have
>>-lm in the link operation in the makefile.
>> And in fact, it is ok in the analyzing stage, yet the c
>>compiler can't recognize -lm parameter. I am using tau 4.3 +
>>VC6.0, how can I solve the problem?
>> except for this way, according to "how to import c code in
>>SDL system", I import "math.h" in SDL system and hope it
>>works,but it also doesn't work, what's wrong?
>>
>> Thanks in advance!
>>Yang Yang
>>
>>
>>--End text from "" <yy01#mails.tsinghua.edu.cn> to sdlnews
>>--- For extra SDL Forum Society benefits join at
>><http://www.sdl-forum.org/Society/members.htm>
>>For help, email "majordomo#sdl-forum.org" with the body of
>>your email as:
>> help
>>or (iff this does not answer your question) email:
>>owner-sdlnews#sdl-forum.org
>>
>
> --End text from michael.andersson#telelogic.com to sdlnews ---
> For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>
> For help, email "majordomo#sdl-forum.org" with the body of your email as:
> help
> or (iff this does not answer your question) email: owner-sdlnews#sdl-forum.org
--End text from Xiaoming Fu <fu#cs.uni-goettingen.de> to sdlnews ---
For extra SDL Forum Society benefits join at <http://www.sdl-forum.org/Society/members.htm>
This archive was generated by hypermail 2a23 : Thu May 09 2013 - 16:05:50 GMT