• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Please help me build in debug mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please help me build in debug mode


  • Subject: Re: Please help me build in debug mode
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Sat, 24 Nov 2007 11:20:04 -0800

You're misusing STL iterators in some way (that just happens to work in release mode) that the extra debug checks in GCC's debug STL is catching. It looks like you may be initializing them with NULL, which is not legal C++.

Clark Cox III
email@hidden
Sent from my iPhone

On Nov 24, 2007, at 11:08, Jeremy Conlin <email@hidden> wrote:

Hello list,

I am trying to debug my code in Xcode, but I can't compile in debug mode.  I have a C++ command-line utility that compiles just fine in the release configuration mode, but I get two identical errors in debug mode.  I have copied the error  at the end of this file.  

I don't have a specific question, just looking for suggestions of what I can try to get my code to build in debug mode.  Any suggestions?

Thanks in advance,
Jeremy


/Users/jlconlin/Documents/Education/Thesis/Code/trunk/cpp/Xcode/../Geometry/OneDMesh/Iterators/SweepIter.hh:38: error: no matching function for call to '__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<Zone* const*, __gnu_norm::vector<Zone*, std::allocator<Zone*> > >, __gnu_debug_def::vector<Zone*, std::allocator<Zone*> > >::_Safe_iterator(int)'
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/debug/safe_iterator.h:121: note: candidates are: __gnu_debug::_Safe_iterator<_Iterator, _Sequence>::_Safe_iterator(const __gnu_debug::_Safe_iterator<_Iterator, _Sequence>&) [with _Iterator = __gnu_cxx::__normal_iterator<Zone* const*, __gnu_norm::vector<Zone*, std::allocator<Zone*> > >, _Sequence = __gnu_debug_def::vector<Zone*, std::allocator<Zone*> >]
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/debug/safe_iterator.h:109: note:                 __gnu_debug::_Safe_iterator<_Iterator, _Sequence>::_Safe_iterator(const _Iterator&, const _Sequence*) [with _Iterator = __gnu_cxx::__normal_iterator<Zone* const*, __gnu_norm::vector<Zone*, std::allocator<Zone*> > >, _Sequence = __gnu_debug_def::vector<Zone*, std::allocator<Zone*> >]
/Developer/SDKs/MacOSX10.5.sdk/usr/include/c++/4.0.0/debug/safe_iterator.h:100: note:                 __gnu_debug::_Safe_iterator<_Iterator, _Sequence>::_Safe_iterator() [with _Iterator = __gnu_cxx::__normal_iterator<Zone* const*, __gnu_norm::vector<Zone*, std::allocator<Zone*> > >, _Sequence = __gnu_debug_def::vector<Zone*, std::allocator<Zone*> >]

Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Please help me build in debug mode
      • From: Jeremy Conlin <email@hidden>
References: 
 >Please help me build in debug mode (From: Jeremy Conlin <email@hidden>)

  • Prev by Date: Please help me build in debug mode
  • Next by Date: Re: Dwarf and comparing binaries
  • Previous by thread: Please help me build in debug mode
  • Next by thread: Re: Please help me build in debug mode
  • Index(es):
    • Date
    • Thread