-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Richard Guenther wrote: > Geometry.cpp: In member function 'const Magick::Geometry& > Magick::Geometry::operator=(const std::string&)': > Geometry.cpp:191: error: 'strcpy' was not declared in this scope > make[3]: *** [Geometry.lo] Error 1 > which hints at that you should include <cstring>, the C++ standard > include name of the C string.h header. The rule of thumb is to look > in which C header the missing function is in and then include the > C++ variant which has a 'c' prepended and the '.h' stripped off.
As a rule of thumb I would mainly advise to use #include <string.h>, if the file that contains the strcpy does not have the std:: namespace flattened. <cstring> puts the <string.h> functions into the std:: namespace and adding namespace flattening where upstream did not intend to put it might be broken, since some those flattenings work well with gcc, but are completely broken with MSVC++ or Sun Studio :-) BTW, for libwpg, libwpd, wpd2sxw and wpg2sxw, libraries that I maintain, the gcc 4.3 changes are incorporated in corresponding CVS. I will release them little by little when we reach a critical amount of bug-fixes (I have released all of them less then a month ago :-() Cheers Fridrich -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG+Awku9a1imXPdA8RAq3vAJ40B/Q2E1hq/+ymq6VqISqd+svPewCfaIbM uoBmJx6PCkqRVwmkE3Dgenw= =u8Bl -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
