Compilation errors when using CFLAGS=-g

Shachar Shemesh wine-devel at sun.consumer.org.il
Sat Aug 17 11:15:29 CDT 2002


I did the following:
make dist-clean
CFLAGS=-g ./configure
make depend
make

For some strange reason, I get the following errors:
make[2]: Entering directory `/home/sun/sources/wine/wine/programs/winhelp'
gcc -o hlp2sgml hlp2sgml.o hlpfile.o
hlpfile.o: In function `HLPFILE_ReadHlpFile':
/home/sun/sources/wine/wine/programs/winhelp/hlpfile.c:205: undefined 
reference to `GetProcessHeap'
/home/sun/sources/wine/wine/programs/winhelp/hlpfile.c:238: undefined 
reference to `GetProcessHeap'
/home/sun/sources/wine/wine/programs/winhelp/hlpfile.c:239: undefined 
reference to `GetProcessHeap'
/home/sun/sources/wine/wine/programs/winhelp/hlpfile.c:240: undefined 
reference to `GetProcessHeap'
/home/sun/sources/wine/wine/programs/winhelp/hlpfile.c:241: undefined 
reference to `GetProcessHeap'
hlpfile.o:/home/sun/sources/wine/wine/programs/winhelp/hlpfile.c:337: 
more undefined references to `GetProcessHeap' follow
collect2: ld returned 1 exit status
make[2]: *** [hlp2sgml] Error 1
make[2]: Leaving directory `/home/sun/sources/wine/wine/programs/winhelp'
make[1]: *** [winhelp] Error 2
make[1]: Leaving directory `/home/sun/sources/wine/wine/programs'
make: *** [programs] Error 2

The exact same line of code failing in this file works without a problem 
in a hundred other places throughout the code, and when not overriding 
the flags (that is, if I understand correctly, when -g -O2 is used), 
everything is fine.

Now, I don't need this file for my tests, so I just skip compiling it, 
but the problem is .... wierd.

Anyone has any insight into it?

sun at sun:~/sources/wine/wine/programs/winhelp$ cvs stat hlpfile.c
===================================================================
File: hlpfile.c         Status: Up-to-date

   Working revision:    1.9     Tue Jul 16 01:46:29 2002
   Repository revision: 1.9     
/home/sun/sources/wine/cvs/wine/programs/winhelp/hlpfile.c,v
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)






More information about the wine-devel mailing list