I've been using VC8 for quite a while now, through betas to current RC.
Compiles SDCC quite well, with one added definition for PATH_MAX (as
noted below). VC8 quickly updates the old .dsw file into a .sln file.
If you go that route, you will have the solution files very quickly.
The slew of warnings have to do with the fact that things like
sprintf() are succeptable to buffer overruns. It's a security hole and
a place where bugs tend to lurk. Not just an MS thing to suspect these
calls as potential problems.
[mailto:sdcc-devel-admin@...] On Behalf Of Beau E.
Sent: Thursday, December 01, 2005 8:25 PM
To: sdcc-user@...; sdcc-devel@...;
Subject: [sdcc-devel] Re: [Sdcc-user] MSVC
Hi Maarten -
At 2005-12-01, 12:47:11 you wrote:
>Are there any developers or users out there using Microsoft Visual C 6
to compile SDCC from the=20
>sources? I'm asking because I'm considering to switch to the new and
free Visual C++ 2005=20
>All comments are welcome,
I'm using VC6, VC7 ( 2003 toolkit ) and VC8 ( 2005 Express ). I am not
using the IDE's, but
converting the VC6 .dsw/.dsp files to Makefiles and doing nmake. If you
switch, I would have to
revamp those conversion scripts - no sweat - I just would like a head's
By the way, there are a few things that I stumbled upon when compiling
with VC8 that may be of help:
1) Be sure to disable warning #4996 ( /wd4996 ) otherwise you get a lot
warnings. It seems that the gurus at M$ are going to rename a bunch of
functions in their
c library again, and these warnings are the first step.
2) src/support/librarian/sdcclib.c won't compile without a tweak. The
headers in that source
are as such:
#if !defined(__BORLANDC__) && !defined(_MSC_VER)
The problem is that stdlib.h includes limits.h and _POSIX_ is not
at that time. When limits.h is included it nops because of duplicate
protection. That means the MAX_... _POSIX_ constants used in sdcclib.c
defined and hence the error. I solved it by defining _POSIX_ at compile
( /D_POSIX_ ) and disabling the ensuing warning ( /wd4005 ). Moving the
#define _POSIX_ up should work too, but I was afraid of side effects.
Aloha =3D> Beau;
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
sdcc-devel mailing list