From: <TSc...@ca...> - 2003-08-22 02:43:03
|
Hello Grzegorz, Hello Unmesh, thanks for your answer, the LD_LIBRARY_PATH is set to ".", and the directory i started occ is t= he directory where VerboseClass-init.so is in. //file makeit #!/bin/bash echo .. occ -I"../src" -I"../gc" -m VerboseClass.mc -- -L"../tmplib" -locc occ -- -o person person.cc $ ./makeit .. Making Example In file included from ../src/types.h:142, from ../src/mop.h:20, from VerboseClass.mc:38: ../gc/gc_cpp.h:132:1: warning: "_cdecl" redefined VerboseClass.mc:1:1: warning: this is the location of the previous definition MOP warning: The hash table is full. Expanded... cc1plus: warning: -fPIC ignored for target (all code is position independent) cc1plus: warning: -fPIC ignored for target (all code is position independent) lt_dlopen(VerboseClass-init.so) failed: no symbols defined =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D When i use as suggeste by unmesh, occ -I"../src" -I"../gc" VerboseClass.mc -- -L"../tmplib" -locc -o ./verbose.exe occ -I../src -I../gc VerboseClass.mc -- -L../tmplib -locc -- -o ./verbose.exe ./verbose.exe ./Person.cc -- -- -o ./person.exe i can build the sample, but the library is not a .so plugin into the compiler. I'd like to use the above way described in the Tutorial and in the Reference (building a so) , but it does not work, because of lt_dlopen(VerboseClass-init.so) failed. Mit freundlichen Gr=FC=DFen With best regards Tobias Schmitt-Lechner -----------------------------------------------------------------------= -------------------------- Dipl.Inf. Tobias Schmitt-Lechner Basis-Entwicklung Tel: +49-621 33075 ( 0 ) Direktwahl ( 139) Fax: +49-621 33075 200 e-mail: mailto:'tschmitt'@capeware.com Internet: http://www.capeware.com CapeWare Software GmbH, Am Exerzierplatz 9, D-68167 Mannheim = = Grzegorz = = Jakacki An: <TSc...@ca...= > = <jakacki@hed. Kopie: = = com.cn> Thema: Re: Antwort: Re: [Open= cxx-users] Error building Person.exe = = = 21.08.2003 = = 02:24 = = = = = = On Wed, 20 Aug 2003 TSc...@ca... wrote: > > Hello Grzegorz, > > > Ok i've not got occ compiled and the test work (newest cygwin and lat= est > cvs content) > but i've got a problem building the example: > I get a error > > t_dlopen(VerboseClass-init.so) failed: no symbols defined Is LD_LIBRARY_PATH exported and does it include the directory where VerboseClass-init.so is? Best regards Grzegorz PS: Feel free to direct such messages to opencxx-users at lists.sourceforge.net > $../src/occ -m -I../gc -I../src -- -g VerboseClass.mc -L../tmplib -l= occ > n file included from ../src/types.h:142, > from ../src/mop.h:20, > from VerboseClass.mc:38: > ./gc/gc_cpp.h:132:1: warning: "_cdecl" redefined > erboseClass.mc:1:1: warning: this is the location of the previous > definition > OP warning: The hash table is full. Expanded... > c1plus: warning: -fPIC ignored for target (all code is position > independent) > c1plus: warning: -fPIC ignored for target (all code is position > independent) > > > Schmitt@pc-dev13 /cygdrive/c/download/opencxx20030820/sample > > $ ../src/occ -- -g person person.cc -L../tmplib -locc > t_dlopen(VerboseClass-init.so) failed: no symbols defined > ################################################################## # Grzegorz Jakacki Huada Electronic Design # # Senior Engineer, CAD Dept. 1 Gaojiayuan, Chaoyang # # tel. +86-10-64365577 x2074 Beijing 100015, China # # Copyright (C) 2002 Grzegorz Jakacki, HED. All Rights Reserved. # ################################################################## = |