Re: [Gpsbabel-code] MSVC 10 and Windows 7 and srttof
Brought to you by:
robertl
From: Jon M. <jo...@7e...> - 2010-05-21 14:46:08
|
On 19 May 2010 at 12:45, Robert Lipe wrote: > > > > On Wed, May 19, 2010 at 8:33 AM, Jon McGugan <jo...@7e...> wrote: > To get the source to compile I had to change strtof to (float) strtod as > strtof seems to have disappeared in MSVC 10 (csv_util.c). I don't know > enough about gpsbabel or MSVC to know if it is something I have got wrong > or if it an actual error. Advice appreciated. I also noticed a large number > of warnings but they don't seen to have stopped it compiling and working > (so far). > > That's new code. (Actually, the code is old; I just forgot to check it in > until fairly recently.) strtof is C99 and MSVC can't cope with such > newfangled things. Your proposed change would lose sub-meter UTM coords. > Please respell that with something like scanf, send me a patch, and I"ll > check it in. > Any ideas how I generate a patch using Windows? I have another. the definition of tbuf at line 1732 in csv_util.c case XT_UTM_ZONEF: { GPS_Math_WGS84_To_UTM_EN(wpt->latitude, wpt->longitude, &utme, &utmn, &utmz, &utmzc); char tbuf[10]; has to be before the GPS_Math... call in MSVC -- Jon McGugan, 7E Communications , Signal House, 127 Molesey Avenue, West Molesey, Surrey KT8 2FF, England. direct telephone +44 (0)1242 250917, direct fax +44 (0)1242 244367 main telephone, +44 (0)20 8487 3200, main fax, +44 (0)20 8487 3210 A private limited liability company registered in England and Wales No: 2140368. The information contained in this email and any attachments thereto is confidential. It is intended for the use only of the addressee. Please let us know immediately should this email have been sent to you in error and immediately delete it and all copies from your system. The content of this communication is the sole responsibility of the author unless it can reasonably be inferred as being sent on behalf of the company. Where the contents can be interpreted as a quotation, estimate or order they are subject to 7E standard terms and conditions, confirmation and acceptance in writing. Quotations and estimates have a maximum validity of 14 days and are quoted exclusive of VAT or delivery unless otherwise stated. Liability for errors and omissions in any contents is excluded. |