in reply to Error in compiling the code
It is rather impossible to help you without a small snippet of example code, at least including the use statements, a barest idea of the package structure, and the actual (and near surrounding) lines where the call to new() is attempted.