Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

compilers

Name: Anonymous 2010-05-31 9:36

My compiler is shit(like most). It strangely is unable to compile .h files and the linker doesnt like libc.

What compiler would /prog/ suggest.

Name: Anonymous 2010-06-01 7:34

OP here

>>25
I dont get any messages.

It goes like this:
1. I compile a programm gcc input.c -o output.
2. I get an output file.
3. I chmod u+x output
4. I type output into terminal and get file not found error, even when trying this with thunar same shit.

Objdump does not work either

Now i found out it was the linker because i have a few ASM programs, that i link manualy and everytime i ld input -o output -lc or even include /lib/libc.so in the input of the linker i get a file without any errors or warnings but the same thing as above (cant exec).
When i do this without -lc, it works perfect.

And what the fuck is gch? Maybe i really am a shit stain and should use an easier language, but arent .h files the same thing as .c just differently marked for the user?

Well maybe i really am not that good at C as i thought, i think i understand C well and never had any big troubles with it, please enlighten me if this should be the case.

I also want to apoligize for shitposting on /prog/, i have a quite stressfull day behind me and am really sorry if my posts are below dogshit quality.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List