MisMatched Tag error

View: New views
2 Messages — Rating Filter:   Alert me  

MisMatched Tag error

by Steve Bromley-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I just updated my version of the source code from CVS to the latest version and ran the compile using MSVC Express 2009.  As I try to read a GPX file, I get the following error:

 

[I:\gpsbabel\msvc\Release]gPSBabel.exe -D1 -vs  -i gpx  -f c:\apps\gsakout\delorme.gpx  -o delbin,nukewpt,logs=1  -F usb:

GPSBabel Version: 1.3.7-beta20090906

options: module/option=value: gpx/snlen="32" (=default)

options: module/option=value: gpx/gpxver="1.0" (=default)

Mismatched tag 牧畯摮灳慥㩫潬杮摟獥牣灩楴湯最潲湵獤数歡氺湯彧敤捳楲瑰潩n

 

I went back and used the newest beta version of GPSBabel that was on the website and it runs without error.  Is there an error that I introduced somewhere or has something been checked in that has broken the parser?  I should note that this has been working up to the latest CVS update.  Any help would be greatly appreciated.

 

Thanks.

 

 

 

 


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Gpsbabel-code mailing list  http://www.gpsbabel.org
Gpsbabel-code@...
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code

Re: MisMatched Tag error

by Robert Lipe-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Mon, Sep 14, 2009 at 5:29 PM, Steve Bromley <steve.bromley@...> wrote:

I just updated my version of the source code from CVS to the latest version and ran the compile using MSVC Express 2009.  As I try to read a GPX file, I get the following error:

I'd all but given up building it with MSVC Express.  I remember sinking a couple of evenings into trying to unwind the tangle of development kits and manually configured paths just before my HD died (first in 23-ish years), taking out my Vista installation.


options: module/option=value: gpx/gpxver="1.0" (=default)

Mismatched tag 牧畯摮灳慥㩫潬杮摟獥牣灩楴湯最潲湵獤数歡氺湯彧敤捳楲瑰潩n

 

I went back and used the newest beta version of GPSBabel that was on the website and it runs without error.  Is there an error that I introduced somewhere or has something been checked in that


If you *really* think it's a time travel problem, you can walk through the tree via "cvs up -D'2 days ago'" and binary search until you find it.   But I don't think we've done anything very interesting to the GPX reader in a long time.


Almost always, on Windows, this is caused by a mismatch in the expat interfaces.   There are two versions of the dll for expat.  One tosses bytes across the interface in UTF-8 and the other in UTF-16, the Windows-beloved wide character mode.   It's depressingly easy to get them mixed up and it'll lead to the kind of symptoms you're describing.

Wide
  Set include paths to pick up msvc/Expatw/ for expat header
  Set lib path to pick up msvc/Expatw/libexpatw.{dll,lib}

Not wide
  Same as above, but with "Expat/" instead of "Expatw"

There's a parallel pair for mingw, but if you're on MSVC you don't care.

The thing that can nail  you is objects that are built with the "wrong" include.  If you build, say, gpx.o with the wide verision then tinker with the includes to link against the narrow version, hilarity ensues.


So to diagnose this, I'd pick a path (honestly, I consider the wide version a distraction) and double chcekc the includes and libs above, vaporize all the objects, and then diagnose from there.   If you were to submit a working MSVC proj/build/whateveritisthisyear file that ignored the wide version, I wouldn't blink an eye at that omission.

RJL

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Gpsbabel-code mailing list  http://www.gpsbabel.org
Gpsbabel-code@...
https://lists.sourceforge.net/lists/listinfo/gpsbabel-code