On Fri, 01 Jul 2011 11:08 +0200, "IOhannes m zmölnig" zmoelnig@iem.at wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 07/01/2011 08:40 AM, Patrice Colet wrote:
needs to figure out how to do the final linking using g++ to link the C ++ ASIO files and C files from the rest.
why not using cc for compiling portaudio files,
because you need a c++ compiler to compile c++ code.
and you need a c++ linker to link with c++ objects (such as the portaudio objects)
the trick to use g++ for linking, is to use a dummy .cpp file, so autotools will automatically choose g++.
something like:
<snip> nodist_EXTRA_pd_SOURCES= if PORTAUDIO nodist_EXTRA_pd_SOURCES += dummy.cpp endif </snip>
It would be worth trying:
LD=$CXX
It might be more complicated than that, but the makefile.mingw seems to disprove this:
- You must use your C++ compiler when compiling main() (e.g., for static initialization) - Your C++ compiler should direct the linking process (e.g., so it can get its special libraries)
Other potentially useful info here: http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html
.hc