From: Ralph N. <rni...@se...> - 2003-01-08 18:01:33
|
I cannot get my program to link - it starts like this, so I know I'm = including the right headers... #include <windows.h> #include <commctrl.h> #include <stdio.h> #include "resource.h" I use a Make file to build it, which looks like this all: testlist.exe testlist.exe: testlist.cpp g++ -s -mwindows -lcomctl32 -D_WIN32_IE=3D0x0401 testlist.cpp -o = testlist.exe This is the output I get: g++ -s -mwindows -lcomctl32 -D_WIN32_IE=3D0x0401 testlist.cpp -o = testlist.exe C:\DOCUME~1\rn\LOCALS~1\Temp/ccgNaaaa.o(.text$_ZN12MyWindowsDlg7DoModalEP= 6HWND__+0x35):testlist.cpp: undefined reference to = `InitCommonControlsEx@4' make: *** [testlist.exe] Error 1 I looked inside libcomctl32.a, and verified that the symbol = '_InitCommonControlsEx@4', so everything seems like it should work, but = I was unable to determine if the underscore was significant. Thanks for any answers! |