c - illegal implicit conversion of unsigned pointers -


why compiles:

char * tst1=0; short * tst2=0; tst1=tst2; tst2=tst1; 

but not:

unsigned char * tst1=0; unsigned short * tst2=0; tst1=tst2; tst2=tst1; 

this example show compilation error get. porting project older ide newer eclipse based ide , used compile not on eclipse ide.

basically, there bunch of implicit conversions used compile illegal. know reasons , possible workaround on eclipse make warning again.

the reason different parameters passed eclipse c compiler. try finding them in previous ides configuration or them output window. if current ide based on eclipse, should able update compiler settings without problems (as configurable on eclipse , insane not let change such setting...).


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -