Christopher R. Halbersma wrote:
> int main(int argc, char **argv) {
>   /*Window *window = new Window(300, 180);                    <-- COMMENTED 
> OUT: START
>   window->begin();
>   Widget *box = new Widget(20, 40, 260, 100, "Hello, World!");
>   box->box(UP_BOX);
>   box->labelfont(HELVETICA_BOLD_ITALIC);
>   box->labelsize(36);
>   box->labeltype(SHADOW_LABEL);
>   window->end();
>   window->show(argc, argv);*/                                 <-- COMMENTED 
> OUT: END
>   return 0;//run();
> }
> 
> And I came up with these errors on compile
> 
> /usr/lib/crt1.o(.text+0x85): In function `_start':
> : undefined reference to `main'

        Also, if you're commenting out all the code except
        the return, essentially you just have:

int main() {
    return 0;
}

        ..then if that can't compile and link, for sure somethings
        gotta be very wrong with the compile/link lines.

        My guess is you're not linking your own app if it can't
        even find main() during linking.
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to