Subj : Win32 build instructions for beginners To : Alpha From : Digital Man Date : Thu Aug 19 2021 09:03 pm Re: Win32 build instructions for beginners By: Alpha to All on Fri Aug 20 2021 03:26 am > Hi, I'm just getting started with C++ (I do have experience with Javascript, > Go and python) and I'd like to build Synchronet from source (with the hope > of one day contributing), but I'm having some problems and was hoping to get > some pointers... > > I'm running Win10, MS Visual Code C2019. I have a working version of > Synchronet 3.18c, with the zip contents of Synchronet-Win32 C/C++ Source > Code Archive (Aug-19-2021) downloaded from the FTP site downloaded and > extracted to /sbbs/repo. (I also added the deprecated v141 tool support for > XP in VS) A file with that date should have v3.19a (the current development version) in it, not v3.18c. > According to the instructions in the README.TXT file: > When I run that command in the developer Power Shell, I get many errors > across many files, but all related to "GIT_HASH": > C:\Users\robbi\repos\sbbssrc\src\sbbs3\addfiles.c(560): error C2065: > 'GIT_HASH': undeclared identifier > [C:\Users\robbi\repos\sbbssrc\src\sbbs3\addfiles.vcxproj] > Any clue what I'm doing wrong? You'll need the files (in the src/sbbs3 dir): git_branch.h and git_hash.h which are normally created by gitinfo.bat. But since you didn't get the files via Git, the gitinfo.bat isn't going to work for you. If you just want to work around this issue (and not get the source files using Git), you can create those 2 files by hand, they're just one line each: \sbbs\src\sbbs3>type git_branch.h #define GIT_BRANCH "master" \sbbs\src\sbbs3>type git_hash.h #define GIT_HASH "3313031a70" I'll see about including those files in future nightly source archives going forward. -- digital man Rush quote #20: Learning that we're only immortal, for a limited time Norco, CA WX: 67.5øF, 79.0% humidity, 6 mph ENE wind, 0.00 inches rain/24hrs .