Where can C debugger tutorials be found? [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Is there any tutorial about using debuggers, when doing C programming on Linux (console mode)?

GDB tutorial.

if you want a GUI then try Nemiver it's very nice GUI for GDB
oops !!! sorry i didn't see you have mentioned console mode.
Anyway try GDB.
from console type:
info gdb
will give you more about gdb

Do you have a particular debugger in mind, or are you just looking for a general introduction to debuggers?
For Linux debugging, Checkers is almost certainly right, you will be using GDB, and that is a good tutorial (but dont let it stop you from googling ;-) http://www.google.com.sg/search?hl=en&source=hp&q=gdb+tutorial
I don't know how you are developing your code, but I would highly recommend using the Eclipse IDE *use CDT plugin, since you are developing C) - http://www.eclipse.org/cdt/
Eclipse is an excellent free IDE and is practically a de facto standard among professionals. You can edit your code and also step through through it in the debugger Eclipse, but Eclipse also supports many, many other plugins which will be of great use to you:
DoxyGen for documenting your code, Splint for static code analysis, catching problems which the compiler does not, CppUnit for automated testing, BugZilla (etc) for problem reporting, CVS, Subversion, etc, for version control ... you get the picture.
Since we are talking of debuggers, I admit that I can't yet get Eclipse to support DDD, and if you don't know why you want DDD, a picture is worth a thousand words .. http://www.gnu.org/software/ddd/all.png
See that lovely picture in the top pane? If you use pointers and linked structures, then DDD is indispensable, IMO.
Don't forget that arguably the best debugging is not done in the debugger, but in code review, static code analysis (http://www.splint.org/ http://sourceforge.net/apps/mediawiki/cppcheck/index.php?title=Main_Page), etc

Related

Are all Mac Programs built in Objective C? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I know this seems like a simply question, but I'm rather curious.
Are all Mac Programs built in Objective C? Throughout my whole college experience, we have constantly been building throw away programs, ones that we simply run on a linux based command line or in an IDE like Netbeans. To be honest, I'm seriously sick and tired of it. I'm interested in building something real and meaningful, something that perhaps has a GUI or whatnot. Something that would work on any Apple OSX. Can someone give me a push in the right direction, any sources?
Thanks
Not all, but the vast majority. There are also some written in Java (like Netbeans itself), some written in C++ with Qt (like Google Earth), and so on. ObjC is definitely the most common though, and the one the OS's APIs are designed for.
Nope, but most good apps have at least the UI written in Objective-C...
there is a lot of history, in the original OS (classic) everything was written and documented in Pascal, then it migrated with the same API's to C++, then when OSX came along it made the old API's into something called Carbon, the new stuff was cocoa, and there was also a 1:1 Java mapping for most of the objects... also the os x introduced all of the Unix goodness, which gave you things like GTK, qt, and other X11 stuff....
now apple has killed most of carbon and the java bridge (you still have native java, like swing)
so you really mostly have objective-C for the UI, for the model layer and guts you can use pretty much whatever you want.
I guess if you want to upload your app to the App Store it will have to be in Objective-C.

How to create a GUI-like text interface in C [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have seen a few programs that use simple GUI-like interfaces made out of text. A good example would be links (see screenshots below).
Are there any C libraries for creating this sort of thing out there? I would ideally like mouse support but that is not strictly necessary. Cross-platform is good but I really only need it for *nix-like systems (including mac). I don't have a great deal of experience with C but I know my way around it, coming from C++.
If libraries aren't available, how would one go about coding this kind of thing from scratch?
Screenshots of the kind of thing I want:
EDIT: Yes, I know about curses/ncurses, but does anyone know of any good tutorials to make this kind of program with it?
You could have a look at CDK--
project home page.
This is a set of widgets for Menus, pulldowns etc. wrapped around the basic ncurses library so your coding is at a much higher level and a lot of the intricacies and gotchas of ncurses are already dealt with.
Try ncurses - this is a library which with you may create such GUI environments under console.
The best tutorial I know for curses is Using C With Curses, Lex, and Yacc: Building a Window Shell for Unix System V, by Axel-Tobias Schreiner

What is a good embedded TLS library? (Cyassl vs Polarssl vs Matrixssl) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have looked around for good SSL/TLS libraries that support TLS 1.2
I also want to use this library on an embedded platform so it should be small, easy, secure and free. It should be a c/c++ library.
So far i have come across Cyassl, Polarssl Matrixssl a lot so i think that one of these should be a good choice (Openssl is way too big).
Now i would like to know why people use one over the other.
Thanks
Ok.. Just for starters they all do the same. All three can run on embedded platforms. The difference is where their focus is.
From my personal experience:
PolarSSL has loads of documentation, an understandable API, examples, and gives you the ability to actually delve into the code and understand what is happening. In my experience this is a great plus in case you need to debug a specific issue. They only provide Makefile / CMake / MSVC project files, so the task to include it in your embedded environment is yours.
Cyassl's code is harder to understand and tweak. But they have more pre-made Makefiles for specific development platforms. Depending on your environment this might weigh in (for me it rarely does). In a number of comparisons I did as a subcontractor, they are pricier than PolarSSL though.
Pick MatrixSSL if you don't have budget constraints ;) Definitely the priciest of all and I found no specific reasons to actually use it though in comparison to the alternatives..
With the whole NSA / PRISM thing around: If you want something specifically built in the US, then Cyassl is the best choice. If you want something non-US, PolarSSL is the only sane choice.
So if by free you mean: I'm going to use it in an Open Source project, then price does not matter. The verdict from the community: PolarSSL has good adoption in OpenVPN, Cyassl in MySQL.

Beginners' guide for setting up Emacs with gcc/gdb? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I looked around the GNU emacs material and didn't find anything helpful.
Does anyone know of a good tutorial for setting up emacs, to basically turn it into an IDE? I'm looking for interfacing with gcc/gdb/make, etc...
Like other answers mentioned, M-x compile, M-x gdb will get you going. While debugging, I'd also suggest gdb-many-windows-mode, which makes Emacs look a bit closer to IDE when debugging.
Besides that and to get closer to "IDE-like features", you can look at:
CEDET http://cedet.sourceforge.net/ for code completion and project support. Excellent tutorial at http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html .
If you don't mind using non-free software, Xrefactory (http://www.xref.sk/xrefactory/main.html) is probably the best (well, the only) refactoring tool. The C version is free, the C++ is not.
Yuval, you're probably being misled by looking for something about IDEs. All that stuff is automagically built into EMACS except for the CScope-like searching stuff.
M-x compile runs make by default, although I reset it to run Ant in java mode.
M-x gdb runs gdb
C-x ` (Ctrl-X backquote) goes to the next compile error
and so on.
Go dig about in the EMACS Wiki. Lots of good stuff. The Programming Category is where you should look.
Good Article
Look at CScope too... you just have to add two lines to your .emacs to be able to navigate through definitions and references
Even though not directly related to C/C++ i find that using a good color scheme is important. Try:
M-x color-theme-select
and you can browse around a lot of different setups if you do not want to create your own.
If you're working with version control system, you can find useful information in another my article about work with version control systems from emacs

open source text to speech library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Does any one know of a good text to speech library. It needs to be open source and provide C API?
PS: I've already done a search, but I'd like recommendations from people who have actually used these APIs
Festival is an open source text-to-speech system.
Stanford uses it for their Natural Language Processing class, and they have up-to-date instructions about installation on this cs224s homework page. Installation on Mac OS X requires a couple patches, which they've wrapped into a handy install script.
There are alternate voices you can use which sound noticeably better than the stock ones. You can find information on these voices in this forum post:
How to setup more realistic voices in Festival. Those instructions are for Ubuntu, but the voices work with any Festival installation.
you can go for Festival worked nice for me.
I have used flite in an embedded server. It has a small footprint and comes with a single voice
eSpeak is another lightweight TTS. More robotty than Festival.
Hey what about MARY?
It looks so awesome to me which one should we push further for open source enterprise computer or androids or whatever? We need to strenghten efforts by shifting all open source resources to the best/most promising we have so far.
Anyone experiences with MARY TTS? Or does it have a flaw (because noone mentioned it before)?
More links:
http://www.babelfish.org/tts-free.htm.
https://www.cereproc.com/en/support/live_demo
http://www.digitalfuturesoft.com/dfttssdk.php (also provides ARM version, like MARY + Festival)

Resources