0 votes
21 views

Can I write some C++ function in same .m file? Will it compile? If no, what changes should I do to compile it?

in Technology by (189k points)

1 Answer

0 votes

The easiest solution is to simply tell Xcode to compile everything as Objective C++.

Set your project or target settings for Compile Sources As to Objective C++ and recompile.

Then you can use C++ or Objective C everywhere.

by (189k points)

Related questions

0 votes
1 answer 19 views
19 views asked Nov 10, 2020 in Technology by JackTerrance (189k points)
0 votes
1 answer 13 views
0 votes
1 answer 13 views
0 votes
1 answer 11 views
0 votes
1 answer 14 views
0 votes
1 answer 14 views
14 views asked Nov 10, 2020 in Technology by JackTerrance (189k points)
0 votes
1 answer 14 views
0 votes
1 answer 11 views
11 views asked Nov 10, 2020 in Technology by JackTerrance (189k points)
...