Skip to content

cpp.runSource is not returning promise with gcc 8.2 #9

@igorosberg

Description

@igorosberg

I have a Centos OS 8 running gcc 8.2. Most time when I try to run the code below, runSource does not return the promise as expected. However, it is lauching a event error that is not catched by the catch statement.

const {cpp} = require('compile-run')

var code = `
#include
using namespace std;
int main() {
cout << "Hello World";
}
`;

cpp.runSource(code,{
timeout : 3000,
compileTimeout : 3000,
stdin : '0',
compilationPath : '/usr/bin/g++'
}).then(res => console.log(res));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions