Can't find unit ... used by ... lazarus / 13-General ---------------------------------------------------------------------- Ree · 2010-06-06 02:15 Hello, I'm trying to use an external library (wingraph) in a simple program. I have .o and .ppu files. I added the directory that contains them to the list of both "Other Unit Files" and "Include Files" paths under Project->Compiler Options. I still get the error "Can't find unit wingraph used by program". The unit is Windows specific, I'm compiling on Windows, too. What should I do to solve the problem? ---------------------------------------------------------------------- JuhaManninen · 2010-06-06 05:10 Don't you have source code? Juha ---------------------------------------------------------------------- Leledumbo · 2010-06-07 00:00 Probably the unit is compiled with different compiler version so your compiler tries to recompile the source, but since it can't find it, it aborts the compilation by saying so. Btw, you don't need to add them to Include files, that's for files used in {$I xxx}. ---------------------------------------------------------------------- AlZuur · 2010-06-07 13:44 Usually happens to me if the unit is part of the system and I try to add it to the include search path. I think you have to use one not both. Make sure you delete the compiled stuff in the lib\{platform} folder to make sure everything is freshly compiled after you corrected possible path problems.