programs crash when run through rosetta
programs crash when run through rosetta
- Subject: programs crash when run through rosetta
- From: Joe Miller <email@hidden>
- Date: Fri, 29 Dec 2006 12:44:08 -0800 (PST)
Hi All,
I'm not a exactly sure where a good place to post this
problem is, but I need to start somewhere. As you read
the problem below if you know of more appropriate
places to seek advice please let me know.
Here's my issue. I'm trying to port a system of
programs to work on the intel mac, unfortunately a
number of them are crashing. I was able to simplify
the situation and I think localize the leading issue.
The problem comes about when I write a program which
links in at least two libraries. The program does
nothing but use cout to display two messages. The
first library contains one function which displays a
simple predefined message (ie cout << "Hello World";).
The second library is an xml parser library called
xerces. When xerces is not linked in the program runs
fine on the intel mac, when it is linked in I get a
bus error in cout statement found in the first
library.
I was wondering if any one had any ideas what could be
causing this. I built the program on OSX 10.2.8 using
g++ 3.1. The only flags I use are -g (when debugging),
and -flat_namespace. I've tried using some of the
symbols found the xerces library in the program in
hope to ensure a strong link (when I do this the
flat_namespace switch becomes necessary), but the bus
error still occurs. There is no problem if I remove
the first library and run cout message in the
application itself. I also have no problem running any
of the xerce tests on the intel mac through rosetta.
I found that I do NOT have a problem using g++ 4.0
on OSX 10.4. But for now I've been tasked to getting
this working with the earlier version. Has anyone run
across something like this before. My only thought is
it might have to do with xerces execption handling??
At least that was the only thing on the rosetta
website seemed remotely fit.
Thanks in advance. Any help would be great.
-joe
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden