Changing windows mex code to Mac mex code

1 view (last 30 days)
I have the following lines of code in windows and linux format but I want to change them to mac format what should this look like? I have downloaded xcode.
if ispc
% windows platform, MSVC compiler
mex COMPFLAGS="$COMPFLAGS /openmp" -largeArrayDims -v count_subsets.cpp
mex COMPFLAGS="$COMPFLAGS /openmp" -largeArrayDims -v is_subset.cpp
mex COMPFLAGS="$COMPFLAGS /openmp" -largeArrayDims -v adjacency_test_pattern_tree_C.cpp
mex COMPFLAGS="$COMPFLAGS /openmp" -largeArrayDims -v prune_candidates_rank_pattern_tree_C.cpp
mex calculate_fraction.c
mex flush_file_cache.cpp
elseif isunix
% unix platform, GCC compiler
mex CXXFLAGS="\$CXXFLAGS -fopenmp" LDFLAGS="\$LDFLAGS -fopenmp" -largeArrayDims -v count_subsets.cpp
mex CXXFLAGS="\$CXXFLAGS -fopenmp" LDFLAGS="\$LDFLAGS -fopenmp" -largeArrayDims -v is_subset.cpp
mex CXXFLAGS="\$CXXFLAGS -mpopcnt -fopenmp" LDFLAGS="\$LDFLAGS -mpopcnt -fopenmp" -largeArrayDims -v prune_candidates_rank_pattern_tree_C.cpp
mex CXXFLAGS="\$CXXFLAGS -fopenmp" LDFLAGS="\$LDFLAGS -fopenmp" -largeArrayDims -v adjacency_test_pattern_tree_C.cpp
mex calculate_fraction.c
mex flush_file_cache.cpp

Answers (0)

Categories

Find more on MATLAB Compiler in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!