kriscross07 / atom-gpp-compiler

An atom package that allows you to compile and run C++ and C within the editor.
https://atom.io/packages/gpp-compiler
80 stars 228 forks source link

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

Open BC46 opened 3 years ago

BC46 commented 3 years ago

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.

Keymaker63 commented 2 years ago

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

BC46 commented 2 years ago

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.