Package undefined

In reply to chr_sue:

how to compile the my_package file prior to the top file?