Code::Blocks Forums
User forums => Help => Topic started by: blank on September 16, 2005, 06:04:40 am
-
Okay I know this has probably been posted millions of times, and I'll sound like a noob, but I've searched for a couple hours on google on how to compile wxWidgets and I still have no luck, all references to it are very vague, and say 'for more information go to blah', and 'blah' ends up being another vague manual, linking to another one, and so on and so forth. Anyways, I'm using VSC++.Net, but I also use Borland, just in case one of you guys prefer it. I dont understnad how to compile the library, I opened the dsw but it has a lot of projects in it, and I'm not quite sure which to compile. After I compile it, I just put it in my compiler's lib folder and then use the #pragma comment (lib, "library.lib") command right? That should do, then also of course, include the specific header file. I hope someone can help me, I tried downloading precompiled libraries but I rather compile them myself, thanks for anything.
EDIT: Sorry, I got to compile with borland, by the way, I have the libraries now, but does that mean I have to use borland to compile now? I'd really still like to use VSC++, or do I have to compile with VSC++ to be able to use it with it, anyways, which library is the one I use to compile program? The normal basic one, is it core? Thanks guys.
www.codeblank.net - New Coding Forums with Syntax Highlighting
-
Anyways, I'm using VSC++.Net, but I also use Borland, just in case one of you guys prefer it. I dont understnad how to compile the library...
http://wiki.codeblocks.org/index.php/Tutorials
EDIT: Sorry, I got to compile with borland, by the way, I have the libraries now, but does that mean I have to use borland to compile now? I'd really still like to use VSC++, or do I have to compile with VSC++ to be able to use it with it, anyways, which library is the one I use to compile program? The normal basic one, is it core?
- Right now we're doing a monolithic build of wx. So there is only 1 lib. (See wiki)
- You should be able to use borland generated lib with msvc - .lib should be a standard format - although I can't guarantee it (different compilers may generate different name mangling exports, so I'm not positive it's 100% compatible).
-
Uh thanks, but what library am I supposed to use.
-
http://wiki.codeblocks.org/index.php/Compiling_wxWidgets_2.6.1_to_develop_Code::Blocks_%28MSW%29#Building_wxWidgets_2.6.1_mingw32_.26_vc.2B.2B_toolkit_2003
Those instructions give steps for compiling as well as what options to set to build a sample wxWidgets app against the library. The wxmsw26_gcc_cb.dll is the monolithic library that's produced (and libwxmsw26.a is the import library. you just put wxmsw26 in the link libraries listbox which is equivalent to passing -lwxmsw26 as a link option).
-
Look I have wxmsw26d_core.lib, wxzlibd.lib, etc. Which one do I use?
-
hmm. seems you haven't build wxWidgets monolithic.. You need to rebuild wxWidgets with the MONOLITHIC=1 option. (see the wiki page)
-
Okay, thanks. By the way, it only shows you how to do it with mingw and vc tookit, can I do this with borland as well? IF I cant, can I use the library generated by mingw with borland? Thanks.
-
I am not sure, but I thought Borland also has a "make" command. and instead of using makefile.gcc, you should use makefile.bcc. The rest should be the same....
If this doesn;t work, please don't shoot me, because I don't use the Borland compiler 8)