LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to compile a pascal object file with a .o extension (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-compile-a-pascal-object-file-with-a-o-extension-798258/)

poonamagale 03-27-2010 11:37 AM

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.

whizje 03-27-2010 04:07 PM

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.

poonamagale 03-27-2010 11:31 PM

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


All times are GMT -5. The time now is 08:47 PM.