From: harsh g. <mer...@li...> - 2011-05-22 10:49:49
|
I noticed that ubuntu has a package for clang that functions perfectly. By reading the documentation , i deduce that it is possible to get a Ptree of a express specified as a string. however i ran into a bit of a problem. While occ works fine if i call it via the command line , but when i include the headers , it gives me a segmentation fault. My code is : #include<iostream>#include<openc++/parser/PtreeArray.h> int main(){ std::cout<<"i am here"<<std::endl; Opencxx::PtreeArray a;} and the command i used to compile it is:g++ -g parse.cpp -shared /usr/lib/libocc.so however the line i am here is not printed. and the seg fault occurs before that. The stack trace is : (gdb) rStarting program: /home/kartikeya/temp/a.out Program received signal SIGSEGV, Segmentation fault.0x00000001 in ?? ()(gdb) bt#0 0x00000001 in ?? () Please point out the mistake. Thanks in advance, Harsh Gupta > Date: Sat, 21 May 2011 07:17:52 -0400 > From: se...@sy... > To: ope...@li... > Subject: Re: [Opencxx-users] compiling on linux. > > On 2011-05-21 06:28, harsh gupta wrote: > > I needed to use the openc++ parser for an application that i was > > developing. The platform for use is Ubuntu Linux 10.04. Basically what > > i need is a c++ parser and openc++ seemed to be a worthy candidate. > > The OpenC++ parser has some sever limitations, which have become quite > apparent as changes and improvements have been applied to libstdc++, > making the two incompatible. > > At this point I would suggest trying out CLang (http://clang.llvm.org/) > as a C++ parser, as it has matured quite a bit over the last year. I'm > pretty sure there are packages for clang and llvm available for Ubuntu. > > Good luck ! > > Stefan > > > -- > > ...ich hab' noch einen Koffer in Berlin... > > > ------------------------------------------------------------------------------ > What Every C/C++ and Fortran developer Should Know! > Read this article and learn how Intel has extended the reach of its > next-generation tools to help Windows* and Linux* C/C++ and Fortran > developers boost performance applications - including clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > Opencxx-users mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opencxx-users |