From: <int...@ne...> - 2006-05-29 13:55:15
|
I'm attempting to port an Open Source Linux application to Windows using= mingw32 and msys. It uses memalign. I checked the mailing list archiv= es and noticed mingw supplies _mingw_aligned_malloc and _aligned_malloc.= Tried both of these (one at a time) in the program in place of the mem= align call. Both ran out of memory (returned 0) after 3 calls. I tried= -Wl,--heap and set the heap to some arbitrarily large number during the= link phase. I didn't notice any difference. Any suggestions? I'm rea= lly stuck. = While I'm asking for advice, I've been using msys as the build environme= nt for the program I'm porting. What's the best practice for setting CP= ATH so mingw will know where the includes are? I tried setting it in th= e control panel as an environment variable, but I used the actual (DOS s= tyle as in c:\mingw\msys\local\include) path to the includes. Should I = be using /usr/local/include instead? Is there a better locaton to set t= his (such as a settings file) or is the control panel's environment vari= ables section the right location to use for setting environment variable= s used by mingw. Thanks. Laura http://www.distasis.com/cpp _____________________________________________________________________ Call Anyone, Anytime, Anywhere in the World - FREE! Free Internet calling from NetZero Voice Visit http://www.netzerovoice.com today! |