From: Grzegorz J. <ja...@he...> - 2003-07-18 00:09:44
|
On Mon, 14 Jul 2003, Chris Cheung wrote: > Hi, > > On Fri, 11 Jul 2003, Carsten Pfeiffer wrote: > > > > please try the current CVS version, the problem should be fixed there (and it > > should be at least as stable as that snapshot). > > > > Thanks a lot. > I tried the current CVS version (from > cvs.sourceforge.net:/cvsroot/opencxx/opencxx) and my last problem did not > appear. However, > > > 1) If I follow the tutorial to use the dynamic-linking in the OpenC++ > compiler, > > [sample]$ ../src/occ -I../src -I../gc -- -g -o person person.cc > lt_dlopen(VerboseClass.so) failed: > /.../opencxx/sample/VerboseClass.so: > undefined symbol: _ZTIN7Opencxx5ClassE > [cheungcc@orchid sample]$ c++filt _ZTIN7Opencxx5ClassE > typeinfo for Opencxx::Class > > The symbol "typeinfo for Opencxx::Class" seems missing. > If I use static linking with src/.lib/libocc.a, then there is no problem. I have no idea what it is. Please check with 'nm -C' if the symbol really is not there? > > > 2) If I try using another compiler like Intel compiler icc > > [opencxx-icc]$ export CC=icc > [opencxx-icc]$ export CXX=icc > [opencxx-icc]$ export CXXFLAGS=-w1 > [opencxx-icc]$ export CFLAGS=-w1 > [opencxx-icc]$ cd .. > [opencxx-icc]$ ./configure > > It seems that the make system hardcoded using gcc and g++ in compiling > some source files. Yes, compiler is hardcoded in driver2.cc . We have long standing plan to move this functionality out of occ and put it into wrapper script. This is not difficult, perhaps you could contribute a bit of your time and do it (it is solution to your problem anyways)? I can help with details. > Moreover, icc encounter compilation error like > > buffer.cc(455): error: no instance of overloaded "operator new[]" matches > the argument list > argument types are: (unsigned int, GCPlacement) > buf = new (GC) char[BufSize]; > > Is there any solution or workaround? Strange --- the operator is defined in types.h:134, make sure your compiler sees the definition. The quick hack is to compile without GC (define DONT_GC preproc symbol). Hope this helps Grzegorz > > Thank you very much. > > -- > Best Regards, > > Chris Cheung > Center for Large-Scale Computation > > Have a nice day! > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Parasoft > Error proof Web apps, automate testing & more. > Download & eval WebKing and get a free book. > www.parasoft.com/bulletproofapps1 > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users > > ################################################################## # 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. # ################################################################## |