Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wx with free MS VC++ compiler - it works

0 views
Skip to first unread message

Michele Galante

unread,
Apr 22, 2004, 3:40:13 AM4/22/04
to
In a previous thread it was pointed out that the free MS VC++ toolkit
was missing some important tools like "lib.exe", "nmake.exe", "cvtres.exe".

I noticed that the Microsoft Platform SDK (also a free download,
required if you want to build Windows applications with the free VC++
compiler) comes with a "bin\win64" subdirectory that provides tools for
previewing the WIN64 platform. This directory contains compiler and
linker for the IA64 processor, but there are also the lib/nmake/cvtres
utilities and they work on WIN32.

I have installed the "Microsoft Visual C++ Toolkit 2003" and the
"Microsoft Platform SDK February 2003" on my Windows XP system and did
the following settings:

set MSVC=[VC++ install dir]
set MSSDK=[Platform SDK install dir]

set INCLUDE=%MSVC%\include;%MSSDK%\include
set LIB=%MSVC%\lib;%MSSDK%\lib
set PATH=%MSVC%\bin;%MSSDK%\bin;%MSSDK%\bin\win64;%PATH%

Please note the PATH setting: "%MSSDK%\bin\win64" must be specified
after "%MSVC%\bin" and "%MSSDK%\bin" so that only the missing WIN32
tools are searched in the WIN64 toolset.

I then was able to build the wxWidgets 2.5.1 libraries, the "minimal"
sample and the "life" demo with:

nmake -f makefile.vc BUILD=release SHARED=0 RUNTIME_LIBS=static

Enjoy.

--
Michele Galante
Zucchetti Centro Sistemi SPA
m.ga...@centrosistemi.it

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
For additional commands, e-mail: wx-use...@lists.wxwidgets.org

Jorg B

unread,
Apr 22, 2004, 4:37:07 AM4/22/04
to
This will make a great wxWiki addition ;-) (*hint*)

Michele Galante wrote:

--
===========================================================================
wxTreeMultiCtrl - Add any wxWindow control to a tree based view!
http://www.xs4all.nl/~jorgb/treemultictrl/wxTreeMultiCtrl.htm
---------------------------------------------------------------------------
wxCRP - A Flexible Programmable Code Generator and Repository Tool!
http://www.xs4all.nl/~jorgb/wxcrp/
===========================================================================

Schuhmacher Juergen

unread,
Apr 22, 2004, 8:46:08 AM4/22/04
to

HA! - This morning I just wanted to ask for such
information (success with MS Toolkit + wxWidgets),
and now we are here.

GRAZIE MILLE MICHELE :-)

Dipl.-Ing. Jürgen Schuhmacher
VACUUMSCHMELZE GmbH&Co. KG
R&D Cores and Components


-----Ursprüngliche Nachricht-----
Von: Michele Galante [mailto:m.ga...@centrosistemi.it]
Gesendet: Donnerstag, 22. April 2004 09:40
An: wx-u...@lists.wxwidgets.org
Betreff: wx with free MS VC++ compiler - it works


In a previous thread it was pointed out that the free MS VC++ toolkit
was missing some important tools like "lib.exe", "nmake.exe", "cvtres.exe".

I noticed that the Microsoft Platform SDK (also a free download,
required if you want to build Windows applications with the free VC++
compiler) comes with a "bin\win64" subdirectory that provides tools for
previewing the WIN64 platform. This directory contains compiler and
linker for the IA64 processor, but there are also the lib/nmake/cvtres
utilities and they work on WIN32.

I have installed the "Microsoft Visual C++ Toolkit 2003" and the
"Microsoft Platform SDK February 2003" on my Windows XP system and did
the following settings:

set MSVC=[VC++ install dir]
set MSSDK=[Platform SDK install dir]

set INCLUDE=%MSVC%\include;%MSSDK%\include
set LIB=%MSVC%\lib;%MSSDK%\lib
set PATH=%MSVC%\bin;%MSSDK%\bin;%MSSDK%\bin\win64;%PATH%

Please note the PATH setting: "%MSSDK%\bin\win64" must be specified
after "%MSVC%\bin" and "%MSSDK%\bin" so that only the missing WIN32
tools are searched in the WIN64 toolset.

I then was able to build the wxWidgets 2.5.1 libraries, the "minimal"
sample and the "life" demo with:

nmake -f makefile.vc BUILD=release SHARED=0 RUNTIME_LIBS=static

Enjoy.

--

Michele Galante
Zucchetti Centro Sistemi SPA
m.ga...@centrosistemi.it

---------------------------------------------------------------------

Barry

unread,
Apr 23, 2004, 4:38:16 PM4/23/04
to
Do these builds depend on the new DLLs such as the msvcr7x.dll? I have
VS.net and wxWidgets builds depend on these which I don't want to include
for installation so I have to move to a different compiler for a final
build.

- Barry

"Michele Galante" <m.ga...@centrosistemi.it> wrote in message
news:408776E5...@centrosistemi.it...

Eduardo M KALINOWSKI

unread,
Apr 24, 2004, 8:14:31 AM4/24/04
to
Michele Galante wrote:

> In a previous thread it was pointed out that the free MS VC++ toolkit
> was missing some important tools like "lib.exe", "nmake.exe",
> "cvtres.exe".
>
> I noticed that the Microsoft Platform SDK (also a free download,
> required if you want to build Windows applications with the free VC++
> compiler) comes with a "bin\win64" subdirectory that provides tools
> for previewing the WIN64 platform. This directory contains compiler
> and linker for the IA64 processor, but there are also the
> lib/nmake/cvtres utilities and they work on WIN32.
>
> I have installed the "Microsoft Visual C++ Toolkit 2003" and the
> "Microsoft Platform SDK February 2003" on my Windows XP system and did
> the following settings:

I've tried to do the same. I've installed Microsoft Visual C++ Toolkit
2003 and the Core Windows SDK, which is part of that Microsoft Platform
SDK February 2003. Compilation starts and works until a file (I don't
remember which one) that #include's shlwapi.h. A quick search reveals
that I don't have this header file anywhere, even tought the
corresponding shlwapi library is present.

Anyone has a clue about which SDK component of the several that make the
Platform SDK would have this header?

--
Madness takes its toll.

Eduardo M KALINOWSKI
eka...@bol.com.br
http://move.to/hpkb

Wlodek Szafran

unread,
Apr 24, 2004, 9:49:19 AM4/24/04
to
Eduardo M KALINOWSKI wrote:
>
> I've tried to do the same. I've installed Microsoft Visual C++ Toolkit
> 2003 and the Core Windows SDK, which is part of that Microsoft Platform
> SDK February 2003. Compilation starts and works until a file (I don't
> remember which one) that #include's shlwapi.h. A quick search reveals
> that I don't have this header file anywhere, even tought the
> corresponding shlwapi library is present.
>
> Anyone has a clue about which SDK component of the several that make the
> Platform SDK would have this header?

This header file belongs to the Internet SDK, so you need to install
that in addition to the Core SDK.

--
Wlodek Szafran

Eduardo M KALINOWSKI

unread,
Apr 24, 2004, 4:09:09 PM4/24/04
to
Wlodek Szafran wrote:

Thanks, this solved the problem, and I was able to build the library.

However, when I try to compile one of the samples (such as the minimal
one), I get a linking error saying that "MSVCRTD.lib" was not found.
Searching for this file, I've discovered only versions of this library
for the win64 architecture. I've got now the whole Platform SDK installed.

Solutions?

Thanks in advance,

--
A man of genius makes no mistakes.
His errors are volitional and are the portals of discovery.
-- James Joyce, "Ulysses"

Mike Wetherell

unread,
Apr 24, 2004, 4:58:14 PM4/24/04
to
On Saturday 24 April 2004 9:08 pm, Eduardo M KALINOWSKI wrote:
> However, when I try to compile one of the samples (such as the
> minimal one), I get a linking error saying that "MSVCRTD.lib" was not
> found.

Apparently, it only allows you to statically link to the runtime libs
(see 'redist.txt' in the toolkit directory). Also AFAICT, there's no
debug version of the multithreaded libs.

So, you need to select the static RTL, and use it's release version
even when doing a debug build.

Try this:
nmake -f makefile.vc RUNTIME_LIBS=static DEBUG_RUNTIME_LIBS=0

Linking gave lots of warning about missing pdbs, but it linked and I
was able to do source level debugging with:

windbg -c "bp WinMain;g" vc_mswd\minimal.exe

(windbg is yet another download).

Mike

Wlodek Szafran

unread,
Apr 24, 2004, 4:50:29 PM4/24/04
to
Eduardo M KALINOWSKI wrote:

[cut]

> However, when I try to compile one of the samples (such as the minimal
> one), I get a linking error saying that "MSVCRTD.lib" was not found.
> Searching for this file, I've discovered only versions of this library
> for the win64 architecture. I've got now the whole Platform SDK installed.
>
> Solutions?

With the free VC++ 2003 tools you only can make static links -- what
you're trying to do now is linking with import libraries for DLL's. You
need to build the wxWidgets library in its "static" version and then
link your application with the static version of the run-time library.
A few posts back in this thread a solution was presented by Michele Galante.

--
Wlodek Szafran

0 new messages