I need to call the function CoInitialize() to allow my listview to display background images, so I read the documentation and it sounded like a pretty straightforward function call: "CoInitialize(NULL)"... except I keep getting this error when compiling:
At first I thought the error resulted from the compiler not having the function included, but that was not the case as when I tested CoInitialize() and CoInitialize(NULL, 0), the compiler was able to recognize that I was passing too few/too many arguments to the function. Also, I tried both CoInitializeEx and OleInitialize instead, but both gave the same errors..objs\app.o:hldj.c .text+0x7f9): undefined reference to `CoInitialize@4'
.objs\app.o:app.c .text+0x1538): undefined reference to `CoUninitialize@0'
I'm not sure whats going on here, how can, on the one hand my compiler recognize the function by knowing its argument structure, but yet on the other hand tell me the function is an undefined reference. If its an undefined reference, where's it getting the information about its arguments from?
I'm not sure if this is a compiler problem or if its just a simple oversight in code by myself, but just in case, here's the specs:
C code compiled by GCC mingw32 in CodeBlocks RC2.
Thanks for any insight you can provide me.