Comment by direwolf20

19 days ago

How did your equivalent assembly program without a definition of _main to?

You're doing that thing. I think it's called "trolling". It goes like "hurr durr, they said take one, but they wouldn't let me take one plate" or "hurr durr, I filled my gas tank with nitrogen, which is a gas, but my car doesn't go" or "hurr durr, they said C++ features are all optional, but I don't want to use letters, how can I write C++ without using letters?"

At least when that guy asked Stack Overflow how to make gcc compile his .png, it was actually funny.

> your equivalent assembly program

Right now,

    hlt
    jmp $0

I intend to add more later, of course, but I until I get past this hurdle I am unable to start. Does that help narrow things down for you?

  • It doesn't link. Something about undefined symbol _main. Can you help?

    • It doesn't need to link. That is the complete program. Are you suggesting I need to pass a flag to the C++ compiler to disable the linker? How do I do that?

      4 replies →

> that guy asked Stack Overflow how to make gcc compile his .png

Do you have a link to this? All the search results I'm getting are related to libpng.

  • I can't find it with a more specific search on SO, maybe it was deleted.

    The question was like: I wrote "hello world" but I get some compile errors, followed by an image embed of a handwritten hello world program, followed by a compiler command where the input file had a .png extension and an error related to the compiler not being able to read PNG files, followed by quoting the part of the standard where it says the input file shall be readable text and this is obviously readable text because I can read it.