A
A
Asya2019-03-05 13:50:00
Perl
Asya, 2019-03-05 13:50:00

How to run C code from perl?

I have a perl script that takes a file, converts it to another format, runs the C code, performs calculations there, writes to another file, then returns again for further perl calculations.
This is how it worked for other people.
All I can do is run a perl script, then VS opens with C code that doesn't run.
How to make everything run and not just open VS?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Saboteur, 2019-03-05
@asyaevloeva

There is no C script. Since it is a compiled language, it must be compiled into an executable file. Either your script is not in C.
And it's not a pearl. Perl most likely just launches an external file.
Windows starts the associated program - you have visual studio.
Apparently you need to find and install the C interpreter

C
CityCat4, 2019-03-06
@CityCat4

How to make everything run and not just open VS

Compile a program written in C.
Or rewrite it in Perl.
JFYI: "C script" doesn't exist. C is a compiled type language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question