[SOLVED] DEBUGSTART_$CUSTINFOUNIT lazarus / 12-Debugger ---------------------------------------------------------------------- WickedDum · 2016-10-01 21:20 The custinfo.lpr file: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program CustInfo; {$mode objfpc}{$H+} uses  {$IFDEF UNIX}{$IFDEF UseCThreads}  cthreads,  {$ENDIF}{$ENDIF}  Interfaces, // this includes the LCL widgetset  Forms,  { you can add units after this } CustInfoUnit; {$R *.res} begin  RequireDerivedFormResource:=True;  Application.Initialize;  Application.CreateForm(TForm1, Form1);  Application.Run;end. The 'end.' was highlighted. I used CustInfo as the unit name before.  Then I received the error "DUPLICATE IDENTIFIER".  The only way I resolved that error was to rename the unit. What do I do know??  Thanks, in advance! ---------------------------------------------------------------------- Martin_fr · 2016-10-01 23:48 Not sure, but when you get linker errors, make sure you have no duplicate ppu or .o files. check your lib folder. check the lib folder of packages used. make sure you do not have any other directories included (unit search or lib search....) ---------------------------------------------------------------------- WickedDum · 2016-10-02 07:49 Thank you! @Martin_fr - In the lib directory, there are no duplicate files.  If you mean duplicate files between the lib directory and the project directory, there are two files:  custinfo.lfm and custinfo.res.  The project directory files are date-stamped 10/1 @ 4:26  The lib files @ 10/1 3:48. Do I need to delete two of the files?  Which directory shall I delete them from ? Do appreciate your help! ---------------------------------------------------------------------- Martin_fr · 2016-10-02 11:37 no, lfm and res are nothing to do with this. sorry out of ideas on my end. ---------------------------------------------------------------------- WickedDum · 2016-10-03 01:30 OK.  Thanks. Here's a thought: I can create a new project and cut-n-paste the code into the new unit.  No problem.  However, I am concerned about losing the form.  That was a lot of work.  How do I use the form that I have already created? Thanks! ---------------------------------------------------------------------- Martin_fr · 2016-10-03 01:39 if it works in a new project you have a few options: Try (if you have not yet)  build clean "Clean up and build" then 1) keep the existing project, but - delete the content of the "lib" folder in your project   (that may already solve it) - remove any path from (menu project > project options / Compiler Options > Path) in the field "Libraries -Fi" and "Other unit Files -Fu" (that is unless you added them, knowing why you did add them) - build clean "Clean up and build" if that does not work 2) Menu Project > "Publish Project" this makes a clean copy including your forms. ---------------------------------------------------------------------- WickedDum · 2016-10-03 18:58 Thanks, Martin! Guess I have a lot more studying to do on the use and relationships of all of the Lazarus files. Thanks for your help!!