Quote:
|
Originally Posted by badbasser98
[Linker error] undefined reference to `InitCommonControls@0'
I got this message before one some code that I wrote that was exactly like an example that I saw, except altered for the ranges, variables that I need in my prog. Bug in Dev-C++? I have version 4.9.9.2
Thanks for the help nnxion,
-BB98
|
See if you can track down a local copy of the Win32 API reference. You can also use MSDN or the online help in VC++. There should be a listing of requirements for any classes, functions, and/or constants you want to use, including what header and library files you need, as well as what OS (for example, something might work under Win2000 but not under Win98). If you're compiling under VC++, just use whatever libs they say to use, but if using DevC++, you'll have to use the same library name, only with a '.a' extension (has to do with MinGW being a GNU-based compiler). Go to Project -> Project Options, hit the 'Parameters' tab, and under the 'Linker' list box, you'll see an 'Add Library or Object' button. You should be able to find your way from there.
