Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how to use UNITS in Pascal

+3 votes
asked Feb 16, 2023 by adrian soriano (150 points)

i dont know how can i use units from different files in a main file. 

Fatal: Can't find unit uElement_Int used by project1
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode

2 Answers

0 votes
answered Feb 17, 2023 by Peter Minarik (88,130 points)

Do the following help?

  1. https://wiki.freepascal.org/Unit
  2. https://www.tutorialspoint.com/pascal/pascal_units.htm

If you can share your code, more specific help can be provided.

Good luck!

0 votes
answered Feb 22, 2023 by root (810 points)

As of today, OnlineGDB does not support the use of UCSD Pascal units. All your Pascal source code needs to reside in a single file. Therefore, you can only “solve” the issue by using the FPC (FreePascal Compiler) directly on your computer.

Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...