|
has anyone had success with using libm in windows?
I have legOS programs written from a solaris machine that compile fine and
work when downloaded to the RCX, but I have not been able to compile them on
a windows machine due to linking problems.
The following program works for me from Solaris, but not from Windows.
#include <conio.h>
#include <dkey.h>
double cos(double x);
int main(int argc, char *argv[])
{
lcd_int( cos (0) );
getchar();
return 0;
}
I am definitely not an expert on this subject, but I'm under the impression
that the Windows h8/300 cross-compiler is somewhat older than other *NIX
cross-compilers. Is this why the linker has problems? If someone could try
compiling the above program (make sure you change your Makefile.user to link
to libm) under Windows and verifying that it's not just something I'm doing
wrong, that would be appreciated.
Thanks,
-Albert
|
|
Message has 1 Reply: | | Re: libm, windows
|
| (...) No chance to get this running under legOS. You can do some float math like addition or multiplication but no trigonometric functions. Look in legOS/lib/float to see what can be done with the legOS floating point library. Mike (23 years ago, 24-Jan-02, to lugnet.robotics.rcx.legos)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|