Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-08

Lazarus does not compile project - settings tweak required

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

Last night I found something string with Lazarus 0.9.27. I compile or 'build all' my project. Lazarus reports that the project compiled successfully, yet the project wasn't compiled.

I even added a compiler error in my code and did a build all and yet Lazarus still said everything compiled successfully. And yes, all required files (including the one I was editing) are in the Project Inspector - added to the project.

Strangely enough, other projects compiled just fine and reported compiler errors when I created them. It was only this one project that was giving me grief! :-(

In the end I found the problem. In "Project > Compiler Options > Compilation tab" all the checkboxes were unchecked. Checking "Compile", "Build" and "Run" in all three categories, and then my project truly compiled as expected. Problem solved! :-)

But what is the point of being able to uncheck all those options in the Compilation tab, and then Lazarus falsely reporting that everything compiled successfully?

I think Lazarus should rather report something different in the message window, or not allow the user to check all the checkboxes in the Compilation tab.

Your thoughts?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/

Reply by email

Mattias Gärtner
to Graeme Geldenhuys

Zitat von Graeme Geldenhuys :

Show quoted text 29 lines
Hi, Last night I found something string with Lazarus 0.9.27. I compile or 'build all' my project. Lazarus reports that the project compiled successfully, yet the project wasn't compiled. I even added a compiler error in my code and did a build all and yet Lazarus still said everything compiled successfully. And yes, all required files (including the one I was editing) are in the Project Inspector - added to the project. Strangely enough, other projects compiled just fine and reported compiler errors when I created them. It was only this one project that was giving me grief! :-( In the end I found the problem. In "Project > Compiler Options > Compilation tab" all the checkboxes were unchecked. Checking "Compile", "Build" and "Run" in all three categories, and then my project truly compiled as expected. Problem solved! :-) But what is the point of being able to uncheck all those options in the Compilation tab, and then Lazarus falsely reporting that everything compiled successfully? I think Lazarus should rather report something different in the message window, or not allow the user to check all the checkboxes in the Compilation tab. Your thoughts?

I added a warning.

Mattias

Reply by email