|
Boost Users : |
Subject: Re: [Boost-users] [program-options] static linked example segfaults for exception
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2010-03-22 14:24:23
Neetu Garg wrote:
> g++ testprogramoptions.o -static-libgcc
> -Wl,-Bstatic -L/u/neetug/Projects/performance/perfstat_cluster/lib
> -lboost_program_options-gcc41-mt -lpthread -o testprogramoptions
This is not the best way to link statically. Did you try just -static
option, without -static-libgcc and -Wl,-Bstatic?
- Volodya
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net