IM wrote:
Hi All! I need to use C++ units (*.cpp) in my GPC projects. If I use C units (*.c) in my project (just like {$L socketmain.c}) it's ok but if I try to use {$L socketmain.cpp} then Pascal compiler tells me
gpc: ./socketmain.cpp: C++ compiler not installed on this system.
But it installed. Two things I tried to do:
By default, the automake mechanism only uses the compilers that were built and installed together with GPC. Apparently you have the C++ compiler separately installed.
You can try the option `--automake-g++=g++' (if `g++' is your C++ compiler). This might cause problems if the versions of the compilers differ too much, but often it should work.
Frank