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

    strange error

    Scheduled Pinned Locked Moved SDK Help
    7 Posts 0 Posters 486 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 07/05/2009 at 11:49, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   r11 
      Platform:      
      Language(s) :     C++  ;

      ---------
      heya, i get an error i dont understand:

      > `

        
      \>  Vector count = bc->GetVector(SC_COUNT);  
      \>    
      \>       for (int i=0;i<count.x;i++)  
      \>       {                 
      \>            for (int j=0;j<count.y;j++)  
      \>            {  
      \>                 for (int k=0;k<count.z;k++);  
      \>                 {       
      \>                      temp += i + j + k;  
      \>                 }  
      \>            }  
      \>       }  
      \>  
      

      `

      gives me
      error C2065: 'k': nichtdeklarierter Bezeichner

      what exactly is wrong there??

      thanks for helping me here..

      (btw, seems the email notifier of this forum is not working?? too bad it seems that this counts for the password recovery, too)

      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 07/05/2009 at 12:11, xxxxxxxx wrote:

        Hi,

        maybe you should remove the ';' at the end of this line :

        > <code>
        > ..
        > for (int k=0;k<count.z;k++);
        > ..
        > </code>

        this type of error is hard to spot and can really drive you mad 😉

        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 07/05/2009 at 13:15, xxxxxxxx wrote:

          omg.. i am getting blind 🙂 thanks for seeing it

          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 07/05/2009 at 18:50, xxxxxxxx wrote:

            Yeah, like if you forget the ";" at the end of an enum in the plugin's .h file. Suddenly you get hundreds of compiler errors that lead you anywhere, but not to the missing ";".

            C++ can be so much fun ^_^

            Cheers,
            Jack

            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 07/05/2009 at 20:21, xxxxxxxx wrote:

              Come on! C++ is an adventure, a quest, well, nevermind... 😉

              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 08/05/2009 at 06:13, xxxxxxxx wrote:

                I know 😄
                That's why I love it!

                You can write code for 30 years, and still learn something new once in a while, I guess.

                Greetings,
                Jack

                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 08/05/2009 at 06:38, xxxxxxxx wrote:

                  yeah, for example i always discover lots of new ways to produce errors, when i'm on a late night coding session 😉

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