Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    ProjectTool & visual studio: /DELAYLOAD

    Cinema 4D SDK
    2
    8
    1.6k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      FilipM
      last edited by

      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/cpp/2023_2/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

      1 Reply Last reply Reply Quote 0
      • ManuelM
        Manuel
        last edited by

        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.

        • Q&A New Functionality.

        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

        1 Reply Last reply Reply Quote 0
        • F
          FilipM
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • F
            FilipM
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • ManuelM
              Manuel
              last edited by

              hello,

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

              Cheers
              Manuel

              MAXON SDK Specialist

              MAXON Registered Developer

              1 Reply Last reply Reply Quote 0
              • ManuelM
                Manuel
                last edited by Manuel

                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

                1 Reply Last reply Reply Quote 0
                • F
                  FilipM
                  last edited by

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

                  /Filip

                  1 Reply Last reply Reply Quote 0
                  • ManuelM
                    Manuel
                    last edited by

                    hello,

                    if you can give us feedback that would be awesome.

                    Cheers
                    Manuel

                    MAXON SDK Specialist

                    MAXON Registered Developer

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post