Re: [Dev-C++] link problem with #include "unknwn.h"
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-02-03 22:36:30
|
Since it's in .text, and your file compiled to an object file, my suggestion is to search for the text 'IID_IUnknown' in the lib folder of Dev-Cpp to see which file has that text. It's both in libfltk.a and libuuid.a. So, somehow, one of those files isn't being given to the linker, or the wrong one is being given to the linker. Again, this is one of the beauties of GNU/Linux/Unix vs. DOS/Windows, the capability to easily do the above search with one command (grep)! john C <zam...@ya...> 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: <snip> main.o(.text+0xa):main.cpp: undefined reference to `IID_IUnknown' <snip> Alfred P. Reaud |