Share exception between shared lib and an application...

Vaillant Etienne vaillant.etienne@noos.fr
Sun Mar 30 19:10:00 GMT 2003


Hi,
Currently, I'm going to run an application on Cygwin from GNU/Linux...
But I have a problem : exceptions between shared lib and an application
isn't support by Cygwin...
To verify this, I made the following exemple :
Code C : share lib
#include <iostream>
#include <exception>
#include <stdexcept>
#include <string>
void nv1_fct1(void) throw(std::invalid_argument){
 throw std::invalid_argument("Invalid Argument");
}
Code C : Main program
#include<iostream>
#include<exception>
#include<stdexcept>
void nv1_fct1(void);
int main(int argc, char **argv){
 try{
 nv1_fct1();
 }
 catch(std::invalid_argument &e){
 std::cout << e.what() << std::endl;
 }
 return 0;
}
And, when I run this sample, a core dump is issued.... :(
So, I have a set of questions :
 - When do you think share exceptions will be supported by Cygwin ?
(is there a date ?)
 - If I want to implement share exceptions in Cygwin, where do I have
to check in source code in order to do it myself ? (file, function...)
Thank you
Etienne
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /