johnnydotdev / blockchain

Automatically exported from code.google.com/p/blockchain
0 stars 0 forks source link

Running on linux #4

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
You'll have to change line 

1793 of blockChain.cpp from 

"sprintf(scratch,"%s\\blk%05d.dat", mRootDir, mBlockIndex );"
to
"sprintf(scratch,"%s/blk%05d.dat", mRootDir, mBlockIndex );"

Since linux uses forward slashes instead of backslashes for path names.  After 
that

make
./blockchain.out pathtodatfile

works fine

Original issue reported on code.google.com by arennh...@gmail.com on 4 Dec 2013 at 7:51

GoogleCodeExporter commented 8 years ago
Note that Windows at least as far back as Windows 3.1 and 95 worked correctly 
with / as the path separator in file system calls from programs. It's only 
COMMAND.COM that wouldn't accept it in commands/batch files.

In fact I think forwards slash has worked ever since directories were 
introduced in DOS 2.0.

Original comment by bruce.ho...@gmail.com on 6 Jan 2014 at 7:28