You are not logged in.
Pages: 1
Hey all, I'm trying to make a very simple program which uses a very simple dynamic library. It's all just a basic hello world program. I've done this with CMake and it works beautifully. However, I want to switch to scons and I have a problem. When I build my dynamic library in scons, my program complains that it can't find the dynamic library. (However, it works if I copy the shared object file to /usr/lib, but I want it to work in my current directory.)
Here's the code: http://www.mediafire.com/?m2m0ez4mmmx
If someone could please help me solve my problem, I would greatly appreciate it. Thanks!
Here's my SConstruct file:
env = Environment()
#HelloLib
#env.Library("HelloLib", ["HelloLib.cpp"])
env.SharedLibrary("HelloLib", ["HelloLib.cpp"])
#Program
env.Program("HelloWorld", ["HelloWorld.cpp"], LIBS = ["HelloLib"], LIBPATH = ".")
Note that when I have the same project compile with CMake, it all works out fine. It's just scons thats giving me trouble for some reason.
Last edited by solarwind (2008-05-03 04:16:40)
Offline
Pages: 1