Sunday, January 07, 2007

Growing pains

yo. been quite a while, relatively. been trying to code and not being very successful at it. i don't know what happened to me. anyway, i was having problems with some stuff i was doing. compiled FOX, but since it didn't contain the code for some external libraries such as Zlib, i followed the instructions on the site and defined some macros to include them in the build. the library built fine, but the example programs gave me linker errors no end, complaining about multiply defined symbols. had to get rid of the entire library

something similar happened when i actually started working on a project using wxWidgets and IBPP. for some reason, IBPP doesn't support Unicode, or so it seems to me. i built the application (and wxWidgets) with Unicode support, and IBPP choked. the fix: build IBPP as a separate library. fortunately, even though the IBPP team recommends merely including the source into your own code, i built it (quite easily - just compile all_in_one.cpp), eliminating one problem. the other was fixed by including wxWidgets headers before IBPP's since they both declare a macro with the same identifier (_). the clincher came when i edited some code in my skeletal application, and got a wxWidgets linker error about not finding wxStringData::Free(). nowhere in the wxWidgets docs does this method exist, and not even in the library, it seems. pulling out all calls to IBPP didn't fix it - i had to plug the entire app.

i haven't coded in a long while, so maybe that it. and i don't even want to go into the problem of multiply defined symbols due to different runtime libraries. oh, i'm using Visual C++ 2005 Express Edition Service Pack 1. i really was about to give up. i kept thinking, it's the story of my life anyway. i'm not sure maybe it was due to lack of sleep, but i do feel better now, and i guess i'm ready to give it one more shot.

No comments: