User forums > Using Code::Blocks

Executable running while it should not (Nightly - Windows)

<< < (3/3)

mandrav:

--- Quote from: jeancf on July 07, 2007, 02:49:25 pm ---I am confusing indeed. After a week of going back and forth between windows and Linux I start mixing things up :?

In short:

* Under windowsC::B behaves as you describe.
* Under Linux, my project is set up as a GUI Application type, the wxGTK libraries are linked through invocation of wx-config and the wxsqlite3 library is linked through $(WXSQLITE3_DIR)/lib in the linker search paths. The app compiles fine but when launched from C::B it does not run and exits with status -1. If I add the path where my library resides to LD_LIBRARY_PATH then the app runs fine.
I  hope this clarifies the situation.

/~jc

--- End quote ---

I can't reproduce this and I think my project uses variables in linker paths too. Anyway, have you tried replacing the $(WXSQLITE_DIR) variable with its real value? Maybe this can give me a hint where to look.

jeancf:
I followed your suggestion and replaced the variable by the real path. It worked and the app ran. Then I went back to the path based on the variable and... it worked as well :?

Everything seems to be behaving as expected now. I am sorry for wasting your time on this.

Many thanks,

/~jc

Navigation

[0] Message Index

[*] Previous page

Go to full version