Forum > Beginners

How to load custom units on free pascal

(1/1)

DiCri:
Hi guys,
if i try to create a custom unit.. i'd like to load it by the main exe program.
Imagine a folder in which there are: another folder called "files" and then main executable program.
In the "files" folder there is the unit's components with .o .ppu .pas formats.
When coding, if i put the name of the unit it tells error because it couldn't find this unit.
Unit name = fade.

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---uses fade; And then error compiling because not found unit fade..
But if i move the unit file into the same directory of the exe file, it works fine...
Can i fix that? or there is a method how to pick procedures and functions from files into subfolders?
if my english was so bad and then you don't understand nothing.. so i will may upload some screenshots.. THANKS :-\

molly:
I am pointing you towards a wiki here.

Navigation

[0] Message Index

Go to full version