Skip to content

Can't compile example #5

@bubnenkoff

Description

@bubnenkoff
C:\c3-lang\c3c.exe compile D:\code\c3-lang\cforms-main\main.c3
1: module cforms;
2:
3: Form* frm;
   ^^^^^
(D:/code/c3-lang/cforms-main/main.c3:3:1) Error: 'Form' could not be found, did you spell it right?

 1: module cforms;
 2:
 3: Form* frm;
 4: Button* b1;
    ^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:4:1) Error: 'Button' could not be found, did you spell it right?

 2:
 3: Form* frm;
 4: Button* b1;
 5: Button* b2;
    ^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:5:1) Error: 'Button' could not be found, did you spell it right?

 3: Form* frm;
 4: Button* b1;
 5: Button* b2;
 6: Button* b3;
    ^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:6:1) Error: 'Button' could not be found, did you spell it right?

 4: Button* b1;
 5: Button* b2;
 6: Button* b3;
 7: Calendar* cal;
    ^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:7:1) Error: 'Calendar' could not be found, did you spell it right?

 5: Button* b2;
 6: Button* b3;
 7: Calendar* cal;
 8: Label* lb;
    ^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:8:1) Error: 'Label' could not be found, did you spell it right?

 6: Button* b3;
 7: Calendar* cal;
 8: Label* lb;
 9: TextBox* tb;
    ^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:9:1) Error: 'TextBox' could not be found, did you spell it right?

 7: Calendar* cal;
 8: Label* lb;
 9: TextBox* tb;
10: ComboBox* cmb;
    ^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:10:1) Error: 'ComboBox' could not be found, did you spell it right?

 8: Label* lb;
 9: TextBox* tb;
10: ComboBox* cmb;
11: CheckBox* cb;
    ^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:11:1) Error: 'CheckBox' could not be found, did you spell it right?

 9: TextBox* tb;
10: ComboBox* cmb;
11: CheckBox* cb;
12: RadioButton* rb1;
    ^^^^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:12:1) Error: 'RadioButton' could not be found, did you spell it right?

10: ComboBox* cmb;
11: CheckBox* cb;
12: RadioButton* rb1;
13: RadioButton* rb2;
    ^^^^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:13:1) Error: 'RadioButton' could not be found, did you spell it right?

11: CheckBox* cb;
12: RadioButton* rb1;
13: RadioButton* rb2;
14: ListBox* lbx;
    ^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:14:1) Error: 'ListBox' could not be found, did you spell it right?

12: RadioButton* rb1;
13: RadioButton* rb2;
14: ListBox* lbx;
15: DateTimePicker* dtp;
    ^^^^^^^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:15:1) Error: 'DateTimePicker' could not be found, did you spell it right?

13: RadioButton* rb2;
14: ListBox* lbx;
15: DateTimePicker* dtp;
16: NumberPicker* np1;
    ^^^^^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:16:1) Error: 'NumberPicker' could not be found, did you spell it right?

14: ListBox* lbx;
15: DateTimePicker* dtp;
16: NumberPicker* np1;
17: NumberPicker* np2;
    ^^^^^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:17:1) Error: 'NumberPicker' could not be found, did you spell it right?

15: DateTimePicker* dtp;
16: NumberPicker* np1;
17: NumberPicker* np2;
18: ProgressBar* pb;
    ^^^^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:18:1) Error: 'ProgressBar' could not be found, did you spell it right?

16: NumberPicker* np1;
17: NumberPicker* np2;
18: ProgressBar* pb;
19: TrackBar* tk;
    ^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:19:1) Error: 'TrackBar' could not be found, did you spell it right?

17: NumberPicker* np2;
18: ProgressBar* pb;
19: TrackBar* tk;
20: TreeView* tv;
    ^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:20:1) Error: 'TreeView' could not be found, did you spell it right?

18: ProgressBar* pb;
19: TrackBar* tk;
20: TreeView* tv;
21: GroupBox* gb;
    ^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:21:1) Error: 'GroupBox' could not be found, did you spell it right?

19: TrackBar* tk;
20: TreeView* tv;
21: GroupBox* gb;
22: ListView* lv;
    ^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:22:1) Error: 'ListView' could not be found, did you spell it right?

21: GroupBox* gb;
22: ListView* lv;
23: int cntr = 1;
24: Timer* tm;
    ^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:24:1) Error: 'Timer' could not be found, did you spell it right?

22: ListView* lv;
23: int cntr = 1;
24: Timer* tm;
25: TrayIcon* ti;
    ^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:25:1) Error: 'TrayIcon' could not be found, did you spell it right?

122:    return 0;
123: }
124:
125: fn void frmOnMouseDown(Control* f, MouseEventArgs* e) {
                            ^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:125:24) Error: 'Control' could not be found, did you spell it right?

127:    ti.showBalloon("My Balloon", "See this balloon message", 3500);
128: }
129:
130: fn void frmMouseDown(Control* c, MouseEventArgs* e) {
                          ^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:130:22) Error: 'Control' could not be found, did you spell it right?

131:    cptf("Mouse hovered %d, %d \n", e.x, e.y);
132: }
133:
134: fn void onB2Click(Control* s, EventArgs* e){
                       ^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:134:19) Error: 'Control' could not be found, did you spell it right?

136:    tm.start();
137: }
138:
139: fn void onTimerTick(Control* f, EventArgs* e) {
                         ^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:139:21) Error: 'Control' could not be found, did you spell it right?

140:    print("Timer ticked...");
141: }
142:
143: fn void btnClick(Control* c, EventArgs* e) {
                      ^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:143:18) Error: 'Control' could not be found, did you spell it right?

149:    };
150: }
151:
152: fn void onMenuClick(MenuItem* m, EventArgs* e) {
                         ^^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:152:21) Error: 'MenuItem' could not be found, did you spell it right?

153:    ptf("menu text (191) %s", m.text);
154: }
155:
156: fn void onTrackChange(Control* m, EventArgs* e) {
                           ^^^^^^^^
(D:/code/c3-lang/cforms-main/main.c3:156:23) Error: 'Control' could not be found, did you spell it right?

C3 0.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions