Andruk Tatum
December 14th, 2008, 01:54 PM
I recently came across Code::Blocks, and I am attempting to transition to using it instead of my own custom makefile for a project of mine. The project is a shared library, and I have a test executable to test out all of the functions in the library.
When I was just using my makefile, I would make the project and then run the project with
LD_LIBRARY_PATH=.. ./test
I have used the EnvVar plugin to setup LD_LIBRARY_PATH:
LD_LIBRARY_PATH = $(LD_LIBRARY_PATH):../<project>:./bin/Debug
As it stands now, I can compile the library perfectly in C::B, but I cannot run or debug the library. I attempted to set the host application to ./test, but when I use C::B to "Run", I get
Executing: test (in /home/<me>/<project>/.)
Process terminated with status 1 (0 minutes, 0 seconds)
If anybody has any insight as to how to get C::B to run my test executable and load my library for it, I would be very grateful.
Thanks in advance.
When I was just using my makefile, I would make the project and then run the project with
LD_LIBRARY_PATH=.. ./test
I have used the EnvVar plugin to setup LD_LIBRARY_PATH:
LD_LIBRARY_PATH = $(LD_LIBRARY_PATH):../<project>:./bin/Debug
As it stands now, I can compile the library perfectly in C::B, but I cannot run or debug the library. I attempted to set the host application to ./test, but when I use C::B to "Run", I get
Executing: test (in /home/<me>/<project>/.)
Process terminated with status 1 (0 minutes, 0 seconds)
If anybody has any insight as to how to get C::B to run my test executable and load my library for it, I would be very grateful.
Thanks in advance.