New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot compile with shared object #837
Comments
How are you running the debugger "through geany" ? |
Hi elextr, |
This is not a GDB command, but a GCC one, building a file named test.c, adding debugging info and linking Running under GDB would look like $ gdb a.out
...
(gdb) run
... BTW, note that Geany doesn't have any builtin debugger, but three plugins: debugger, scope and geanygdb, so it's unlikely to be a Geany issue. |
I probably stepped ahead too much. |
How are you starting Geany? If its not in the same environment as the terminal you successfully use gdb under then the loader search path for the shared object might not be the same. This often happens when starting Geany from system menus since they are not a terminal environment. |
I am starting it through the terminal: |
Which debugger plugin? Is the one called "Debugger"? You might try the "Scope" plugin as it has had more maintenance recently. |
Hi codebrainz. |
@mbmxush nowhere have you said what system you are running on and what version of geany you are using |
Sorry, i am new to bug reporting :) |
@mbmxush it could be as @elextr eluded to, that your library search paths are different. You could try to run Geany like this: |
This doesn't look like a Geany bug so I suggest closing. |
My LD_LIBRARY_PATH is set correctly, as I manage to compile and link with shared object successfully. Something is going amiss whilst trying to debug such a file from geany Debugger... |
The debugger you mention is an external plugin, perhaps there is a bug. You could check in the integrated terminal if LD_LIBRARY_PATH is set. |
Alright, i'll try to do that. |
Or compile your program with RUNPATH set. On 23 December 2015 at 05:15, Thomas Martitz notifications@github.com
|
Not a bug (?) |
Would appear to be plugin related, not Geany anyway. |
Hi all,
I created a share object (.so) - libds.so.
I am trying, successfully to debug it through gdb:
gcc -g test.c -lds
However, when i am trying to debug through geany, i get an error immediately:
program existed with error 127
just to mention - everything else is working just fine (compiling with static library, makefiles etc).
The text was updated successfully, but these errors were encountered: