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)
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?
\sbbs\src\sbbs3>type git_branch.h
#define GIT_BRANCH "master"
\sbbs\src\sbbs3>type git_hash.h
#define GIT_HASH "3313031a70"
\sbbs\src\sbbs3>type git_branch.h
#define GIT_BRANCH "master"
\sbbs\src\sbbs3>type git_hash.h
#define GIT_HASH "3313031a70"
Thanks, Rob. Added this, and one error went away but still getting the "git_hash" error?
Interestingly, when I run the .bat file the git_hash.h file contents get removed (e.g. ends up with a blank file).
Maybe you didn't create both files? Or didn't define GIT_HASH in the git_hash.h file?
Yup, that'd be expected since you don't actually have a git repo (and maybe don't even have 'git' installed?).
--
digital man
Maybe you didn't create both files? Or didn't define GIT_HASH in the git_hash.h file?
Yup, that'd be expected since you don't actually have a git repo (and maybe don't even have 'git' installed?).
Ah, I initialized the repo, but didn't make a commit <smacks forehead>. Fixed! Awesome, got past that error, thank you!
Looks like there are couple remaining errors, all of the "undeclared identifier" type. Any idea what those could be?
C:\Users\robbi\repos\sbbssrc\src\sbbs3\file.cpp(56): error C2065: 'FiChecksum': undeclared identifier
I'll see about including those files in future nightly source archives going forward.
Sysop: | MarisaG |
---|---|
Location: | South San Francisco, CA |
Users: | 82 |
Nodes: | 15 (0 / 15) |
Uptime: | 223:59:04 |
Calls: | 1,436 |
Calls today: | 1 |
Files: | 7 |
Messages: | 22,029 |