Recent

Author Topic: Lazarus project group, Compile Clean option  (Read 2317 times)

vejrous

  • New Member
  • *
  • Posts: 17
Lazarus project group, Compile Clean option
« on: July 16, 2018, 11:28:21 pm »
Hi,
I am developing smal program using multiple DLLs (all are written in Lazarus).
Problem is that sometimes program after compiling does not start and throws an error "0xc000007b".
Only thing that helps is using "Compile Clean" option from Lazarus project group.
http://wiki.freepascal.org/Project_Groups

Can anybody help with what exactly does this option do differently
and how to set this when compiling from command line?

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Lazarus project group, Compile Clean option
« Reply #1 on: July 16, 2018, 11:43:56 pm »
Hi,
I am developing smal program using multiple DLLs (all are written in Lazarus).
Problem is that sometimes program after compiling does not start and throws an error "0xc000007b".
Only thing that helps is using "Compile Clean" option from Lazarus project group.
http://wiki.freepascal.org/Project_Groups

Can anybody help with what exactly does this option do differently
and how to set this when compiling from command line?

Look at the resulting .compiled file to see what additional switches were added. Then add these switches to your command line.

It's possible that you have some other error, though, maybe something related to your DLLs. The Dynamic Libraries articles here might be of interest:

https://macpgmr.github.io

vejrous

  • New Member
  • *
  • Posts: 17
Re: Lazarus project group, Compile Clean option
« Reply #2 on: July 17, 2018, 12:17:04 am »
Hi, thank You for quick answer.

I just realized that I am using LazBuild.exe for compiling because it allows using build modes:
%RegValueData%lazbuild.exe %~dp0\dll_A\dll_A.lpi --build-mode=Default

There ase 2 switches I haven't found what they mean:
-Scghi
-vewnhibq

Is using fpc.exe directly better?

 

TinyPortal © 2005-2018