It should also be pointed out that if C++ objects are being used and the versions are different, then name mangling becomes a concern.
Are the name mangling systems used by GPC and g++ compatable between identical versions of gcc?
In other words, if GPC is built along with g++ from the same gcc source tree, will the objects interact appropriately, or are the differences between the languages simply too much for gcc to handle?
--- Frank Heckenbach frank@g-n-u.de wrote:
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
-- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707
===== ======= Frank D. Engel, Jr.
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com