Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complie error #3

Open
0ct0cat opened this issue Mar 21, 2017 · 5 comments
Open

complie error #3

0ct0cat opened this issue Mar 21, 2017 · 5 comments

Comments

@0ct0cat
Copy link

0ct0cat commented Mar 21, 2017

after run init-android-j4a.sh
cd jni4android-fork folder

./configure and make

make: *** [src/ast_annotation.o] 错误 1

my os is ubuntu 14.04 and g++ is gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

@bbcallen
Copy link
Contributor

flex and bison version?

@0ct0cat
Copy link
Author

0ct0cat commented Mar 22, 2017

bison (GNU Bison) 3.0.2
flex 2.5.35

the error information is

src/j4a__def.h:57:18: error: ‘auto_ptr’ in namespace ‘std’ does not name a type
const std::auto_ptr<std::basic_string<char_t> >& str)
^
src/j4a__def.h:57:23: error: ISO C++ forbids declaration of ‘parameter’ with no type [-fpermissive]
const std::auto_ptr<std::basic_string<char_t> >& str)
^
src/j4a__def.h:57:31: error: expected ‘,’ or ‘...’ before ‘<’ token
const std::auto_ptr<std::basic_string<char_t> >& str)
^
src/j4a__def.h: In function ‘std::basic_ostream<_CharT, _Traits>& j4a::global::operator<<(std::basic_ostream<_CharT, _Traits>&, int)’:
src/j4a__def.h:59:18: error: ‘str’ was not declared in this scope
return os << str->c_str();

but when cd jni4android(no fork) will complie success

@bbcallen
Copy link
Contributor

git log, and see if there are any difference.

@0ct0cat
Copy link
Author

0ct0cat commented Mar 22, 2017

jni4android-fork use the v0.0.1 tag(it's timestamp is Wed Jan 13 12:44:05 2016)
and jni4android use the lastest code(Wed Sep 21 10:43:05 2016).

maybe need a new tag for jni4android-fork.

@bbcallen
Copy link
Contributor

bbcallen commented Mar 22, 2017

I'll think about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants