On 3 Feb 2005 at 10:29, john C wrote:
> I'm getting a link error: Undefined reference to 'IID_IUnknown' ...
> this is mystifying me since I can clearly see the #def in the h file.
> Here's the compiler output:
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Compiler: Default compiler
> Building Makefile: "D:\Coding
> stuff\Dev-Cpp\Examples\MyShit\Makefile.win" Executing make clean rm
> -f main.o Project2_private.res Project2.exe
Mingw doesn't like directory paths with spaces in them. But when
it's inconsistent about the error. Try putting this in
D:\CodingStuff\Dev-Cpp\Examples etc., etc.
I had the same problem because I was putting my code in a
subdirectory of My Documents. I had about 6 or 7 .h/.cpp files in
this one project and I was able to compile them just fine... then out
of the blue, it stopped working. Couldn't figure it out for the life
of me. Then someone in another group told me about the problems it
has with spaces. Moved all my source to a spaceless directory path
and... voila!... everything worked again.
Give it a shot.
Watson (the pencil neck) Davis
|