When I compile this, I give gcc:
gcc eepeople.cpp astrowin.c -lgdi32 -o ee.exe
And gcc returns this:
C:\Users\bby\AppData\Local\Temp/ccotcaaa.o:eepeople.cpp:(.text+0xf0): undefined
reference to `BuildBrush(unsigned char, unsigned char, unsigned char)'
collect2: ld returned 1 exit status
But as far as I can see, this should be a simple program to link together. When I test this in a program that does not use WinMain, it compiles fine. And when I move BuildBrush into eepeople.cpp, it compiles fine, so I don't think that there is any conflict with the parameters being passed to BuildBrush. What is wrong with the way that I am linking to BuildBrush in astrowin.c?