About Store Forum Documentation Contact



Post Reply 
Dependency problem with Smaller Type Check
Author Message
yvanvds Offline
Member

Post: #1
Dependency problem with Smaller Type Check
This one is just a bit of an inconvenience.

I am using an external DLL in my application. It has /RTCc disabled (C++ -> Code Generation -> Smaller Type Check set to 'no').

Esenthel has /RTCc enabled in debug mode. So I can only run in Release mode. I can go to debug mode in VS, but i have to edit the project properties before I can run it, every time I open VS.

And specifying a debug version of that DLL in debug mode is not possible in the editor.

Is there any way to change this behaviour?

Thanks,
yvan
10-21-2022 07:19 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Dependency problem with Smaller Type Check
DLL cannot be loaded because of "Smaller Type Check"?
I never knew that.
Anyway, the easiest solution would be for you to modify your local copy of:
https://github.com/Esenthel/EsenthelEngi...ct.vcxproj
This is the base for generating VS Projects.
10-22-2022 03:41 AM
Find all posts by this user Quote this message in a reply
yvanvds Offline
Member

Post: #3
RE: Dependency problem with Smaller Type Check
Ok, thanks. FYI, this is the error:

Code:
/RTCc rejects conformant code, so it is not supported by the C++ Standard Library. Either remove this \
compiler option, or define _ALLOW_RTCc_IN_STL to acknowledge that you have received this warning.
10-22-2022 04:36 PM
Find all posts by this user Quote this message in a reply
RedcrowProd Offline
Member

Post: #4
RE: Dependency problem with Smaller Type Check
i had a similar issue IIRC including the GOG API, defining it should let it build
#define _ALLOW_RTCc_IN_STL
10-22-2022 11:06 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Dependency problem with Smaller Type Check
10-23-2022 04:34 AM
Find all posts by this user Quote this message in a reply
yvanvds Offline
Member

Post: #6
RE: Dependency problem with Smaller Type Check
I did not experiment any further and don't have access to the source code of the library i am using. But maybe the problem occurs when one library has that define and another one does not?

edit:
I did add that define and it did not make any difference. But I was not sure wether #define was accepted in the editor or not.
(This post was last modified: 10-24-2022 12:55 AM by yvanvds.)
10-24-2022 12:47 AM
Find all posts by this user Quote this message in a reply
Post Reply