http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57454

            Bug ID: 57454
           Summary: scrnsaver bug
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dima.sergeevich at gmail dot com

I am compiling(trying) a screen saver.
Yes, a I have included "scrnsaver.h" and compiling with -lscrnsaver.
And getting an error:

mingw32-g++.exe  -o bin\Debug\ScrDemo.exe obj\Debug\main.o   -lscrnsave -   
lgdi32 -lopengl32 -lglu32  
c:/program files
(x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../libscrnsave.a(scrnsave.o):scrnsave.c:(.text+0x191):
undefined reference to `RegisterDialogClasses@4'
c:/program files
(x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../libscrnsave.a(scrnsave.o):scrnsave.c:(.text+0x50f):
undefined reference to `RegisterDialogClasses@4'
c:/program files
(x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../libscrnsave.a(scrnsave.o):scrnsave.c:(.text+0x527):
undefined reference to `ScreenSaverConfigureDialog@16'

As you can see i am not using this procedures they are used inside a lib.
So i think that it is a bug and waiting for your response.
Thank you.

Reply via email to