Codewarrior problem
-
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.LibLink Error : undefined: 'ReadCharsFromConsole' (code)
Referenced from '__read_console' in MSL_C_Carbon.LibLink Error : undefined: 'RemoveConsole' (descriptor)
Referenced from 'check_console' in MSL_C_Carbon.LibLink Error : undefined: 'InstallConsole' (code)
Referenced from 'check_console' in MSL_C_Carbon.LibI 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 -
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?)
-
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.
-
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!
-
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!
-
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? -
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.
-
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:
or this one:
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!