Changing Compilers

September 16th, 2006 in Coding - No Comments

I updated my archaic DevC++ installation today — and holy of holies, I couldn’t compile something I was working on. I decided to try out a “Hello World” program, but I still couldn’t compile. I was beginning to think the problem was from several installations I made recently so I uninstalled them — the errors thrown only changed.

I shutdown XP and booted to Vista, installing the DevC++ compiler again, and facing the same errors. Some simple research on the net told me I wasn’t the only one having DevC+ woes. Thanks to Google, I discovered Codeblocks but the MingW/GCC compiler still threw a lot of nonsense errors. I’m currently using the Digital Mars compiler and it works well.

I know I could use it with DevC++, but talk of falling in love with an IDE — Codeblocks rules for now.

SQLite

September 12th, 2006 in Coding - No Comments

I was just going over something today ans came across SQLite. Nope — it’s not that I just discovered it — I mean, I initially planned to start using it way back since last year, but I obviously needed a book to remind me that it existed.

I’m working on a lightweight database abstraction layer [now you’d ask me ‘what for?’] for Authware, and I think I’m going to use SQLite for my local installation — at least just to get a feel of things. Currently, I’m working with PostgreSQL and MySQL without any incidents. PHP5 rocks — I can’t imagine how much code I had to write when PHP 4 was still the ‘in thing.’

Anyway, things are looking good. I see a dangerous, sharp curve ahead but I’ll deal with that when I get to it.

Back to SQLite. I haven’t tested its performance yet, but I’m still wondering if the single-file databases won’t be a problem — we writers sure can come up with a lot of junk when we choose to. Face it, I hate writing functions in MySQL — but I’m already in love with sqlite_create_function() and sqlite_create_aggregate()… even without having ever used them :D.