[Geany-devel] undefined reference to `main' when trying to generate plugin.so file

Lex Trotman elextr at xxxxx
Sat Nov 27 09:54:27 UTC 2010


On 27 November 2010 16:35, shan chak <shankholove at gmail.com> wrote:
> Hi,
> I started reading the introduction page on plugin development:
>
> http://www.geany.org/manual/reference/howto.html
>
> I copy pasted the program and fired a shell to compile it , this is what I
> got:
>
> shankhs at shankhs:~/geany/shankhs$ gcc -c plugin.c -fPIC `pkg-config --cflags
> geany`
>
> 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??

Cheers
Lex

> `pkg-config --libs geany`
> /usr/lib/gcc/i686-linux-gnu/4.4.5/../../../../lib/crt1.o: In function
> `_start':
> (.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
> shankhs
>
>
>
> _______________________________________________
> Geany-devel mailing list
> Geany-devel at uvena.de
> http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
>
>



More information about the Devel mailing list