epiqc / ScaffCC

Compilation, analysis and optimization framework for the Scaffold quantum programming language.
BSD 2-Clause "Simplified" License
188 stars 53 forks source link

Can't find math.h and other headers #32

Closed MikeEynon closed 5 years ago

MikeEynon commented 5 years ago

I'm using OSX. I've tried tracking this down, but have spent way too much time trying to figure out where the pre-processor is called, and how to resolve this.

Unitive-MacBook-Pro-1598:scaffcc gonzo$ ./scaffold.sh Algorithms/Binary_Welded_Tree/binary_welded_tree.n100s100.scaffold Algorithms/Binary_Welded_Tree/binary_welded_tree.n100s100.scaffold [Scaffold.makefile] Compiling binary_welded_tree.n100s100_merged.scaffold ... binary_welded_tree.n100s100_merged.scaffold:14:10: fatal error: 'math.h' file not found

include

     ^

1 error generated. make: *** [binary_welded_tree.n100s100.ll] Error 1

I assume the standard C++ headers are used. If that's true, these are installed and used in my C++ code. For the record, I can go to the scripts dir and run regression_tests.sh. 12 of 20 run fine... only the ones requiring headers math.h or stdio.h fail.

MikeEynon commented 5 years ago

Guessing there's not a lot of OSX users here...

I gave up on this after also trying to get the QX simulator to load and run on OSX. That crashed on startup. With that, I switched to using LINUX. Everything works fine.

Bummer that Mac QC tools seem to be orphaned; but happy LINUX appears to have support.