For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

Debugging (MFC)

Anonymous's picture

Hi !

Would it be possible to compile all the source files (except the opengl.dll stuff of course) into one big dll file, this would make it much simpler to create a debug version of Open CASCADE.

The problem is, I am not sure if the dll files depend on the names of other dll files and so on, does any one have any idea if this would be possible ?


Philippe Centa's picture

Hi Mikael,

Please don't press the button twice you clutter my mailbox with your numerous posts. There is no advantage making one sole dll for the whole. Debugging through dlls is no problem. The only recommanded thing is not to mix modes even if most of the time it does work. Anyway I guess it would be OK to create one sole dll (even Opengl.dll could be linked, the dynamic loading is an old rest of alternate solutions which do not exist with NT). Be careful not to use precompiled headers. They explode and it generates a strange non documented error.


Mikael Aronsson's picture

Hi !

The reason that I wanted to make one big dll is that, it would take a lot of work to put together all the project files needed to create all the libraries, by making only one dll I only need one project file.

And when the next version is out I have to check all the project files again if some files have been added and so on.

Or is there an easy way to make the project files needed ? so far I have not found and easy way to do it.

Note: I have used precompiled header to compile the samples and my own code and so far I have not had any problems, is this only a problem when I compile the sorce files ?


Sylvain Lecluze's picture


dynamic load is possible with NT : add /DELAYLOAD:DLLNAME syntax to Projet Settings | Link for more information, see MSJ February 2000, chapter Under The Hood by Matt Pietrek or