List Info

Thread: Problems statically linking wxCTB




Problems statically linking wxCTB
country flaguser name
United States
2007-07-27 09:16:05

I'm using DB 4.13 and have MinGW installed for the compiler on
Windows. I've built the wxCTB library with and without debug info and
have both .a and .dll files. I've got the following settings in my
build configuration (using the GUI):

Shared Mode = Static
Runtime Linking = Static
Libraries = %AUTO% -lwxctb-0.8
Library Path = %AUTO%,$(WXWIN)/ext_libs/libwxctb-0.8/lib/

When I build my application, the executable complains that it can't
find libwxctb-0.8.dll even though it should have linked with the
static library. The wxWidgets library was linked statically because I
can put that DLL in the directory and it runs without complaining
about the wxWidgets DLL's. So what am I doing wrong to statically
link all libraries.

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! TV

Want the scoop?

Check out today's

news and gossip.

Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Yahoo! Groups

Join a yoga group

and take the stress

out of your life.

Re: Problems statically linking wxCTB
country flaguser name
United States
2007-07-27 09:33:38

--- In anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com, "skirkpatrick_nc"
<skirkpatrick...> wrote:
>
> I'm using DB 4.13 and have MinGW installed for the compiler on
> Windows. I've built the wxCTB library with and without debug info and
> have both .a and .dll files. I've got the following settings in my
> build configuration (using the GUI):
>
> Shared Mode = Static
> Runtime Linking = Static
> Libraries = %AUTO% -lwxctb-0.8
> Library Path = %AUTO%,$(WXWIN)/ext_libs/libwxctb-0.8/lib/
>
> When I build my application, the executable complains that it can't
> find libwxctb-0.8.dll even though it should have linked with the
> static library. The wxWidgets library was linked statically because I
> can put that DLL in the directory and it runs without complaining
> about the wxWidgets DLL's. So what am I doing wrong to statically
> link all libraries.
>

Hi!

If everything is build statically, then it shouldn't complain. So, you
must have something not built statically. It sounds like you don't
have a static libwxct-0.8.a (or .lib if you were using a non-gcc
compiler). I wouldn't even try building both the static and shared
libs until I was certain I had a static lib, it that's the current goal.

Anyway, you need to have wxWidgets built static, libwxctb-0.8 built
statically, and you need to link with Microsoft static libs. There
should be no .dll's at all so that duplicate/missing entries don't
show up.

Cannot really tell more from just the email, would need to see a .pjd
and sources to say anything further.

HTH:

thx,
Dave S.

Arthur Dent:
COMPUTER DO SOMETHING!
Eddie the Computer:
Sure thing fella! Switching to manual control... good luck!

wxMS_developers · Development with wxWidgets on MSWindows
http://tech.groups.yahoo.com/group/wxMS_developers/

wxWidgets Code Exchange
http://www.wxCodex.net/

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )