• 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: gcc c++ vs. visual c++ info?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcc c++ vs. visual c++ info?


  • Subject: Re: gcc c++ vs. visual c++ info?
  • From: Dirk Stegemann <email@hidden>
  • Date: Sun, 23 Jan 2005 15:31:54 +0100

Hi,

Am 13.01.2005 um 17:17 schrieb james tittle:

...I've recently been asked to port some windoze code to osx, and fairly quickly got it to compile, but then realized that all kinds of weird things are going on incorrectly...

Am 13.01.2005 um 18:32 schrieb Thomas Dibble:

Other things to look at: any cross-platform libraries you are using might have problems, any bit-shifting you are doing might cause problems, any assumptions about static initializers might cause problems ...

I've run into similar problems due to making VC++ code compile/run with gcc3.3; actually, the code run already fine with gcc2.95, but after updating to use gcc3.3, I encountered crashes at runtime.


I localized the crashes so far as they seem to occur in the constructors of some standard-c-library functions, especially "ifstream" and "ofstream".
Are there known issues with using these classes?
The important information is here, that the code runs fine with compiler optimization level set to -O0. Any other level produces code that crashes.
Btw: There was one piece of code I was able to fix by replacing an object's ifstream member function by an appropriate pointer, initializing that pointer within the object's source code when used for the first time by a call to "new ifstream".


If someone could give a hint about this strange and unwanted behaviour of those standard classes, I'd appreciate.

Greetings,
Dirk Stegemann

_______________________________________________
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: gcc c++ vs. visual c++ info?
      • From: Thomas Dibble <email@hidden>
References: 
 >gcc c++ vs. visual c++ info? (From: james tittle <email@hidden>)

  • Prev by Date: [Announcement] Elephant now on Xcode
  • Next by Date: Re: gcc c++ vs. visual c++ info?
  • Previous by thread: Re: gcc c++ vs. visual c++ info?
  • Next by thread: Re: gcc c++ vs. visual c++ info?
  • Index(es):
    • Date
    • Thread