i am new to sdcc world, i made a simple program, and the compiler is giving error "initializer element is not constant", pls help me on this. i am attaching the file.
With this line you're creating a new special function bit with name mybit and you try to assign it the value at port pin P1.1 at compile time. That is impossible. Unlearn the (stupid) Keil notation and think pure C. If you want to rename P1_1 then use a macro.