DiscussionsIssue archiveInstallation and Building

Archived discussion

How to build with the .res files not included in the objects

Installation and BuildingThu, 03/20/2025 - 16:231 reply

Browse this forum
QuestionAuthor

Hi
I am having issues linking a vey simple program in VS2022 due to .res files that are duplicated in libraries.
The linker gives an error LNK1241

/**********
resource file 'resource file' already specified

This error is generated if you run cvtres manually from the command line and if you then pass the resulting .obj file to the linker in addition to other .res files.

To specify multiple .res files, pass them all to the linker as .res files, not from within .obj files created by cvtres.
*******/

I generated the project with CMake_GUI. I will attach the make file.

How do I get OCCT to build with the .res files outside of the libraries?

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

The issue is shown on OCCT buidling process or external lib?

Could you share the external lib setup?

OCCT do not have option to disable "rc"/"res" file generation from the box for windows,

Best regards, Commenter-1