AltME: R3 Building and Porting

Messages

Arnold
Agreed, but now I try to compile and it is looking for gcc, but that is already somewhere in my $PATH so anybody has a precompiled R3 for Mac 10.6.8?
Kaj
Arnold
Thank you Kaj!!

Maxim
running through compilation in msvc, I'm getting a few errors...   I've already fixed a few little details wrt VC vs GCC
one snag I currently have is that I'll have to rename the qsort function, cause msvc already seems to have one in its linkeage.
Ladislav
So you are trying to build the community version?
Maxim
yep.
there doesnt' seem to be that many errors, a part for this qsort issue.
Ladislav
I thought that rename is not needed?
Maxim
I'm currently looking into the qsort declaration within msvc... maybe I can use it directly instead.
Ladislav
What is the error you are getting?
And no, you certainly should not use the Microsoft-provided version, unless you want to keep the bugs it has
So, can you cite the error you are getting?
Maxim
ok then... it seems like its part of the stdlib tree, so not much I can do to not include it..  we should just give it a new name within our codebase then. I checked and its only used  4 times in the complete code base... not a big issue to fix.
bug is 'qsort' : inconsistent dll linkage
basically a redecleration
re-declaration
Maxim
I guess I'd just set    I_AM_QSORT_R   so that the ifdef in the code triggers and use qsort_r in the string! and block! code.
I guess  "qsort_r"   stands for qsort redefinition
ah no... its a different func spec... ignore that... I'll just change the qsort name to uc_qsort   (uc for university of california)
Ladislav
don't change the original source if possible, please
Maxim
well, this is part of porting code to different compilers and toolchains.  for example, the   static inline   hints are different in msvc  nothing I can do there.  I added an #ifdef  setup for that with comments explaining why.

Last message posted 69 weeks ago.