Virgo Logbook
UTC--:--:--
GPS-
Reports
Computers Network›Software Management #590

(untitled)

One funny problem that happens on ax1 when one links a C file
with libraries that contain C++ objects: there are some
unresolved external references:
unexpected__3stdXv
__cxx_v60_dispatch__X4need3new8libcxxso
__cxx_throw_setup
__cxx_throw_ctor
__cxx_exception_caught
__cxx_handler_exit__X4need3new8libcxxso

Explanation: As we compile a C file, the command cc is invoked.
This command DOES NOT search the libraries in /usr/lib/cmplrs/cxx
where the standard C++ libraries reside.So it only finds an
old library file /lib/libc++.a which does not contain the right
references.

Solution: use -L/usr/lib/cmplrs/cxx