ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
thanks, any kool hello-world type of hax i can play around with incorporating this file ?
mhm
cool would be like... displaying it at boot in a framebuffer ala plymouth style
it's not hard, but not really basic (alignment, shared memory, hacking boot and such)
simple, idk
export it in ppm
display it using SDL
display it in SDL then draw something on it, or invert the colors or idk
calculate avg brightness per color
some basic filtering shouldn't be that hard either, but... thats a little in space-time wibbly woobly
I'd use something like FLTK, Qt, or GTK to make a rudimentary Hello World frame/window under your X Window environment and then place that image into the window.
Doing it directly to the frame buffer is sometimes a problem. It depends on your hardware as well as support from whatever distribution you're running.
hi,
[schneidz@hyper gimp-c]$ gcc schneidz.c
/usr/lib/gcc/x86_64-redhat-linux/4.6.3/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
is there anything useful i can do with this c program (doesnt seem to compile) ?
thanks,
It compiles alright, the error that you get is from the linker, because you have no main() function.
Try to compile with the -c flag, which tells gcc to only compile but not to link.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.