Compiler error C2664

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: rj (rj_at_)
Date: 07/02/04


Date: Fri, 2 Jul 2004 15:27:40 -0500

I am getting whole lot of Compiler Errors when i try to compile c and h
files compiled under cygwin.
I have to ( i must) port this c files and header files to vc++ 6.0 in order
to develop my program.
These are libIAX2.0 libraries.
i believe its a problem with the compiler.
I can t figure out what setting(s) i need to change in order for these
errors to disapper.
:)

--------------------------

g:\work\cameleon\winpoop.h(21) : warning C4101: 'res' : unreferenced local
variable
g:\work\cameleon\iax.cpp(416) : error C2664: 'sendto' : cannot convert
parameter 2 from 'const void *' to 'const char *'
        Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
g:\work\cameleon\iax.cpp(492) : error C2440: 'initializing' : cannot convert
from 'void *' to 'struct ast_iax2_full_hdr *'
        Conversion from 'void*' to pointer to non-'void' requires an
explicit cast
g:\work\cameleon\iax.cpp(978) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(980) : error C2664: 'send_command' : cannot convert
parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(988) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(989) : error C2664: 'send_command_final' : cannot
convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(996) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(997) : error C2664: 'send_command_final' : cannot
convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1070) : error C2664: 'send_command_transfer' :
cannot convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1078) : error C2664: 'send_command_transfer' :
cannot convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1086) : error C2664: 'send_command_transfer' :
cannot convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1096) : error C2664: 'send_command' : cannot
convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1114) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char [256]' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1116) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1118) : error C2664: 'send_command' : cannot
convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1128) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char [80]' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1137) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char [256]' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1139) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1141) : error C2664: 'send_command' : cannot
convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1153) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1154) : error C2664: 'send_command' : cannot
convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1171) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1172) : error C2664: 'send_command' : cannot
convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1195) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1197) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1203) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1243) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1250) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1252) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1254) : error C2664: 'iax_ie_append_str' : cannot
convert parameter 3 from 'char *' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1265) : error C2664: 'send_command' : cannot
convert parameter 5 from 'unsigned char [1024]' to 'char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
g:\work\cameleon\iax.cpp(1967) : error C2664: 'iax_net_process' : cannot
convert parameter 1 from 'char [65536]' to 'unsigned char *'
        Types pointed to are unrelated; conversion requires
reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.

iax.obj - 32 error(s), 1 warning(s)

Please help

thank you
sincerely
Rj



Relevant Pages