Search found 118 matches

by JohnD
Thu Feb 10, 2011 10:09 am
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

Yeah like I say it seems something must be wrong in the project settings to cause all this. To summarise the current state: - I get linker errors about missing .libs, somehow the code must import .libs directly but I can't find where - It insists I need pretty much everything including tiff/jpg/png,...
by JohnD
Wed Feb 09, 2011 10:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

Hmm I played with a few things and now I get wx complaining about loads of unresolved externals (I include every wx lib), AND I also get: 1>Linking... 1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _free already defined in LIBCMTD.lib(dbgfree.obj) 1>MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: __CrtSetD...
by JohnD
Wed Feb 09, 2011 10:44 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

I still can't figure out, how is building my app throwing "can't find wxXXX.lib"? If I don't include the .lib I should just get unresolved symbol errors, how does the compiler even know the library names I need? I searched the wx codebase for ".lib" and didn't find much, it must be in there somewhe...
by JohnD
Wed Feb 09, 2011 10:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

I just want to test my app compiles with wx... I'm checking because in Windows API for instance if you naively include individual files it can screw up.

I just include <wx/wx.h> right now, and everything is totally broken. Every other wx project I've done, I just add a few core libs and it works.
by JohnD
Wed Feb 09, 2011 10:26 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

I'll try although, what's the output of a monolithic build supposed to be? I have now added all the .libs to my project and now it complains: Error 2 error LNK2019: unresolved external symbol "public: void __thiscall wxStringData::Free(void)" ([email protected]@@QAEXXZ) referenced in function "publ...
by JohnD
Wed Feb 09, 2011 9:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

I still can't figure out, how is building my app throwing "can't find wxXXX.lib"? If I don't include the .lib I should just get unresolved symbol errors, how does the compiler even know the library names I need? I searched the wx codebase for ".lib" and didn't find much, it must be in there somewhere.
by JohnD
Wed Feb 09, 2011 9:34 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

The link you posted doesn't talk about monolithic builds, I've never heard of this. Not run into problems before, I can't see what my current project does differently to an old one.
by JohnD
Wed Feb 09, 2011 9:18 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

Win7, VS2008. Used wx in several projects nicely, for some reason it's going a bit loopy.

Are there #defines I should be putting in any wx project to control it?
by JohnD
Wed Feb 09, 2011 8:59 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

Well I am not doing ANY wx code yet, but every time I add one .lib and build, I get an error another one is missing - even the jpeg libs are being wanted but I have no idea why. Where are all the imports for those libs coming from?
by JohnD
Wed Feb 09, 2011 8:34 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

Also why do I need so many libs? I added this line:

Code: Select all

#include <wx/app.h>
And so far I'm up to 12 .libs I have had to add. If they're all essential, why not just one big lib? Or is this a sign I should have some preprocessor #define set up?
by JohnD
Wed Feb 09, 2011 7:48 pm
Forum: Compiler / Linking / IDE Related
Topic: Does wx code auto-include .libs?
Replies: 27
Views: 5946

Does wx code auto-include .libs?

In a new project I am getting a linker error "cannot open file 'wxbase28ud_net.lib'" but I haven't got this particular LIB in my project settings. Does wx automatically try to include libs through imports in the source?
by JohnD
Tue Feb 01, 2011 10:25 am
Forum: C++ Development
Topic: Creating a wx app when given a parent/top-level HWND?
Replies: 17
Views: 3776

Looks useful, together with ideas from other posters I hope we can solve it now.

Thanks everyone!
by JohnD
Tue Feb 01, 2011 9:12 am
Forum: C++ Development
Topic: Creating a wx app when given a parent/top-level HWND?
Replies: 17
Views: 3776

evstevemd wrote: 2. non wx Application with main, having wx DLLs with GUI components
This one. For instance in a browser plugin you create a DLL for your 'app' and the browser passes your DLL a HWND to render in... obviously the browser is non-wx but we want to put wx controls belonging to the HWND we are given.
by JohnD
Tue Feb 01, 2011 8:02 am
Forum: C++ Development
Topic: Creating a wx app when given a parent/top-level HWND?
Replies: 17
Views: 3776

Sorry I can't think of any way to make my question clearer!
by JohnD
Mon Jan 31, 2011 3:35 pm
Forum: C++ Development
Topic: Creating a wx app when given a parent/top-level HWND?
Replies: 17
Views: 3776

I can see a wxApp class doesn't require a HWND, and it seems that a TopFrame isn't a requirement for an application either? If your application is not a GUI one, you are not obliged to create a TopFrame, indeed. We do indeed want to use wx GUI, it's just we are given a bare HWND from an external so...