Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 8 years ago.
Improve this question
I'm having trouble with conio.h, I use Eclipse Standard but when I try to use clrscr, textcolor, textbackground, they all remain unresolved please advise me on alternatives or how I can get these to work. Thx.
conio.h is DOS (or turbo-c) specific extension. It defines functions available in in that environment. Don't think its available in standard VC++ or gcc libraries now.
Make sure the .lib are available on the path.
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed last year.
Improve this question
I'm a beginner in coding and I was practicing coding. I wanted to know that is it necessary to use conio.h in C Programming. Because I was able to run my program without using conio.h.
Is necessary to use conio.h in c?
If you don't use any declaration from a header, then you don't need to include it. There's nothing in the conio.h header that must be used to write a C program in general.
In fact, conio.h is a non-standard platform specific header on an ancient and obsolete operating system and shouldn't be used at all if your goal is to write modern cross platform programs - which is a reasonable goal to have.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I am trying to compile c code in c++ and I get this error!
Illegal character(0x1)، Why this error occurred?
May be you have copied the code from the Internet!
Try typing it.
It will improve your coding ability.
Probably there really is a funny character in your file, maybe one your editor doesn't render.
Try using a hex dump program to see each byte of the file rather than an editor. You may find that there's more characters than you realize in your file.
When I started to learn C ( with an old borland in the late 90s ) I wish somebody would have told me this advice: don't use Borland. Use linux and gcc and you'll have a much better time. Now this might not be true of everyone, but it does support windows binaries too and sure would have felt better to me when I was just trying to learn ANSI C.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
I'm trying to compilate a C program(Appendix C of this pdf) using libxml2 in Eclipse.
Looks like the program recognize the library but not the functions of the headers(i.e. recognize < xmlstring.h > but not the function xmlStrcmp)
This is a screenshot of my eclipse plattform: http://goo.gl/kOdvZB
(This is my first post so I dont have reputation to post images, sorry u.u):
What could be the problem here?
What am I doing wrong?
I don't know what to do.
Thanks
Did you remember to link against the library? The "undefined reference" error is a linker error which means that the symbol you requested doesn't exist.
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 7 years ago.
Improve this question
There are several C libraries available for parsing JSON, that will compile on Linux. Which library would you recommend?
Just to close the loop:
For the project in question, we ended up going with cJSON. We chose this one from the list of C libraries linked from json.org. Per the homepage, cJSON is:
An ultra-lightweight, portable, single-file, simple-as-can-be ANSI-C compliant JSON parser, under MIT license.
This happened to be a good fit for the particular project at hand, and the library worked out fine.
I've seen YAJL used with MGTwitterEngine (Mac/Cocoa), so I assume it is ok.
I haven't done much with it apart from compiling it and pointing MGTwitterEngine on Mac to its library/header files.
Check out the list at json.org. There are several C libraries for JSON.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 7 years ago.
Improve this question
What ways are there to protect licensing enforcement mechanisms in C/C++?
I know of:
Using macros (but that make the code difficult to maintain)
Linking statically
Obfuscating symbol names
Other methods I am not sure about:
Using C++ templates
Using inline functions
It's usually a good idea to keep your code as clean as possible and rely on a third party tool to protect your code.
google for "c++ obfuscator" to find such tools.