Hi all !
I am quite new to Linux.
I have regularly a problem with symbols on this OS.
I have the following error message:
ERROR: /media/hda3/codeblocks/trunk/src/devel/share/codeblocks/plugins/ThreadSearch.so: not loaded (missing symbols?)
I had it for a while, I tested lots of things then, suddenly, it worked (even if I didn't understand why).
I worked two days and I am back with my symbols problem. I just added one line of code with event processing.
Lots of things are present on the forums and it seems that there are several parameters that may lead to this problem.
So, my question:
How do I have to proceed to avoid this :evil: error message ?
My command to run the plugin in C::B is
Executing: /media/hda3/codeblocks/trunk/src/devel/codeblocks --debug-log -ns --prefix=/media/hda3/codeblocks/trunk/src/devel (in /media/hda3/codeblocks/trunk/src/devel)
The plugin and its zip are at the right place (ThreadSearch.so or libThreadSearch.so and ThreadSearch.zip).
Debug info are present.
cbplugin.h has the right version
precompiled headers are up-to-date and have been regenerated
Thanks for any help/idea,
Dje
hi dje
did you run your CB from a script, which looks like this one ?
#!/bin/sh
APP_DIR=/home/tiwag/CodeBlocks/working
export LD_LIBRARY_PATH=$APP_DIR:$LD_LIBRARY_PATH
$APP_DIR/codeblocks $@
it sets the LD_LIBRARY_PATH environment variable so that the dynamic libs can be found
if you have a development version running you need to update the APP_DIR to point to your working version,
where the codeblocks executable is located.
or run your CB debuggee from your working CB, then the LD_LIBRARY_PATH will be set automatically,
when you run the CB debuggee.
very confusing, isn't it ? :P
i hope it's clear to you
brgds
tiwag
Hi !
Problem solved :D thanks to the tip of Ceniza !
On Linux, the missing symbol is displayed if logging is enabled.
To enable it, you just have to set it with wxLog::EnableLogging(true); in bool CodeBlocksApp::OnInit()
Index: /media/hda3/codeblocks/trunk/src/src/app.cpp
===================================================================
--- /media/hda3/codeblocks/trunk/src/src/app.cpp (révision 4466)
+++ /media/hda3/codeblocks/trunk/src/src/app.cpp (copie de travail)
@@ -428,7 +428,7 @@
bool CodeBlocksApp::OnInit()
{
- wxLog::EnableLogging(false);
+ wxLog::EnableLogging(true);
SetAppName(_T("codeblocks"));
s_Loading = true;
Dje