Greg wrote:
>
> Am rebuilding it and I spoke earlier about an issue in c-funs.c near line
> 113 :
>
> I don't know how you want to solve that but the offending code to build
> FriCAS with MinGW is :
>
> int
> makedir(char *path)
> {
> #ifdef S_IRWXO
> return ( mkdir (path,(S_IRWXU | S_IRWXO | S_IRWXG)) );
> #else
> return ( mkdir (path) );
> #endif
> }
>
> Here the preprocessor take the first call but it needs to take ' return (
> mkdir (path) );'
>
I have read what MinGW people wrote: they suggest puting WIN32
in condition. For now that would probably work, but I do
not like. One reasin is because Microsoft some day may decide
that Windows (they seem to call all their OS products Windows)
is no longer WIN32 and break it that way. For me its looks
better to test which variant compiles -- after all we do not
care if system is Windows or not but if 'mkdir' with two
arguments works or not. Given that test is try to compile
our code, I am tempted to add somwhat evil logic to Makefile:
- try to compile two argument version, if it works use the resulting
object file
- if first step failed, try one argument version, it it compiles
ose the resulting object file
- if both compiles above failed issue error message and fail
(which normally stops build)
--
Waldek Hebisch
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.