Re: dynamic plugin in c++

2013-08-28 Thread avantikagupta
thanks, adding return statement solves the problem. On 2013-08-28 15:32, Jakub Jelinek wrote: On Wed, Aug 28, 2013 at 01:35:45PM +0530, avantikagupta wrote: i am writing a dynamic plugin, First start with compiling the plugin with warnings, I bet the compiler would tell you: static unsigned

Re: dynamic plugin in c++

2013-08-28 Thread Jakub Jelinek
On Wed, Aug 28, 2013 at 01:35:45PM +0530, avantikagupta wrote: > i am writing a dynamic plugin, First start with compiling the plugin with warnings, I bet the compiler would tell you: static unsigned int

Re: dynamic plugin in c++

2013-08-28 Thread Richard Biener
On Wed, Aug 28, 2013 at 10:05 AM, avantikagupta wrote: > > > hi, > > i am writing a dynamic plugin, > > > however, sometimes it run succesfully and sometimes it give following error: > > /home/avantika/Downloads/gcc/gccpackage/install/bin/g++ -o result -flto > -fplugin=./plugin.so test1.o -O3 -fdu

dynamic plugin in c++

2013-08-28 Thread avantikagupta
hi, i am writing a dynamic plugin, however, sometimes it run succesfully and sometimes it give following error: /home/avantika/Downloads/gcc/gccpackage/install/bin/g++ -o result -flto -fplugin=./plugin.so test1.o -O3 -fdump-ipa-all In function ‘main’: lto1: internal compiler error: in re