atom-gpp-compiler icon indicating copy to clipboard operation
atom-gpp-compiler copied to clipboard

Fix "Callback must be a function. Received undefined" error

Open BC46 opened this issue 3 years ago • 2 comments

Many users have reported the following error: Callback must be a function. Received undefined. This error was caused by asynchronous fs method calls that did not include a callback. The issue has been fixed by calling the synchronous variants of the methods instead, since those do not require a callback.

BC46 avatar Jun 25 '21 17:06 BC46

I really have no clue what this means. I just want to compile some lines for school assignment.....

Keymaker63 avatar Mar 05 '22 03:03 Keymaker63

I'd strongly discourage you from using atom-gpp-compiler since the package hasn't actually been updated in years. Instead, you might want to use an IDE made specifically for C++ programming like Code::Blocks, CodeLite, or CLion if you can get a student license. However, since you say you only need to compile some lines, I'd actually recommend using an online C++ compiler , since that's by far the easiest way to run your code.

BC46 avatar Mar 05 '22 09:03 BC46