cmd/mingle depends on lib/mingle, which in turn depends on libANN, a C++
library. Thus the `mingle` binary needs to link against the C++ standard
library. There is no advantage to Mingle being implemented in C, and some nice
advantages to it being implemented in C++ instead.
This commit does a basic rename, as AFAICT nothing in minglemain.c has varying
semantics between C and C++. Future commits will use C++ features to simplify
the code.
Related to #2154.
pdf =
endif
-mingle_SOURCES = minglemain.c
+mingle_SOURCES = minglemain.cpp
mingle_CPPFLAGS = $(AM_CPPFLAGS)
mingle_LDADD = \
$(top_builddir)/lib/mingle/libmingle_C.la \
$(top_builddir)/lib/cdt/libcdt.la \
$(ANN_LIBS) -lm
-# add a non-existent C++ source to force the C++ compiler to be used for
-# linking, so the C++ standard library is included for our C++ dependencies
-nodist_EXTRA_mingle_SOURCES = fake.cxx
-
if ENABLE_MAN_PDFS
if HAVE_PS2PDF
mingle.1.pdf: mingle.1.ps
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
- <ClCompile Include="minglemain.c" />
+ <ClCompile Include="minglemain.cpp" />
</ItemGroup>
<ItemGroup>
<Text Include="ReadMe.txt" />
</Filter>
</ItemGroup>
<ItemGroup>
- <ClCompile Include="minglemain.c">
+ <ClCompile Include="minglemain.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>