[PD-dev] Pdextended 0.43.1 and vista

Hans-Christoph Steiner hans at at.or.at
Fri Jul 1 18:24:27 CEST 2011


On Fri, 01 Jul 2011 11:08 +0200, "IOhannes m zmölnig" <zmoelnig at 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



More information about the Pd-dev mailing list