GPC compiler error

Asked by Geth

Ive been trying to get my gpc complier for Pascal to work so I could finish some school assignments at home, however i always get the same error when i go to compile. The error i get from the terminal is
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status

The steps ive done so far was installed gpc complier from the ubuntu terminal ie sudo get-apt install gpc, and im using emacs as the editor of choice. Now after ive done just a few lines i went to test to make sure everything worked and i recieve the above error and was hoping someone would know a solution.

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Albert Damen (albrt) said :
#1

Please make sure you have the package build-essential installed. You can install it using the command:

$ sudo apt-get install build-essential

This makes sure you have a working c compiler system. GPC uses the c compiler for part of it's work.

Can you help with this problem?

Provide an answer of your own, or ask Geth for more information if necessary.

To post a message you must log in.