Author Topic: Building NASM with VC++2005 express  (Read 6109 times)

Offline Manos

  • Jr. Member
  • *
  • Posts: 24
  • Country: gr
Building NASM with VC++2005 express
« on: September 01, 2014, 08:05:53 PM »
Hello.

I have builded nasm211 for win32-64 only, using VC++2005, express edition.
I have excluded the unnecessary files.
Anyone interested can download the .zip file.
Unzip the file and do a double click on nasm211.sln.
If someone has VC++2008 express instead of VC++2005, VC++2008 will adapt
the project.

Note:
Because VC++2005 comes with its own include and libraries
that use msvcr80 DLL or its static libraries that add a ton of code,
I changed this behavior so that to use the MSVCRT.dll that is a system DLL.
To do this, you should download the Windows Server 2003 Service Pack1 (SP1) Driver Development Kit (DDK).
Make the folder: C:\WINDDK.
Then run VC++2005 and from menu Tools--->Options, go to Projects and Solutions--->VC++ Directories, select: Include Files and make two directories: C:\WINDDK\inc\crt and C:\WINDDK\inc\w2k.
Then select: Library Files and make two directories:
C:\WINDDK\lib\crt\i386 and C:\WINDDK\lib\w2k\i386.
In this way, VC++2005 will use the MSVCRT.dll instead of MSVCR80.dll.
The above new directories must locate on the top of list box,
so that VC++2005 will find these before find its own directories.

Manos.
« Last Edit: September 01, 2014, 09:49:16 PM by Manos »

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: Building NASM with VC++2005 express
« Reply #1 on: September 01, 2014, 08:20:12 PM »
Thanks, Manos!

Best,
Frank


Offline Manos

  • Jr. Member
  • *
  • Posts: 24
  • Country: gr
Re: Building NASM with VC++2005 express
« Reply #2 on: September 01, 2014, 08:26:18 PM »
Thank you Frank.

About my C compiler, I decided finally to use nasm209 as a back end.
I could use nasm211, but this version adds too many code that it is
unnecessary to me, since my C compiler is for win32 only.

Manos.
« Last Edit: September 01, 2014, 08:29:08 PM by Manos »