User forums > Help
Getting started with Code::Block
oBFusCATed:
Install developers packages for famin, gamin or whatever clone/implementation you have in your distro.
phamtv:
I have already installed gamin. Prior to doing so, the error I was getting was "fam.h" file/directory was not found. Thus I ran sudo apt-get installed libgamin-dev and verified that /usr/include/fam.h was installed. It seems like codeblock's source included fam.h file but for some reason cannot find the extern functions declared in fam.h (FAMOpen, FAMClose, etc...) Please advise.
oBFusCATed:
You have to check the build log to see what library is used for linking and then check if this library provides the needed symbols. See the manual for nm or objdump.
phamtv:
I ran nm on the file "directorymonitor.o" and got the following output:
--- Code: ---0000000000000000 V DW.ref.__gxx_personality_v0
U FAMCancelMonitor
U FAMClose
U FAMMonitorDirectory
U FAMNextEvent
U FAMOpen
U FAMPending
U _GLOBAL_OFFSET_TABLE_
....
--- End code ---
If I am not wrong, I think the "U" means that the symbol is undefined which is why I am receiving the "undefined reference" messages???
Am I missing something in order to get code::block source to compile successfully?
Best regards.
stahta01:
--- Quote from: oBFusCATed on July 08, 2014, 08:42:36 pm ---You have to check the build log to see what library is used for linking and then check if this library provides the needed symbols. See the manual for nm or objdump.
--- End quote ---
What libraries are being linked in the "Build Log"?
Tim S.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version