wxDev-C++ for Visual C++

If you are using wxDev-C++ for your wxWidgets design, please ask your questions here instead of in IDE Related.
Opeth
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu Jan 26, 2006 3:05 pm

Post by Opeth » Sun Jun 04, 2006 4:18 pm

Hi, so finally I have downloaded VC2005 Express and 2003 R2 SDK.

I have compiled the project successfully (I still have to change the makefile a bit even with VC8), but at runtime it said some dll is missing. (msvcp80.dll and msvcr80.dll)

I found 2 versions of them in floders in the SDK ("\win64" and "\win64\amd64"), but both of them doesn't work.

Where should I get them from? (I am using celeron)

Thanks.

lowjoel
Moderator
Moderator
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel » Mon Jun 05, 2006 12:50 am

They are in %WINDIR%\WinSxS. You are supposed to embed the manifest file (configure in Tools > Compiler options. Change to Vc 2005). Then recompile. mt should be called automatically (Set the binary name as well in the last tab)

Opeth
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu Jan 26, 2006 3:05 pm

Post by Opeth » Mon Jun 05, 2006 2:20 am

Yes, the compiler is set to be "VC 2005".

mt? sorry, I don't understand, what to set in the last tab?
mt.exe for mt? I have set it, but it is not working. those 2 dlls are still said to be missing.

Thanks.

lowjoel
Moderator
Moderator
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel » Mon Jun 05, 2006 7:35 am

Oh yes, your binary MUST be compiled with /MD for a multithreaded DLL. That way you won't have two copies of the RTL running at the same time.

Opeth
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu Jan 26, 2006 3:05 pm

Post by Opeth » Mon Jun 05, 2006 8:18 am

Great!
It is compiling and running successfully now, and the executable size is small. thanks. :D

by the way, what dlls/files should I distribute together with my exe to other people who want to use my program?

tbreina
Moderator
Moderator
Posts: 1289
Joined: Thu Nov 25, 2004 7:38 pm
Location: Coronado, CA

Post by tbreina » Mon Jun 05, 2006 11:31 am

Opeth,

Would you be willing to put together a tutorial for VC2005 and wx-devcpp for new users?

-Tony
Everybody's got something to hide except for me and my monkey.

Opeth
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu Jan 26, 2006 3:05 pm

Post by Opeth » Mon Jun 05, 2006 2:30 pm

:)

It is basically the same as
http://wxdsgn.sourceforge.net/tutorial/ ... tions.html

Just something to note in the Compiler Option:
1. Under "Compiler" Tab
- choose Visual C++ 2005
- put "/MD" in "add the following commands when calling compiler"

2. Under "Setting" Tab
- Set "exception handling" to "C++ Exceptions (with SEH)"

3. Under "Directories" Tab
- For each sub-tab move the include "C:\program files\wxDev-C++\include" right to the bottom

4. Under "Program" Tab
- Put "mt.exe" for "mt"

For project option:
1. wxmsw27u.lib should be used instead of wxmsw26.lib

lowjoel
Moderator
Moderator
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel » Tue Jun 06, 2006 12:59 am

dealing with the DLL RTL is confusing, IMHO, so you might want to static link the RTL for release builds.

Otherwise you'll have to deal with all the funny manifest things and dump all sorts of files in the system folder (Or go to the download center and get the RTL binary, which would add an additional installation package to distribute.... =sigh=)

Opeth
Earned a small fee
Earned a small fee
Posts: 19
Joined: Thu Jan 26, 2006 3:05 pm

Post by Opeth » Tue Jun 06, 2006 1:22 am

I see, so how to make a static link build?
I am a newbie, thanks.

lowjoel
Moderator
Moderator
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel » Tue Jun 06, 2006 2:02 am

a) use my static link library
b) instead of passing /MD, pass /MT and /GL
c) rebuild all

/MT tells VC to compile using a static RTL. /GL enables link-time-code-generation (which I use to compile wxWidgets in that static library, anyway. This allows cross-object inlining where the compiler deems suitable)

ross
Experienced Solver
Experienced Solver
Posts: 74
Joined: Tue Sep 14, 2004 12:09 am
Location: Australia

Post by ross » Mon Jun 26, 2006 1:40 am

Hi Joel,

I have VC2003 & VC2005 and cannot get wxDevCpp to work with either.
Your enviroment setup program cant find the toolkit, which makes sense because I can no longer down load it.

However I thought the full versions of VC2003 & 2005 would have included the relavent bits and therefore not having the toolkit would not be a problem. Enviroment variables are also "not detected".
What should they be?

So I seem to have a broken setup for getting the vc branch working. Can you offer some advice? Whats happens to the instruction page you had up?

Finally it would be nice if the setup program did not download the devpaks everytime. Once should be enough, especially as they are so large. Otherwise it seems to work, though I cant get wxdevcpp to work yet :(

ross
Experienced Solver
Experienced Solver
Posts: 74
Joined: Tue Sep 14, 2004 12:09 am
Location: Australia

Post by ross » Mon Jun 26, 2006 3:24 am

Hi Joel,

When I try and create a project from scratch the IDE crashes. All the files seem to be created except the *.dev file?

Good news is I seem to able to compile a developed in wxdev6.9 with vc branch

ross
Experienced Solver
Experienced Solver
Posts: 74
Joined: Tue Sep 14, 2004 12:09 am
Location: Australia

Post by ross » Mon Jun 26, 2006 5:46 am

I take that back. Nothing compiles at the moment with VC2005!

What should the settings be for Parameters->Compiler,C++Compiler,Linker.
I dont seem to have any *.lib files anywhere?

I think I've installed, unistalled a dozen times now and nothing seems to be working. Having to down load the packages each time is really bugging me.

Can you take this out of the install and make them available as a separate download?

ross
Experienced Solver
Experienced Solver
Posts: 74
Joined: Tue Sep 14, 2004 12:09 am
Location: Australia

Post by ross » Mon Jun 26, 2006 6:55 am

Ok I'm giving up now. I am using 6.10.1.106.

It simply keep crashing when I try and create a new project.

It fails here:
exception class : EFOpenError
exception message : Cannot open file C:\wxDev-C++\Templates\wxWidgets\wxprojRes.rc.

lowjoel
Moderator
Moderator
Posts: 1511
Joined: Sun Jun 19, 2005 11:37 am
Location: Singapore
Contact:

Post by lowjoel » Mon Jun 26, 2006 7:10 am

Probably was my mistake when packaging the alpha. Ill see if i can build one in an hour or so when I'm done with my assignment.

Joel

Post Reply