Also the location of the include and lib directories should be consistent
across all versions and maybe platforms. For example the VC version uses
\sdcc\include and \sdcc\lib. An older cygwin version (2.3.1) uses
\sdcc\share\sdcc\include, and the newest cygwin snapshot (2.3.2) uses
Another thing. It doesn't seen necessary to install cygwin in order to
compile with VC. Just flex, bison, and gawk will do. I got bison and
flex for Visual Studio from
I don't remember where I got gawk from, but it is in this directory of my
Directory of C:\Program Files\Microsoft Visual Studio\VC98\Bin
GAWK EXE 153,600 11-11-99 12:00a gawk.exe
At 08:05 PM 8/11/02 +0200, Borut Razem wrote:
>Hello SDCC developers,
>if you look to the file sdcc_vc.h, you will see that it is out-of-date
>(and also out of sync ;-).
>The version info looks like:
>#define SDCC_VERSION_HI 2
>#define SDCC_VERSION_LO 2
>#define SDCC_VERSION_P 1
>#define SDCC_VERSION_STR "2.2.2"
>The problem is, that the version number is stored in file .version. The
>configure script, which creates sdccconf.h file, generates version #define
>lines from file .version. This doesn't work for sdcc_vc.h, so it should be
>updated manually. Obviously this was not done for some time, and it also
>wasn't done correctly: SDCC_VERSION_P should be set to 2.
>To avoid such mistakes and to change the version number only in one location
>(.version), I suggest that sdcc_vc.h includes sdccconf.h, and undefines
>redefines all macros which differ. All untouched macro definitions
>SDCC_VERSION_XXX :-) will be inherited from sdccconf.h.
>The problem with this approach could be, that sdccconf.h should be generated
>with configure. I don't see this as an big obstacle, because Visual Studio
>already uses gawk, bison and flex tools, which are part of cygwin. Probably
>all developers, which compile SDCC on Visual Studio, have cygwin already
>on their machines (or I'm mistaken?).
>sdcc_vc.h would look like this:
> * This file contains diffs to sdccconf.h
>/* MSVC 6 does not have __FUNCTION__ preprocessor macro defined */
>#if defined(_MSC_VER) && (_MSC_VER < 1300)
>#define __FUNCTION__ __FILE__
>#define PREFIX "\\sdcc"
>#define SDCC_INCLUDE_DIR "\\sdcc\\include"
>#define SDCC_LIB_DIR "\\sdcc\\lib"
>/* End of sdcc_vc.h */
>Please comment this proposal.
>If have any suggestion or objection, please let me know.
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>sdcc-devel mailing list