Hello,

Has anybody successfully called the Rmath library from C using the MS 
Visual Studio compiler (I am using Visual Studio 6.0)?

I have compiled the Rmath library using gcc, and the 'test.c' program 
(which makes a call to qnorm) works fine when compiled with gcc. However, 
I get a fatal memory error when I run it after compiling it with Visual C.
Would this memory problem be related to the compiler, or is it because I 
have not used the right compiler and/or linker options?

Two things puzzles me regarding compilation of Rmath:
1) The gcc compiler only seems to need the Rmath.dll to compile and 
execute. It needs neither Rmath.a nor Rmath.def.
2) The VC compiler needs a '.a'-file, but Rmath.a does not work (cannot 
find the symbols isnan and expm1). It compiles fine with libRmath.a 
however, but then it crashes as mentioned above.

Can anyone explain this to me?


Thanks,

Anders



<FONT SIZE=1 FACE="Arial">_______________
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen.
_______________
Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message.
</FONT>


	[[alternative HTML version deleted]]

