Solved ProjectTool & visual studio: /DELAYLOAD

Hi!
With the project tool, is it possible to specify visual studio-specific options beyond the options outlined here in the docs: https://developers.maxon.net/docs/Cinema4DCPPSDK/html/page_maxonapi_projecttool.html#page_maxonapi_projecttool_definition_win ?

Specifically, I would like to set the /DELAYLOAD linker option in my project from the projecttool. Is this possible?

Thanks
/Filip

hello,

First, for your next threads, please help us keeping things organised and clean. I know it's not your priority but it really simplify our work here.

I've marked this thread as a question so when you considered it as solved, please change the state 🙂

About you question :

In the page you linked (i'm not blaming you i didn't saw it neither) there's the option AdditionalLinkOptions

something like this should work :

AdditionalLinkOptions=/DELAYLOAD:"mydll.dll"

It will be added to your linker properties "Configuration Properties-> Linker ->All Options->Additional Options"

Let me know if this solve your issue.

Cheers
Manuel

MAXON SDK Specialist

MAXON Registered Developer

Thanks, I'll try that!

Regarding the "Ask as a question", have you considered making this the deafult when creating new threads? I would assume most new threads are indeed questions, and it's easy to forget checking this option.

Thanks
/Filip

Actually, this does not seem to solve my problem. The option gets added under

"Configuration Properties-> Linker ->All Options->Additional Options"

just as you said, but I would need to modify

"Configuration Properties-> Linker ->All Options->Delay Loaded DLLs".

Is this possible from the project tool? This is for a public open source software, so I would really like to make the build process as streamlined as possible to aid external developers. Therefore, I would like to avoid manually changing the projects generated by the projecttool.

Thanks
/Filip

hello,

I've asked the devs, i'll be back as soon as I have information.

Cheers
Manuel

MAXON SDK Specialist

MAXON Registered Developer

hello,

The command appears in Configuration Properties->linker->Command Line (the bottom box "Additional Options").
(I wonder why I didn't saw it xD : please don't answer that question ^^ )

It should be taken into account. Do you see any difference between adding your command there or in "Configuration Properties-> Linker ->All Options->Delay Loaded DLLs". ?

on windows
AdditionalLinkOptions
like so
AdditionalLinkOptions=%(AdditionalOptions) /DELAYLOAD:"mydll.dll"

for OSX you can use
OTHER_LDFLAGS

like so
OTHER_LDFLAGS=-lazy_library;../pathToYourDylib

some warning on OSX :

Note however, that this delayed loading is deprecated in Xcode 11 on macOS 10.15 (and currently doesn't work anymore).

Cheers
Manuel

MAXON SDK Specialist

MAXON Registered Developer

Thanks,
I will check this again. I am marking this as solved for now.

/Filip

hello,

if you can give us feedback that would be awesome.

Cheers
Manuel

MAXON SDK Specialist

MAXON Registered Developer