(Msg. 1) Posted: Thu Dec 29, 2005 12:18 am
Post subject: Catching Exception in Static Library Archived from groups: comp>sys>mac>programmer>misc (more info?)
Hello-
I'm linking a static library (freeimage.a) against my OS X application
(Xcode). The static library throws an exception (throw [number]) I want
to catch in my application. How can I propagate this C++ Exception into
my program? Is there any compiler switch?
I tried to compile the static library with -shared-libgcc, but this did
not help.
I also checked if exception are catched using the example below and the
handler works. However, not on the library exception.
Any ideas are welcome!
Thanks!
int number=41;
try {
// here I call my library ...
(Msg. 2) Posted: Thu Dec 29, 2005 12:51 pm
Post subject: Re: Catching Exception in Static Library [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I could solve the issue by adding a compiler flag (-fexceptions) and now
the exception is already catched in the static library
[BINDINGS] NSTableView vs. NSUserDefaultsController - I've already posted the following message to Apple's cocoa-dev mailing list, so if you subscribe to that list or are a regular reader of CocoaBuilder.com, you've already seen this. I'm posting here since I've appeared to have violated list..
Any tame MAC users out there ? - Hi all, could anyone tell me why the HTML generated from an XSL/XML merge would not display on an apple Mac. http://www.bedfords.co.uk/pages/search/search.asp (and just click "search") The page works fine on IE5,IE6, Mozilla and Firefox. Th...
[ANN] ADHOC/MacHack sessions announcement & the Transition.. - Apple is moving to Intel -- Don't Panic! Come to ADHOC and learn what developers need to do. Held in Dearborn, Michigan from July 27th through 31st (a little over a month after WWDC), ADHOC has always been focused on giving developers the edge when i...
Use of stty - Has anyone here used stty to set the baud rate of a serial port in a script or just from the command line ? I am trying to use "screen <ser port path>" which gives you a serial (VT100) terminal through the selected port. In my case I am...
NSData's +dataWithContentsOfFile - Hi, I'm considering using Cocoa rather than Carbon... How do I init an NSData object with data from a file *but* only from x bytes in with a length of y bytes into the file? I don't want to read the whole file into one data object then copy x bytes..
All times are: Pacific Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You can edit your posts in this forum You can delete your posts in this forum You can vote in polls in this forum