Error: ld returned 1 exit status

Getting the following error while compiling a package with the following source file. If I replace the code with the counter publisher example given in the course, it compiles fine. Could someone explain what’s the fix for this?


Hello @cjans121 ,

I just tried compiling this code and it works ok for me. Maybe it’s a sourcing issue with your Shell. I would recommend you try to compile from a clean Shell. You can also restart the current Shell by clicking on the red cross icon in the top-right corner of the Shell.

This topic was automatically closed after 46 hours. New replies are no longer allowed.