Subject: Re: CCL:How to call a C++ program from C?

From: Jochen <[email-masked]>
Date: Sun, 10 Oct 1999 19:10:58 +0200

On Sam, 09 Okt 1999 Tao Peng wrote:

>ld: WARNING 85: definition of main in main.o preempts that definition in 
>/usr/lib/libftn.so.
>ld: WARNING 84: /usr/lib/libftn.so is not used for resolving any symbol.
>ld: ERROR 33: Unresolved text symbol "__nw__FUi" -- 1st referenced by 
>crossroads_total.o.
>ld: ERROR 33: Unresolved text symbol "__vec_new" -- 1st referenced by 
>crossroads_total.o.
>ld: ERROR 33: Unresolved data symbol "cout" -- 1st referenced by 
>crossroads_total.o.
>ld: ERROR 33: Unresolved text symbol "__ls__7ostreamFPCc" -- 1st 
>referenced by crossroads_total.o.
>ld: ERROR 33: Unresolved text symbol "__ls__7ostreamFi" -- 1st referenced 
>by crossroads_total.o.
>ld: ERROR 33: Unresolved text symbol "endl__FR7ostream" -- 1st referenced 
>by crossroads_total.o.
>ld: ERROR 33: Unresolved text symbol "__ct__13Iostream_initFv" -- 1st 
>referenced by crossroads_total.o.
>ld: ERROR 33: Unresolved text symbol "__dt__13Iostream_initFv" -- 1st 
>referenced by crossroads_total.o.
>ld: ERROR 33: Unresolved text symbol "calling_crossroads" -- 1st 
>referenced by main.o.
>ld: INFO 60: Output file removed because of error.

Looks like libstc++, doesn't it ?

>\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
>\*   	                                               	\*
>\*      Tao Peng                                        \*
>\*                                                      \* 
>\*      Molecular Design Laboratory                     \*
>\*      Institute of Physical Chemistry	                \*
>\*      Peking University                               \*
>\*      Beijing, 100871	                                \*
>\*      P.R.China                                       \*
>\*                                                      \*
>\*      E-mail:[email-masked]                 \*
>\*      Lab Phone: 86-10-62756833                       \*
>\*      Fax Number:86-10-62751725                       \*
>\*      http://www.ipc.pku.edu.cn/~taop/                \*
>\*      Address:Peking University Building 46 Room 2122 \*
>\*      Dormitory Phone: 86-10-62761206                 \*
>\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

That's way to much of a signature - see netiquette.
(Sorry, I am on a modem line right now.)

-- Jochen
        Heinrich-Heine-Universität, Institut für Physikalische Chemie I
        Universitätsstr. 1, Geb. 26.43.02.29, 40225 Düsseldorf, Germany
phone 02118113681 fax 02118115195  --  www-public.rz.uni-duesseldorf.de/~jochen
[email-masked] -- [email-masked] -- [email-masked]