Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    Can't shake these errors in Xcode!

    Scheduled Pinned Locked Moved SDK Help
    13 Posts 0 Posters 1.0k Views
    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.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 10/09/2008 at 06:13, xxxxxxxx wrote:

      Robert, do you do something like this:

      Ltd_ShaderTreeNodeInput = xx;

      at any point outside of a function? The ISO C++ thing is about assigning values outside of functions (IE, inside class definitions as defaults for member variables). Moving the assignment to inside the constructor might help. Incidentally this error does not make sense to me, either. I never ran into it before Leopard. I think there's some switch you can flip to turn off this checking but I have no idea what that might be.

      Can you replicate the error messages with new test cases? For example, have you tried writing a much simpler plugin just to see if it compiles?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 10/09/2008 at 06:19, xxxxxxxx wrote:

        Hi Robert,

        As kattkieru already mentioned it would help very much if you could provide some simplified source code. Thanks

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 10/09/2008 at 10:45, xxxxxxxx wrote:

          Of a project with a 164 source files (not including res resource, strings, and headers)? Eeeks.

          No, I don't do something like that. I do this (code snippet) :

          > // CLASS: Ltd_ShaderTreeNodeInput \> class Ltd_ShaderTreeNodeInput \> { \>      private: \>           String                              name; \>           String                              node; \>           String                              file; \>           Vector                              value; \>      public: \>           Ltd_ShaderTreeNodeInput(); \>           ~Ltd_ShaderTreeNodeInput(); \>           void                              SetName(String nam); \>           String                              GetName(); \>           Vector                              GetValue(); \>           String                              GetNode(); \>           String                              GetFile(); \>           Ltd_ShaderTreeNodeInput\*     SearchByName(Ltd_ShaderTreeNodeInput\* start, Ltd_ShaderTreeNodeInput\* end, String sname); \>           BOOL                              Parse(FileReader\* filereader, StringTokenizer\* tokenreader); \>           BOOL                              ParseInput(StringTokenizer\* tokenreader); \> }; \> \> // CLASS: Ltd_ShaderTreeNode \> class Ltd_ShaderTreeNode \> { \>      private: \>           String                              name; \>           String                              type; \>           Ltd_ShaderTreeNodeInput\*     nodeInput; \>           Ltd_ShaderTreeNodeInput\*     lastNodeInput; \>      public: \>           Ltd_ShaderTreeNode(); \>           ~Ltd_ShaderTreeNode(); \>           void                              Init(String typ, String nam); \>           String                              GetName(); \>           String                              GetType(); \>           Ltd_ShaderTreeNode\*               SearchByName(Ltd_ShaderTreeNode\* start, Ltd_ShaderTreeNode\* end, String sname); \>           Ltd_ShaderTreeNode\*               SearchByType(Ltd_ShaderTreeNode\* start, Ltd_ShaderTreeNode\* end, String ntype); \>           Ltd_ShaderTreeNodeInput\*     SearchNodeInputByName(String niname); \>           BOOL                              Parse(FileReader\* filereader, StringTokenizer\* tokenreader, String typ, String nam); \> };

          Remember, this isn't a code issue. I've already built this same exact code 14 other times just the other day (Windows VS 6.0, VS 2005, VS2005 64-bit, CodeWarrior, Xcode 2.4.1) - no errors, no warnings. So, I suspect there is some issue in the Xcode project settings or something missed in the install or who knows.

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 10/09/2008 at 12:15, xxxxxxxx wrote:

            You are NOT going to believe this. Somehow a 'g' character got added as the first character of the header file in question (in front of the top header comment). I checked my other code and this isn't there. Weird. It may have been during a 'find next' with Cmd-G and the Cmd didn't get typed but the 'g' did - I was doing a manual search and replace to remove Carbon references so the file was saved with the changes. Deleted this spurious character and now those errors are kaput.

            Back to hell for me. 🙂

            1 Reply Last reply Reply Quote 0
            • H Offline
              Helper
              last edited by

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 10/09/2008 at 12:23, xxxxxxxx wrote:

              Howdy,

              > Quote: Originally posted by kuroyume0161 on 10 September 2008
              >
              > * * *
              >
              > Somehow a 'g' character got added as the first character of the header file in question
              >
              > * * *

              Hehe, I hate when that happens. :oD

              Adios,
              Cactus Dan

              1 Reply Last reply Reply Quote 0
              • H Offline
                Helper
                last edited by

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 11/09/2008 at 01:34, xxxxxxxx wrote:

                mystery solved 🙂

                cheers,
                Matthias

                1 Reply Last reply Reply Quote 0
                • H Offline
                  Helper
                  last edited by

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 11/09/2008 at 04:30, xxxxxxxx wrote:

                  wow, I was impatiently awaiting an answer to this...always those 1 letter problems. 🙂

                  1 Reply Last reply Reply Quote 0
                  • H Offline
                    Helper
                    last edited by

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 11/09/2008 at 06:28, xxxxxxxx wrote:

                    The worst part is that it was in cloaking mode. In Xcode, next to my header comment, like this:

                    g/////////////////////////////////
                    // text, blah, blah
                    /////////////////////////////////

                    Unless you are really looking, it blends in well. 🙂

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      Helper
                      last edited by

                      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                      On 11/09/2008 at 07:43, xxxxxxxx wrote:

                      uh, ouch 😉

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        Helper
                        last edited by

                        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                        On 11/09/2008 at 07:47, xxxxxxxx wrote:

                        argh, ouch hits the spot. 😉

                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          Helper
                          last edited by

                          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                          On 11/09/2008 at 08:19, xxxxxxxx wrote:

                          But what I wonder shouldn't had the compiler complained with a syntax error or undeclared identifier with the line of your source code?

                          cheers,
                          Matthias

                          1 Reply Last reply Reply Quote 0
                          • H Offline
                            Helper
                            last edited by

                            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                            On 11/09/2008 at 08:40, xxxxxxxx wrote:

                            That's what I would have expected also but it just went flippy with the other errors.

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