Jay Maynard (jmaynard) wrote,
Jay Maynard
jmaynard

  • Mood:
  • Music:

Shot myself in the ass this time

I've got two programming projects going at the moment. One, for money, is a GUI editor for a configuration file. The other, for fun, is a set of utilities to process virtual tapes (files on disk that represent, as closely as possible, the contents of a physical tape).

This morning, I whipped up a makefile (a file that allows automatically building software from sources with one command). I wanted to test it. I blew away all of the intermediate object code, and the final test program, then typed "make". I got an error message that said it didn't know how to make the source file.

A bit of head-scratching later, I came to a horrible realization: instead of typing rm *.o, I'd typed rm *.c. ARGH!!!!

It was only about 600 lines of code, but it was nicely commented and debugged. It'll take me a few more evenings to rewrite it all. Damn, what a disappointment.
Subscribe

  • Someone should print this poster

    In case you can't read it, it says: VINDICATION: When the loudest critic of your policies achieves his greatest success because of them. (hat…

  • Took him long enough...

    So, President Obama finally released his birth certificate. Now we can put the matter to rest. Personally, I've always thought that whether he was…

  • Fun fact for the day

    1337% of pi is 42.

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments