http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57454
--- Comment #2 from Dmitry <dima.sergeevich at gmail dot com> --- (In reply to Jonathan Wakely from comment #1) > This is not a GCC bug, the error you get is not even from GCC, it's from the > linker, but the problem is almost certainly due to you not linking to a > required library, or the order of libraries passed to the linker. Wait, i have checked it, the functions as "RegisterDialogClasses" are declared in scrnsaver. Also, i tried using different order of linking, but it doesn't changes something. And I am thinking that the problem is in libscrnsaver