Re: *** GMX Spamverdacht *** Re: Trouble running the hello world application

Robert Vasek <[email protected]> Fri, 14 Sep 2012 16:14:36 +0200
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <alpine.DEB.2.02.1209141610000.13516@tznaf-zntvpobk>
On Fri, 14 Sep 2012, Dennis Schridde wrote:

> Am Freitag, 14. September 2012, 15:37:26 schrieb Robert Vasek:
> > So I may be creating the shared library somehow wrong.
> > $ g++ hellobind.cpp -I/usr/include/lua5.1/ -c -fPIC
> > $ g++ -shared -Wl,-soname,libhellobind.so.0 -o \
> > libhellobind.so.0.0 hellobind.o
> You need to link you SO with luabind, so the dynamic loader knows it has to 
> load that library in addition.
> 
> Add -lluabind to the end of the commandline.
> 
> --Dennis

omg I'm such a retard...I kept linking the luabind lib when calling g++ 
with -c option instead of linking it when creating the .so. It works 
now! Thank you all, I really appreciate it.

------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html