The dual-driving feed worktable (DDFW) is widely used in feed system because of its high stability and load capacity, while its feed system is one of the important parts that affects the feed accuracy of machine tools. Due to the influence of assembly, manufacturing and other factors, the positioning error of DDFW is produced, which reduces the machining accuracy of the machine tools. Therefore, the research on the positioning error compensation of DDFW is of great significance. In this paper, the positioning error of DDFW is measured with absolute optical scale and the positioning error model of DDFW is established by modeling method of orthogonal polynomials at first. Then an electronic cam combined with virtual axis compensation strategy is designed for DDFW to reduce positioning error. Finally, the compensation experiment is carried out and the error compensation results are analyzed to verify the effectiveness of the error compensation strategy designed in this paper.