Recent

Author Topic: Can't find unit  (Read 9331 times)

Green

  • New member
  • *
  • Posts: 7
Can't find unit
« on: August 13, 2010, 11:37:47 am »
ObjectWindows Library

Hello!
I'm trying to compile a simple program, creating with OWL
Fatal: Can't find unit WOjects used by winDemo


program winDemo;
uses WObjects;
var
MyApp: TApplication;
begin
MyApp.Init ('Demo');
MyApp.Run;
MyApp.Done;
End.

it seems the compiler not to see bibleoteku Object Windows Library (OWL)
tell my how to configure?
OS: Ubuntu 10.

captian jaster

  • Guest
Re: Can't find unit
« Reply #1 on: August 13, 2010, 06:56:38 pm »
if im correct the usage of units are case sensitive if you made the unit.
Or lazarus is reading the wrong folder

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4474
  • I like bugs.
Re: Can't find unit
« Reply #2 on: August 13, 2010, 08:53:32 pm »
it seems the compiler not to see bibleoteku Object Windows Library (OWL)
tell my how to configure?
OS: Ubuntu 10.

If I remember right OWL was the predecessor of VCL, so Borland's first try of a real GUI library.
Before that they had a text mode Turbo Vision which is still alive with another name. (?)

Are you sure you have OWL installed? Please try LCL instead.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Green

  • New member
  • *
  • Posts: 7
Re: Can't find unit
« Reply #3 on: August 13, 2010, 09:51:09 pm »
/MySource$ cat winDemo
program winDemo;
uses LCL;
var
MyApp: TApplication;
begin
MyApp.Init ('Demo');
MyApp.Run;
MyApp.Done;
End.
:~/BP_70/MySource$ fpc winDemo
Free Pascal Compiler version 2.4.0-2 [2010/03/06] for i386
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for i386
Compiling winDemo
Fatal: Can't find unit LCL used by winDemo
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
/MySource$

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Can't find unit
« Reply #4 on: August 13, 2010, 10:37:13 pm »
Did you install Lazarus? You need to install Lazarus to use the LCL, installing Free Pascal is not enough. And also the correct units to add are Interfaces and Forms, not "LCL".

And if you are going to install Lazarus, it will be easier to use the visual IDE instead of the command line. Start with this Tutorial: http://wiki.lazarus.freepascal.org/Lazarus_Tutorial

Green

  • New member
  • *
  • Posts: 7
Re: Can't find unit
« Reply #5 on: August 13, 2010, 11:06:58 pm »
Did you install Lazarus? You need to install Lazarus to use the LCL, installing Free Pascal is not enough. And also the correct units to add are Interfaces and Forms, not "LCL".

And if you are going to install Lazarus, it will be easier to use the visual IDE instead of the command line. Start with this Tutorial: http://wiki.lazarus.freepascal.org/Lazarus_Tutorial

Yes  install Lazarus and Free Pascal. Thank you :/
« Last Edit: August 13, 2010, 11:17:50 pm by Green »

Green

  • New member
  • *
  • Posts: 7
Re: Can't find unit
« Reply #6 on: August 13, 2010, 11:12:39 pm »
http://en.wikipedia.org/wiki/Object_Windows_Library

The Object Windows Library (OWL) is a Borland C++ object-oriented framework originally designed for WinAPI. It was used in Turbo Pascal for Windows, Borland Pascal and their Borland C++ package. It was a competitor to the Microsoft Foundation Class Library (MFC).

OWL had incomplete support by the Borland C++ IDE and wasn't always upwardly compatible from release to release. It was eventually deprecated in favor of the Visual Component Library (VCL), which is written in Object Pascal and included in Delphi and C++ Builder Studios.

An open source internet community has released a series of improvements and patches to the original OWL which also allowed newer compilers (BC++ Builder 5, BCC55, BC++ Builder 6, GCC, MSVC++ 6, MSVC 2003, MSVC 2005, MSVC 2008, MSVC 2010, BDS C++ 2006, CodeGear C++ 2007, CodeGear C++ 2009, CodeGear C++ 2010). The project name: OWLNext.
........................//

Green

  • New member
  • *
  • Posts: 7
Re: Can't find unit
« Reply #7 on: August 13, 2010, 11:13:39 pm »
Object Windows Library
How to install this Library?
Connect it and finally compile the program!
« Last Edit: August 13, 2010, 11:17:09 pm by Green »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Can't find unit
« Reply #8 on: August 14, 2010, 10:29:49 am »
Quote
OS: Ubuntu 10
It won't work there. OWL is a Windows API wrapper just like VCL. Use LCL instead. Why do you need to use it anyway?

captian jaster

  • Guest
Re: Can't find unit
« Reply #9 on: August 15, 2010, 01:32:49 am »
Quote
OS: Ubuntu 10
It won't work there. OWL is a Windows API wrapper just like VCL. Use LCL instead. Why do you need to use it anyway?
Maybe hes using it for the advantages?
Sometimes its fun/Best to have more control over what your doing in the program  :P . Then using Ready written procedures(Sometimes)
Never heard of this before though..
Cool
http://en.wikipedia.org/wiki/Object_Windows_Library

 

TinyPortal © 2005-2018