[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Storing Lua code in a C library
- From: Emeka <emekamicro@...>
- Date: Tue, 29 May 2012 20:43:41 +0200
On Sat, May 26, 2012 at 9:11 AM, Sean Conner <firstname.lastname@example.org>
It was thus said that the Great Emeka once stated:
> Hello All, You might want to try the following command line:
> Could someone help me make out why I can't compile the foo.c spitted out by
> Steven lua2c app?
> rmicro@ubuntu:~/lua_world$ gcc -O2 -Wall -I/usr/include/lua5.1 -fPIC foo.c
% gcc -O2 -Wall -I/usr/include/lua5.1 -shared -fpic -o foo.so foo.c
If the compiler complains about -fpic, only then use -fPIC.
Satajanus Nig. Ltd