How to make GAlib work with MFC?
You must tell GAlib to not use the streams library (by default it is configured to assume a command-line environment, including streams). To turn off streams, edit the configuration file gaconfig.h and define the NO_STREAMS macro. Or define the macro NO_STREAMS in your project settings. (It is safer to define the macro in the header file so that you do not forget to set it in subsequent projects that use the GAlib headers.) You may have to force VCPP to ignore the LIBCD library using the ignore libraries option in your project settings on the link properties panel.