LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-27-2010, 12:37 PM   #1
poonamagale
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, 05:07 PM   #2
whizje
Member
 
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-28-2010, 12:31 AM   #3
poonamagale
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?
 
  


Reply


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 05:23 PM
CLFS 5.9 - Glibc compile: suffix of object files, cannot compile Noddegamra Linux From Scratch 3 04-27-2009 01:49 AM
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 05:19 PM
Compile Program with shared object file Nishant Desai Programming 1 03-15-2007 01:01 PM
Pascal App Wont Compile (newb, help!) flamesrock Programming 0 10-20-2004 11:48 PM


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

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