1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram

  5. Delphifan Magazine
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Build DCU files - help

Discussion in 'Delphi Help&Requests' started by Mpas, Oct 13, 2015.

  1. Mpas
    Offline

    Mpas DF Member

    Hi.
    I need help.

    I have EXAMPLE program (from the manufacturer)    Example.pas and this project use external source   for example  USB.pas
    When use  BUILD ALL ( XE7 up1)  so generate compiler   USB.dcu  file and ALL work OK. 

    But
    I have my DEMO project   Demo.pas 
    and i use also external source USB.pas
    When use  BUILD ALL  so  compiler  NOT GENERATE  USB.dcu 

    Please, give me an advice how to setup my Demo project to  compilator  generate DCU files ?
    Im beginner. Thanks.
     


     
     
  2. DelphiDad
    Offline

    DelphiDad DF Junior

    Delphi always generate dcu files from whatever unit your project uses, or from the list of uses files inside your project files.

    In your case it seems that you included "usb" into uses clause, but didn't use any of usb.pas routines. Compiler optimizes code and since there is no need for this unit (even though it is in uses clause) compiler eliminates it. So no usb.dcu was created.

    Use some of the usb routines and you will get usb.dcu
     
  3. Mpas
    Offline

    Mpas DF Member

    Thank you for the information.
    It seems that you are right.
    Problem solved
     

Share This Page