OneCompiler

Is C++ limited to only main.cpp?

I don't see a way to add files to the C++ editor. Is this a bug? or a feature?

2 Answers

1 year ago by

@Alan Gandy We have fixed this.

1 year ago by Karthik Divi

Now we can add multiple files, but they are not compiled/linked properly.
For example I have main.cpp, Module1.hpp, Module1.cpp --> I cannot access symbols defined in Module1.cpp in main.cpp

How can we have Module.cpp compiled as well?

1 year ago by Sidelob