Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-27-2010, 11:37 AM   #1
LQ Newbie
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
Talking How to compile a pascal object file with a .o extension

Hi. I have been trying to compile a pascal file using fpc. I succeeded using the command fpc pas1.pas, but this gave me a new object file pas1.o. How do i compile this file to get my output. gcc -o pas1.o does not work. Thanks.
Old 03-27-2010, 04:07 PM   #2
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 592

Rep: Reputation: 140Reputation: 140
If fpc creates a .o file then you have compiled a unit and not a program what is the contents of pas1.pas. Assuming you added the correct paths to your environment.
Old 03-27-2010, 11:31 PM   #3
LQ Newbie
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Unhappy hmmmmmm

The pas1.pas file contains a simple 4 statement program to print 'Hello World' So, how do I compile the program?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
File handling in Pascal. Anthony Mdaz Programming 1 12-18-2009 04:23 PM
CLFS 5.9 - Glibc compile: suffix of object files, cannot compile Noddegamra Linux From Scratch 3 04-27-2009 12:49 AM
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 04:19 PM
Compile Program with shared object file Nishant Desai Programming 1 03-15-2007 12:01 PM
Pascal App Wont Compile (newb, help!) flamesrock Programming 0 10-20-2004 10:48 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration