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

Cross Compile Error #358

Closed
lsdy opened this issue Aug 24, 2018 · 3 comments
Closed

Cross Compile Error #358

lsdy opened this issue Aug 24, 2018 · 3 comments

Comments

@lsdy
Copy link

lsdy commented Aug 24, 2018

When I compile with arm-gcc 4.4,I add tag "-std=c++0x".

In file included from /home/eclipse-workspace/Push/src/base/Logging.h:17,
                 from Push.cpp:12:
/home/eclipse-workspace/Push/src/log/glog/logging.h: In function 'T google::CheckNotNull(const char*, int, const char*, T&&)':
/home/eclipse-workspace/Push/src/log/glog/logging.h:1333: error: 'nullptr' was not declared in this scope

GXX_EXPERIMENTAL_CXX0X is defined while the gcc version is smaller than 4.7

@PolynomialDivision
Copy link

Similar issue when I try to cross compile to mips_24kc with OpenWrt Imagebuilder:

src/symbolize_unittest.cc: In function 'int main(int, char**)':
src/symbolize_unittest.cc:410:3: error: 'TestWithPCInsideInlineFunction' was not declared in this scope
   TestWithPCInsideInlineFunction();
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/symbolize_unittest.cc:411:3: error: 'TestWithPCInsideNonInlineFunction' was not declared in this scope
   TestWithPCInsideNonInlineFunction();
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/symbolize_unittest.cc:412:3: error: 'TestWithReturnAddress' was not declared in this scope
   TestWithReturnAddress();
   ^~~~~~~~~~~~~~~~~~~~~

Similar to

glog: v0.4.0
gflags: v2.2.2

@edwardzjl
Copy link

Similar issue when I try to cross compile to mips_24kc with OpenWrt Imagebuilder:

src/symbolize_unittest.cc: In function 'int main(int, char**)':
src/symbolize_unittest.cc:410:3: error: 'TestWithPCInsideInlineFunction' was not declared in this scope
   TestWithPCInsideInlineFunction();
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/symbolize_unittest.cc:411:3: error: 'TestWithPCInsideNonInlineFunction' was not declared in this scope
   TestWithPCInsideNonInlineFunction();
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/symbolize_unittest.cc:412:3: error: 'TestWithReturnAddress' was not declared in this scope
   TestWithReturnAddress();
   ^~~~~~~~~~~~~~~~~~~~~

Similar to

glog: v0.4.0
gflags: v2.2.2

Same problem, have you solved it?

@edwardzjl
Copy link

I solved this issue by

  1. reinstall gflag with -DBUILD_SHARED_LIBS=ON
  2. do not use ./autogen.sh && ./configure to generate Makefile, instead use cmake

@sergiud sergiud closed this as completed Mar 30, 2021
@sergiud sergiud mentioned this issue May 6, 2021
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

4 participants