AW: [omniORB] Compiling with -Ox

Grobarcik Peter Peter.Grobarcik at start.de
Mon Nov 10 17:27:50 GMT 2003


	Hallo,
> Johan Cronje wrote:
> > Good day
> > 
> > I just want to know if compiling servants and clients with -Ox flag to
> g++
> > is a bad idea or not, because I am getting segfaults in my servant
> application
> > if I compile it with -O2, but it runs fine if I don't specify
> optimizations.
> > 
> > Thank You
> > 
> > Johan
> > 
> 
> I´ve compiled with -O2 and with -O3 and the applications runs fine.
> 
> If you are getting segfaults the problem is in your code (at least when 
> I get segfaults always the problem is in my code.)
> 
> Try compile with -g and -O2 and run your application with gdb.
> 
> Carlos.
> 
> 
A not copatible option combination in different parts of Your app can be a
reason to such problems as well - be sure you have consistent C++ options in
the omniORB lib and your application (e.g. inlined/not-inlined-debug strings
on win32).

Cheers,

Peter
> _______________________________________________
> omniORB-list mailing list
> omniORB-list at omniorb-support.com
> http://www.omniorb-support.com/mailman/listinfo/omniorb-list
> 



More information about the omniORB-list mailing list