Problem with shared build

Kit Bishop kit at bishop.net.nz
Sun Oct 14 17:34:22 PDT 2007


I am using: openSuse 10.3; wxWidgets built from svn repository for 2.8
branch as at rev 49210

I have built monolithic libraries for all combinations of:
release/debug; ansi/unicode; static/shared.

I can succesfully build and run the various samples using the makefiles
for each of the library build combinations.

However, for my own build process, I have problems with using the shared
build.  For all my building, I use wx-config to get the various settings
etc.  I have tried these with the minimal sample (see below).  With
static build, all is fine; with shared build, when I try to execute the
program I always get a "Segmentation fault"

I am compiling and linking like so (e.g. for minimal sample unchanged):

Compile:
`wx-config --debug=no --unicode=no --static=yes --cxx` -c minimal.cpp -o
minimal.o `wx-config --debug=no --unicode=no --static=yes --cxxflags`

Link:
 `wx-config --debug=no --unicode=no --static=yes --ld` minimal minimal.o
`wx-config --debug=no --unicode=no --static=yes --libs`

This works fine with static=yes; the program crashes with Segmentation
fault with static=no; minimal sample is fine with shared build when
using the supplied makefile.

I must need something different in my compile and link lines for shared
build - any ideas? Thanks.

Best regards,
Kit







More information about the wx-users mailing list