| NaNoWriMo Days 5 14 Posted by: WingedPanther in Object Oriented Programming, GUI, Cpp on Aug 14, 2008 |
Not much to say, since I've been reading function definitions, etc. Pretty boring stuff. Getting anything to Link, however, has been an adventure.
GCC has a few interesting "quirks": first, it doesn't automatically locate compiled objects in the search path. Second, it doesn't automatically handle linking of dependent object files in the correct order. The result is that you end up with hideously long link commands, and if you get your compiled units in the wrong order, you're screwed. This is particularly nasty with libraries where you may not realize the order is important/wrong, you just get odd error messages from the linker.
Finally, I got all that straightened out, and this morning I recreated a project in Code::Blocks (the author's CD is in wxDialog or DialogBlocks or some such) and got a sample to compile to an executable! Now all I have to do is get GTK+ or X11 to detect on my EEE PC and I'll be all set (I've been developing on my Windows box).
GCC has a few interesting "quirks": first, it doesn't automatically locate compiled objects in the search path. Second, it doesn't automatically handle linking of dependent object files in the correct order. The result is that you end up with hideously long link commands, and if you get your compiled units in the wrong order, you're screwed. This is particularly nasty with libraries where you may not realize the order is important/wrong, you just get odd error messages from the linker.
Finally, I got all that straightened out, and this morning I recreated a project in Code::Blocks (the author's CD is in wxDialog or DialogBlocks or some such) and got a sample to compile to an executable! Now all I have to do is get GTK+ or X11 to detect on my EEE PC and I'll be all set (I've been developing on my Windows box).