[omniORB] Compiling with -Ox
    Carlos 
    carlos at canama.net
       
    Sun Nov  9 19:27:25 GMT 2003
    
    
  
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.
    
    
More information about the omniORB-list
mailing list