munificent / finch Goto Github PK
View Code? Open in Web Editor NEWThe Finch programming language
Home Page: http://finch.stuffwithstuff.com
License: Other
The Finch programming language
Home Page: http://finch.stuffwithstuff.com
License: Other
Hi,
I'm using gyp's revision r1139.
So after installing gyp and git cloning finch:
~$ uname -a
Linux eigen 3.1.4-1-ARCH #1 SMP PREEMPT Tue Nov 29 08:55:45 CET 2011 x86_64 Pentium(R) Dual-Core CPU E5300 @ 2.60GHz GenuineIntel GNU/Linux
~$ g++ --version
g++ (GCC) 4.6.2 20111125 (prerelease)
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
~$ gyp --depth=1
~$ cd 1
~$ make
CXX(target) out/Debug/obj.target/finch/../src/Base/FinchString.o
../src/Base/FinchString.cpp: In member function ‘int Finch::String::IndexOf(const Finch::String&) const’:
../src/Base/FinchString.cpp:131:59: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
make: *** [out/Debug/obj.target/finch/../src/Base/FinchString.o] Error 1
~$ vim ../src/Base/FinchString.cpp
~$ git diff
diff --git i/src/Base/FinchString.cpp w/src/Base/FinchString.cpp
index 26b37bb..8c95926 100644
--- i/src/Base/FinchString.cpp
+++ w/src/Base/FinchString.cpp
@@ -128,7 +128,7 @@ namespace Finch
{
if (mData.IsNull()) return -1;
- char* found = strstr(mData->chars, other.CString());
+ const char* found = strstr(mData->chars, other.CString());
if (found == NULL) return -1;
return static_cast<int>(found - mData->chars);
~$ make
CXX(target) out/Debug/obj.target/finch/../src/Base/FinchString.o
CXX(target) out/Debug/obj.target/finch/../src/Base/StringTable.o
CXX(target) out/Debug/obj.target/finch/../src/Compiler/CodeBlock.o
In file included from ../src/Compiler/CodeBlock.cpp:1:0:
../src/Compiler/CodeBlock.h:8:20: fatal error: Object.h: No such file or directory
compilation terminated.
make: *** [out/Debug/obj.target/finch/../src/Compiler/CodeBlock.o] Error 1
I can provide you with the generated *.mk files.
I guess I'm probably misusing gyp.
Vassilis
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.