[Geany-devel] undefined reference to `main' when trying to generate plugin.so file
elextr at xxxxx
Sat Nov 27 09:54:27 UTC 2010
On 27 November 2010 16:35, shan chak <shankholove at gmail.com> wrote:
> I started reading the introduction page on plugin development:
> I copy pasted the program and fired a shell to compile it , this is what I
> shankhs at shankhs:~/geany/shankhs$ gcc -c plugin.c -fPIC `pkg-config --cflags
> shankhs at shankhs:~/geany/shankhs$ gcc plugin.o -o plugin.so-shared
I assume you actually have a space between the plugin.so and -shared
in the line above??
> `pkg-config --libs geany`
> /usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/crt1.o: In function
> (.text+0x18): undefined reference to `main'
> collect2: ld returned 1 exit status
> The last error was a show stopper , I wasn't able to go forward :( .
> I am not great with pkg-config, so can anybody please help me in finding a
> solution to this problem?
> Where is geany's lib folder exactly installed? and where should I put my
> plugin to let geany know?
> Thank you
> Geany-devel mailing list
> Geany-devel at uvena.de
More information about the Devel