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

    Codewarrior problem

    SDK Help
    0
    8
    616
    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
      Helper
      last edited by

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

      On 26/05/2005 at 13:16, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   9.1 
      Platform:   Windows  ; Mac  ;  
      Language(s) :     C++  ;

      ---------
      Hi,

      I have a really weird compiler problem. I have about 40 plugins of different types in my project and compiling with MSVC works like a charm, but Codewarrior all of a sudden gives me linking errors that I haven´t encountered before and I hope someone in here might have a solution or at least an idea (cause it´s really weird).

      First of here is the error CW spits out:
      Link Error   : undefined: 'WriteCharsToConsole' (code)
      Referenced from '__write_console' in MSL_C_Carbon.Lib

      Link Error   : undefined: 'ReadCharsFromConsole' (code)
      Referenced from '__read_console' in MSL_C_Carbon.Lib

      Link Error   : undefined: 'RemoveConsole' (descriptor)
      Referenced from 'check_console' in MSL_C_Carbon.Lib

      Link Error   : undefined: 'InstallConsole' (code)
      Referenced from 'check_console' in MSL_C_Carbon.Lib

      I have my RegisterXXX calls in main.cpp. They all do work except for 3 calls. When I comment them out, it compiles fine.

      Ok, so, I took a look at my Register functions and they are really that simple:

      Bool RegisterHeightColor(void)  
      {  
           return RegisterShaderPlugin(ID_HEIGHTCOLOR,"Elevation",0,HeightColor::Alloc,"height",0);  
      }
      

      but when I comment out the RegisterShaderPlugin (happens with RegisterObjectPlugin etc. too, so it´s not specific) and simply return TRUE; it also compiles fine.

      But as I said, I have several of such calls in the project for several plugins, so that it doesn´t make any sense. Also commenting out everything in the source file and only have the register call does not compile (so it´s not code specific either).

      This drives me mad for several weeks now and I am just tired of seeking, as I have nothing so far (In the beginning I didn´t even know where this happens).

      I hope anybody has an idea.
      I rebuilt everything too btw. used fresh source files and rewrote the code even manually but no chance.

      Thanks iA
      Katachi

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

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

        On 26/05/2005 at 14:34, xxxxxxxx wrote:

        I'm fairly sure you have a missing library linked, I've had this before but I'm afraid I can't recall what the library was (or if it was definitely this). If I remember right I searched each CW library for the functions missing and linked them in until it worked. Hopefully someone knows the answer for you. CW wants the functions for console output, are you using the console somewhere in your code? (maybe a debug print?)

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

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

          On 26/05/2005 at 16:19, xxxxxxxx wrote:

          You need to include the file 'console_OS_X.c' in your project.

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

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

            On 27/05/2005 at 05:09, xxxxxxxx wrote:

            @David: No, I have no console output anywhere. That was my first guess to, so I removed all console stuff.

            @Kuro: thanks! Where is one supposed to include this in CW? sorry, my main environment is MSVC and am using CW only for compilation, so I don´t know where this is done there. Btw, I am still on Windows here (it´s a cross compile).

            Thank you!

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

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

              On 27/05/2005 at 05:12, xxxxxxxx wrote:

              Got it! It seems to work! I looove you Kuro! 🙂

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

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

                On 27/05/2005 at 05:52, xxxxxxxx wrote:

                Curious why it needs the console functions then, they're also in the libs which really you should link rather than including files, but provided it works, who cares 🙂
                Are you using the standard sdk project files?

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

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

                  On 27/05/2005 at 05:56, xxxxxxxx wrote:

                  yep, am using the standard and haven´t changed a hting (except for bool support activated). That´s the weird thing about it. And the libs are linked. The project compiles absolutely fine in its raw state (so the default sdk projects). All of my other plugins have no problems, and I didn´t have any probs until 9.1 with this plugin either.

                  That´s the reason I have no MAC. 🙂

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

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

                    On 27/05/2005 at 13:09, xxxxxxxx wrote:

                    Hi Katachi,

                    I don't remember specifically, but this is the solution that I found online for this error set. Check the link:

                    Thomas Tongue: Code

                    or this one:

                    iDevGames

                    In my case, I think it was related to the third-party libs being used (zlib and encryption/decryption) that had console calls.

                    One should note that although running in MacOSX and even using CW9, plugins are still targeting MacOS 9 (Classic), which is why the integration of console functionality in X is not taking here.

                    Glad that helped! 🙂

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