Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

adding c++ library giac/xcas to iOS project

I've never included a C++ library in an iOS project before. Therefore I do not have so much experience with setting specific parameters. I want to use the giac CAS library from this site: https://www-fourier.ujf-grenoble.fr/~parisse/giac.html .

What have I done so far:

  • copied libtommath files and dragged into my project
  • copied all c++ and c header files from giac/src and dragged into my project
  • copied config.h.iphone to config.h
  • In build settings I changed C++ Standard Library to libstdc++ (GNU C++ standard library)
  • In Header Search Paths and Library Search Paths I added gmp.h via the entry /usr/local/Cellar/gmp/6.2.1/include/**
  • In Other Linker flags I added the entry "-lgmp"

Before trying to add an Objective-C++ class to expose functions from giac, I want to see if it could be built.

But I get the error "cstddef file not found" in file first.h Do I have to make other settings ?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...