Lỗi pascal cant find unit system by

  • Lỗi pascal cant find unit system by
  • Diễn đàn
  • Lập trình
  • Các ngôn ngữ lập trình
  • Pascal/Delphi/Kylix
  • Giúp em đi

Lỗi pascal cant find unit system by

  1. Giúp em đi
    Có anh chị nào biết cái vấn đề này không giải giùm em với:

    ở turbo pascal 7.0 em download về máy nhưng khi khai báo uses graph; thì nó báo lỗi :can't find file. Rồi em lại download freepascal về và cũng đánh uses graph; rồi nó cũng báo lỗi: Can't find unit graph file......... ??????????? ai biết thì chỉ em với,nói cung là em cứ viết uses graph; thì nó lại báo lỗi.......HELP ME!!! (em kiểm tra unit graph thì thấy vẫn có)....... ???????????????

    -
  2. > Đơn giản là cái đường dẫn khai báo biên dịch của em sai nên nó ko tìm được. Anh chỉ em một cách đơn giản nhất là copy unitgraph về chung với thư mục có file turbo.exe là chạy vù vù khỏi lôi thôi.

    Được sửa bởi real_time lúc 08:57 ngày 06-12-2007

    -
  3. > Cảm ơn anh nhé.Nhưng còn 1 vấn đề nữa là:

    ở turbo pascal 7.0, khi em cung chạy thư viện graph và run nó thì hiện ra chế độ DOS rồi báo lỗi: BGI error ..... anh cũng chỉ cho em lun nha,à cái TP 7.0 khi em ấn Ctrl+F9 để run nó nhưng h0k đc anh chỉ em lun....Cảm ơn anh.

    -
  4. > Oái cái lỗi đó tôi ko nhớ là gì nữa rồi àh. Hình như là trong đó thiếu mất file egavga.bgi. Bạn tìm file đó copy chung một chỗ với turbo.exe là được. Nhưng bạn nên tìm hiểu cách đặt đường dẫn, link, thư mục thư viện .... trong setting của turbo pascal mới khoa học. Còn cách sửa của mình chỉ là tạm thời thội. Bạn nên đọc kỹ trong phần help của pascal. -

Bookmarks

Bookmarks

Quy định

  • Bạn không thể tạo chủ đề mới
  • Bạn không thể trả lời bài viết
  • Bạn không thể gửi file đính kèm
  • Bạn không thể sửa bài viết của mình
  • BB code is On
  • Smilies are On
  • code is On
  • code is On
  • HTML code is Off

Quy định DDTH.com

Discussion:

fp looks for a unit System ?

(too old to reply)

[apologises for possibly wrong english] Hi, there

I've installed FreePascal 2.2.0 in my linux home, and I have fp in my PATH. I wish to run gavrasm, an assembler program for AVR microcontrollers (http://www.avr-asm-tutorial.net/gavrasm/index_de.html), but I can't make it to be compiled. Whenever I lauch fp within gavrasm top source tree or within freepascal installation dir, I've got the same error message:

Fatal : can't find unit System used by gavrasm.

Could somebody tell me what's fp exactly looking for, an how could I help it in getting it ?

-- Antonin

I've installed FreePascal 2.2.0 in my linux home, and I have fp in my PATH. I wish to run gavrasm, an assembler program for AVR microcontrollers (http://www.avr-asm-tutorial.net/gavrasm/index_de.html), but I can't make it to be compiled. Whenever I lauch fp within gavrasm top source tree or within freepascal installation dir, I've got the same error Fatal : can't find unit System used by gavrasm. Could somebody tell me what's fp exactly looking for, an how could I help it in getting it ?

Two possibilities: - clean your project directory of .ppu's and .o's from previous versions. - configure the path to the rtl in the textmode IDE's options ->directories ->units tab.

The unit paths you have to enter are (depending on exact distribution)

/usr/lib/fpc/2.2.0/units/i386-linux/* /usr/lib/fpc/2.2.0/units/i386-linux/

Some linux/unix distro's install in /usr/local/lib/.. instead of /usr/lib/.. though, check this first. (so once with, and once without asterisk)

Hello Marco

- clean your project directory of .ppu's and .o's - configure the path to the rtl in the textmode IDE's options ->directories ->units tab. Some linux/unix distro's install in /usr/local/lib/.. instead of /usr/lib/.. though, check this first. (so once with, and once without asterisk)

Thanks a lot. As it is installed in my homedir, the units dir have been found in $(HOME)/fpc-2.2.0/lib/fpc/2.2.0/units/i386-linux/ The dir could not be picked up by mouse click neither cut/pasted in the fpc IDE, so I mispelled it a bit before having it right. Oh, finally I've edited fp.cfg while fp was off... I had to remove once more all the .ppu's and .o's before fpc ran, as you suggested.

Now avrasm runs : thanks again.

-- Antonin

Hello Marco

- clean your project directory of .ppu's and .o's - configure the path to the rtl in the textmode IDE's options ->directories ->units tab. Some linux/unix distro's install in /usr/local/lib/.. instead of /usr/lib/.. though, check this first. (so once with, and once without asterisk)

Thanks a lot. As it is installed in my homedir, the units dir have been found in $(HOME)/fpc-2.2.0/lib/fpc/2.2.0/units/i386-linux/ The dir could not be picked up by mouse click neither cut/pasted in the fpc IDE, so I mispelled it a bit before having it right. Oh, finally I've edited fp.cfg while fp was off... I had to remove once more all the .ppu's and .o's before fpc ran, as you suggested.

Now gavrasm runs : thanks again.

-- Antonin

Thanks a lot. As it is installed in my homedir, the units dir have been found in $(HOME)/fpc-2.2.0/lib/fpc/2.2.0/units/i386-linux/ The dir could not be picked up by mouse click neither cut/pasted in the fpc IDE, so I mispelled it a bit before having it right. Oh, finally I've edited fp.cfg while fp was off... I had to remove once more all the .ppu's and .o's before fpc ran, as you suggested. Now gavrasm runs : thanks again.

IIRC the problem is that for textmode-apps-in-terminals you can either allow cut and pasting by mouse, or use the mouse to drive the menues. The IDE choose the latter iirc.

On Oct 26, 5:43 pm, "Antonin.de.jardin"

[apologises for possibly wrong english] Hi, there I've installed FreePascal 2.2.0 in my linux home, and I have fp in my PATH. I wish to run gavrasm, an assembler program for AVR microcontrollers (http://www.avr-asm-tutorial.net/gavrasm/index_de.html), but I can't make it to be compiled. Whenever I lauch fp within gavrasm top source tree or within freepascal installation dir, I've got the same error Fatal : can't find unit System used by gavrasm. Could somebody tell me what's fp exactly looking for, an how could I help it in getting it ? -- Antonin

Thanks for the link and tips. Is there a discussion group for this ? I know of AVRfreaks and the Basic and C compiler, but FreePascal use is new to me. Rick.

Thanks for the link and tips. Is there a discussion group for this ? I know of AVRfreaks and the Basic and C compiler, but FreePascal use is new to me.

http://www.freepascal.org/maillist.var

Jonas

Thanks for the link and tips. Is there a discussion group for this ? I know of AVRfreaks and the Basic and C compiler, but FreePascal use is new to me.

http://www.freepascal.org/maillist.var Jonas

I've been going through the gavrasm source. So far just the program file, matching begin..ends, indenting, commenting. Very important software, and should be maintained.

I don't know how it compiles properly, anyway. For example; some case...else statements seem to use improper syntax. The concluding else part is followed by multiple statements without the begin..end blocking. This is different from fpc and tp railroad diagrams.

Also, I don't know why the crt unit is used, especially on linux. Same with the sysutils unit.

That being said, very important software. Pascal really shines for text processing.

Loading...