Azzera filtri
Azzera filtri

Changing windows mex code to Mac mex code

1 visualizzazione (ultimi 30 giorni)
Koren Murphy
Koren Murphy il 7 Dic 2020
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

Risposte (0)

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by