User forums > Using Code::Blocks
Where can I get/find the source files for the various C libraries?
Napoleon:
[Ubuntu 13.10]
When I'm debugging my C (and C++) programs, occasionally I would like to see the library source code, but C::B tells me it can't find the file.
Is this a setup thing? Do I need to install a package or download them? Or are they located somewhere on my system. I have installed sudo apt-get install manpages-posix-dev.
I'm particularly interested in libpthread (eg pthread_cond_init.c).
Cheers,
Nap
stahta01:
--- Quote from: Napoleon on May 04, 2014, 07:43:07 pm ---[Ubuntu 13.10]
When I'm debugging my C (and C++) programs, occasionally I would like to see the library source code, but C::B tells me it can't find the file.
Is this a setup thing? Do I need to install a package or download them? Or are they located somewhere on my system. I have installed sudo apt-get install manpages-posix-dev.
I'm particularly interested in libpthread (eg pthread_cond_init.c).
Cheers,
Nap
--- End quote ---
This is NOT a CB Question!
Likely OS, Compiler, or Library question none of which really are valid on this site.
Please re-read the rule! http://forums.codeblocks.org/index.php/topic,9996.0.html
Tim S
Napoleon:
Obviously it's not a setting in C:B.
digifuzzy:
--- Quote from: Napoleon on May 05, 2014, 05:37:00 am ---Obviously it's not a setting in C:B.
--- End quote ---
Sorry, mate.
If I put the mouse over the file name in the include statement then right click, the first option in the context menu is "open #inlcude file: filename".
If that doesn't open the file...yup...you have a setup issue. ( Build-essentials, gtk...host of others...haven't used ubuntu in ages).
Ubuntu forums might help you with your setup.
Napoleon:
To be honest, I'm not really impressed with stahta01's answer.
I might be off topic, but its still a value question. I've searched elsewhere and haven't found my answer yet. In fact, I think I might have installed an improper version, but as yet I'm not sure.
Navigation
[0] Message Index
[#] Next page
Go to full version