Cygwin graphics? - c

I am currently using Netbeans with Cygwin on windows 7, and i'm looking to write a simple 2D game in C.
Most of the tutorials i've managed to find use the graphics.h supplied with Turbo C, does Cygwin have an alternative to this? Any info about how to get another header file installed, or links to tutorials would be greatly appreciated.
Cheers

SDL is a good library to use for basic game graphics. Note that Cygwin is not needed (unless you really need POSIX emulation) - Mingw will usually suffice.

Related

Library for Dialogs and Widgets in Win32 Console Application ( in C )

I've seen a lot of console apps (that run on windows) having some dialog boxes and widgets inside them. Say for example:
A there are a lot more. Now my question: Is there any library (in C) for creating dialogs and widgets in a Win32 Console App?
UPDATE: Seen pdcurses, but it lacks libraries from the real ncurses library like menu.h and form.h. So ss there any other that is easy to use?
Thanks a bunch! :)
you can use ncurses, please check the following question from stackoverflow.com:
Is ncurses available for windows?
there is also PDCurses that support Win32
you can also use the old library Turbo vision, I have never tested it on win32.
The cygwin suite should contain a complete port of ncurses.
if you ou can get hold of an old borland C/C++ (v3.1 if I remember correctly or 6.0, I guess the former version). It has a framework to get just the same that you showed in your picture.

ANSI C MultiPlatform Compiler and GUI

Hi guys I have an ANSI C university course.
I am looking for a compiler that will easily create
makefiles and .o files and binaries that would work on both windows and ubuntu.
all code i write must be multiplatform.
(Im a C#/C++ programmer, didn't touch C for over 10 years)
no need for any external library support except ones that are part of the spec.
I assume its C99 though might be C90
nice Dev Env GUI preferably same for both windows and ubuntu is needed as well
how to make sure I don't use none-standard libraries?
I think gcc is your best option. On Windows the best port is probably MinGW.
You edited your question to request an IDE too. Try Code::Blocks.
I will recommend Eclipse as the IDE. It has some issues on Windows, but it is great on Linux.
GCC/MinGW as compiler doesn't need much discussing.

Any way of running GTK libraries In Windows OS using C?

After a whole week of trying to get GTK working on Cygwin and MinGW using makefile, I've hit a stone cold wall. Does anyone please, anyone know how I can program using C and GTK libraries in widows operating system that WORKS? If there is can anyone give me step by step instructions please! The environment has to run the hello world program as an example: http://en.wikipedia.org/wiki/GTK%2B
Thanks in advance!
It's a bit tricky to configure GTK+ toolchain on Windows.
The easiest way is to use this GTK+ bundle. It provide easy to use and install GTK+ runtime environment. You will find there note how to extend this runtime for developing purposes.
According to GTK+'s mailing list version 2.16 is known to be the most stable, however maybe it's good idea to try newer one.
Moreover go to GTK+'s home page and read threads about GTK+ & Windows 7 on the gtk-app-devel mailing list.

How to program in C on Mac Leopard without XCode IDE?

I have just come to Mac world from Linux world and I love my way around in Mac environment. I want to write and practice simple C programs in mac and I was searching for the tools I require. Most (All) of the resources in the web ask me to use XCode as IDE to do programming in C on Mac. XCode, for my purpose seems to be an overkill. I am in no way interested in developing iPhone or Mac GUI application. All I want is
enter C programs using a text editor,
compile it ,
and get the output in a Console.
How can I do it ?
Thanks.
the 3 steps you give are simply the answer already:
use text editor of choice
use eg Terminal and compile on command line (simply using gcc, or cmake/make or so for more complex programs)
run program on console
Just use gcc.
Your could also use XCode to compile simple command line tools.
Start XCode
File -> New Project
Mac OS X -> Application -> Command Line tool
XCode has a really nice syntax highlighting and code completition and gdb integrated.
Follow on from PatrickS's answer - I didn't read the original question clearly, but personally - other than following a couple of ObjC tutorials - the only time I've used XCode is AS a C IDE.
The feedback on compile errors is neat (visually integrated into the IDE rather than having to match lines from the compiler output), and getting better (due to integration with the underlying clang project).

c graphics in linux

hi
can any one tell me how to make graphics program in c in Linux.
what header file i should use in gcc.I'm quite novice to Linux
thanx in advance
Googling for linux graphics library c gave this site with tons of libraries for all kinds of languages under all kinds of operating systems. HTH.
libSDL is one good library.
The Allegro library is pretty easy to use and covers a lot more than graphics.

Resources