DeveloperSide.NET Forums
August 20, 2019, 12:39:48 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Building with VC++ 6.0  (Read 54389 times)
0 Members and 1 Guest are viewing this topic.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« on: July 11, 2005, 11:25:04 PM »

Most Open Source applications that we use: Apache, PHP, MySQL, etc, are officialy built with VC++ 6.0.  When you start mixing and linking these components with other components that you have built with other compilers (VS.NET 2002,2003,2005)...
At best, you are mixing runtime libs. At worst, your build will be unstable, or it will just fail.
(VC++ 6.0 links against msvcrt.dll, VS.NET 2002 links against msvcr70.dll / .NET 1.0, VS.NET 2003 links against msvcr71.dll / .NET 1.1, VS.NET 2005 links against msvcr80.dll / .NET 2.0)

To build components with Visual Studio 98 (VS98) -- Visual C++ 6.0 (VC++ 6.0) -- you will need the following...

Product Updates for Visual Studio 6.0
http://msdn.microsoft.com/vstudio/previous/vs6/downloads/default.aspx

1) Microsoft Service Pack 5 for Visual Studio 6.0*
2) Visual C++ 6.0 Processor Pack (provides MASM)

http://msdn.microsoft.com/vstudio/downloads/tools/ppack/default.aspx
Quote

*The Visual C++ 6.0 Processor Pack is not compatible with Visual C++ Service Pack 6. If you install the Visual C++ Service Pack 6 on a machine on which the Processor Pack is already installed, the Processor Pack functionality will become unavailable. Likewise, if you install the Processor Pack on a machine on which the Service Pack 6 is already installed, the Service Pack 6 will no longer function.


Also, if you have installed one of the Microsoft Platform SDKs, you might need to downgrade to...
Microsoft Platform SDK, February 2003 Edition
The only way you can get this SDK is by ordering it (for about $10 -- you only pay shipping costs) from...
http://www.qmedia.ca/launch/psdk.htm

The current Platform SDK, Windows Server 2003 SP1 Platform SDK -- April 2005 Edition, is not compatable with VC++ 6.0...
(Note: This SDK is for Windows 2000, XP, 2003 -- not just 2003)
(Note: Windows Server 2003 R2 Platform SDK -- March 2006 Edition, is the most recent edition, but does not list Windows 2000 under 'Supported Operating Systems' -- an oversight *?* -- and is also a release candidate)
http://msdn.microsoft.com/library/en-us/sdkintro/sdkintro/devdoc_platform_software_development_kit_start_page.asp
Quote

This SDK does not support working with Microsoft Visual C/C++, 6.0 as support for VC 6.0 has ended. The last SDK that will work with VC 6.0 is the February 2003 Edition, you can order a CD on the fulfillment site. Side by side installations are not supported.

http://msdn.microsoft.com/library/en-us/sdkintro/sdkintro/using_the_platform_sdk.asp
Quote

You cannot use the libraries from the current Platform SDK with Visual C/C++ 6.0 because the libraries were compiled using the new /GS switch to enable buffer overrun detection code. Using libraries compiled with this switch with Visual C/C++ 6.0 results in link errors. Specifically, the linker reports that it cannot find __security_cookie or __security_check_cookie.


Or just edit the build environment and takeout...

PATH
Executable files: C:\Program Files\Microsoft Platform SDK\Bin

INCLUDE
Include files: C:\Program Files\Microsoft Platform SDK\include

LIB
Library files: C:\Program Files\Microsoft Platform SDK\lib

As long as you install VC++ 6.0 under Windows 2000/XP, you might not need to install any Platform SDKs.  The Platform SDK basically provides a more recent version of the libs and header files (...that prototype the functions in those libs), and for most apps (like Apache), the libs and header files that came with VC++ 6.0 are resent enough.

http://msdn.microsoft.com/library/en-us/sdkintro/sdkintro/installing_the_platform_sdk_with_visual_studio.asp
Quote

Microsoft Visual C/C++ contains a snapshot of the Microsoft Platform SDK content at the time that Visual C++ was released. Over time, the Platform SDK content included with Visual C++ will become out of date, because the Platform SDK can be updated on a different schedule than Visual C++. This content includes SDK tools, Windows header files, and Windows import libraries.


If you install more than one Platform SDK, install each to different locations. Specify the correct SDK under VC++ Options or command-shell environment and remove the other.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #1 on: July 12, 2005, 03:34:33 AM »

http://msdn.microsoft.com/library/en-us/winprog/winprog/using_the_windows_headers.asp
Quote

Microsoft Visual C++ includes copies of the Windows header files that were current at the time Visual C++ was released. Therefore, if you install updated header files from an SDK, you may end up with multiple versions of the Windows header files on your computer. If you do not ensure that you are using the latest version of the SDK header files, you will receive the following error code when compiling code that uses features that were introduced after Visual C++ was released: error C2065: undeclared identifier.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #2 on: March 06, 2006, 09:44:21 PM »

Just a note for anyone installing the Platform SDK...
Use the online installer and only install these parts of the SDK, instead of the entire package...
Windows Core SDK
Web Workshop (IE) SDK
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #3 on: May 07, 2006, 08:43:12 PM »

Installing Visual Studio Versions Side-by-Side
http://msdn2.microsoft.com/en-US/library/ms246609.aspx
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #4 on: May 08, 2006, 03:18:15 AM »

Here is what I have on my development system right now...
Windows 2000 clean install with updates.

The following are installed in order...

VC++ 6.0
VC++ 6.0 Service Pack #5
VC++ 6.0 Processor Pack
C:\Program Files\Microsoft Visual Studio\

Platform SDK (version February 2003 -- Core and Internet Development SDKs only)
C:\Program Files\Microsoft SDK\
Note: This PSDK's bin, include, lib dirs should come 1st in env vars over VC++ 6.0 -- we are updating and replacing VC++ 6.0 headers, libs, and executables.

.NET Framework 1.0, 1.1, 2.0 Runtimes
C:\WINNT\Microsoft.NET\Framework\(v1.0,v1.1,v2.0)

Visual C++ Express Edition
C:\Program Files\Microsoft Visual Studio 8\

Platform SDK (version Windows Server 2003 SP1 -- full install)
C:\Program Files\Microsoft Platform SDK\
Note: This PSDK's bin, include, lib dirs should come 2nd in env vars over VC++ 2005 Express -- we are not updating or replacing anything, only adding and complementing. This PSDK is an older release than VC++ 2005 Express and has older versions of executables such as nmake.

Integrate PSDK 2003 SP1 with VC++ Express...
http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/default.aspx

I might also install this in the future...
.NET Framework 2.0 Software Development Kit (SDK)
C:\Program Files\Microsoft.NET\SDK\(v1.0,v1.1,v2.0)
Normal versions of VS come with Win32 API headers and libs, and .NET Framework SDKs.

Notepad++

TortoiseSVN (svn client)

PuTTY (ssh client)

I'll add some usefull links here...

Microsoft Win32 to Microsoft .NET Framework API Map
http://msdn.microsoft.com/library/en-us/dndotnet/html/win32map.asp

.NET Framework Tools & Utilities
http://msdn.microsoft.com/netframework/downloads/tools/

Dependency Walker
http://www.dependencywalker.com/

More to add.
« Last Edit: January 21, 2007, 03:10:22 PM by admin » Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #5 on: May 11, 2006, 07:12:23 PM »

http://www.apache.org/dist/httpd/binaries/win32/README.html

Quote

If you want to build OpenSSL 0.9.8a it is available in source code form at http://www.openssl.org/source/openssl-0.9.8a.tar.gz. Due to quirks in the build, and the need to create .pdb diagnostic files, we offer this patch, patches_applied/openssl-0.9.8a-vc32-2005.patch to modify that build, and have proposed this patch back to the project for its consideration.

This binary release was created with Visual Studio 6.0, using a more recent Platform SDK for the ldap api. It includes zlib1.dll for mod_deflate.so built with this patch, patches_applied/zlib-1.2.3-vc32-2005-rcver.patch, to correct the embedded version number and provide us a .pdb diagnostic file. We have proposed this patch back to the project for its consideration.


I'm not sure if this only applies to Apache 2.2 and if this has anything to do with the openssl and zlib patches that are needed for the Apache 2.0 build.

Here is the link for the mentioned patches...
http://www.apache.org/dist/httpd/binaries/win32/patches_applied/
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #6 on: May 11, 2006, 07:16:47 PM »

More information can be found here by searching for win32 or windows...
http://mail-archives.apache.org/mod_mbox/httpd-dev/
http://mail-archives.apache.org/mod_mbox/httpd-users/
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #7 on: May 12, 2006, 10:05:16 PM »

VC++ build of httpd-2.2.2 will result in a build error...
Quote

apr_ldap_init.c
./include\apr_ldap.h(96) : fatal error C1189: #error :
Support for LDAP v2.0 toolkits has been removed from apr-util. Please use an LDAP v3.0 toolkit.


VC++ with Platform SDK 2003 Feb will compile httpd-2.2.2 without breaking on LDAP.

http://msdn.microsoft.com/library/en-us/ldap/ldap/lightweight_directory_access_protocol_ldap_api.asp
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
MrTom
Member
*
Posts: 1


View Profile
« Reply #8 on: January 05, 2007, 03:07:33 PM »

>Microsoft Platform SDK, February 2003 Edition
>The only way you can get this SDK is by ordering it (for about $10 -- you only pay shipping costs) from...
>http://www.qmedia.ca/launch/psdk.htm

Thanks for the pointer.
I tried to use the above link which shows the actual software is free and the only cost is for the shipping.
However when I try to pay for the shipping, the web page fails.

Has anyone been able to order it from this web page?

If so, would you make the SDK available to download?

If you are hesitant to post it available to the world,
would you email me at TomIn01821@Yahoo.com and
I will download it and, if you want, I can make it available from
my web site.

Thanks again,
-Tom
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #9 on: January 05, 2007, 03:19:12 PM »

You can still get it here, though its been known that this page has fallen through the cracks and when Microsoft notices, they will take it down [so you might not want to broadcast it]...
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm

Don't let the url and heading fool you, its the Feb 2003 editon of the Platform SDK for Windows 2000,XP,2003.
« Last Edit: January 05, 2007, 03:21:58 PM by admin » Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
yfastud
Customer, Basic Support
Jr. Member
*****
Posts: 36


View Profile
« Reply #10 on: January 13, 2007, 12:32:41 AM »

We never really compiled any wamp package before and a little curious to do it just for testing. Is it very hard? Can we use VC++ 8 instead 6?
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #11 on: January 13, 2007, 12:45:14 AM »

Start with Apache. You can use VS.NET to build it.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
yfastud
Customer, Basic Support
Jr. Member
*****
Posts: 36


View Profile
« Reply #12 on: January 13, 2007, 12:55:22 AM »

We will read more the tutors here. Thanks.
Logged
rezagha
Member
*
Posts: 1


View Profile Email
« Reply #13 on: January 17, 2007, 08:05:52 PM »

Hi everyone
I'm trying to build apache 2.2.3 on command line with VC++ 6.0 and I aleady download the SDK (the link that admin gave us) and I did install it. I checked for include, lib,and path; they are all fine and set.
But when start to build apache it gives me this error:

fatal error RC1109: error creating Debug/mod_usertrack.res
NMAKE : fatal error U1077: rc.exe : return code '0x1'
Stop
NMAKE : fatal error U1077: PATH_TO_BIN\nmake.exe : retrun code '0x2'
stop
NMAKE : fatal error U1077: PATH_TO_BIN\nmake.exe : retrun code '0x2'
stop

Dose anyone know to resolve this problem.

Thanks
Best Regards
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!