SCOUG-HELP Mailing List Archives
Return to [ 09 |
January |
2002 ]
<< Previous Message <<
>> Next Message >>
6
=====================================================
If you are responding to someone asking for help who
may not be a member of this list, be sure to use the
REPLY TO ALL feature of your email program.
=====================================================
This is a multi-part message in MIME format.
Content Type: text/plain
Content-Transfer-Encoding: 7bit
My previous problem trying to compile and link a simple Watcom C example
problem has now been solved. Thanks to Steven for pointing me to the
os2286.lib and os2386.lib files and the LIB environmental variable.
Now, back to my original problem. I'm trying to follow the C/C++
tutorial in the "Getting Started" online help book. I got as far as
creating a new target, BUTTON.TGT. However, when I try to make the
target, using the procedure in the tutorial, I get a bunch of errors
(just as before). Attached please find a couple of the files, created
from that process.
Does anyone have any ideas as to what's wrong. Steven, especially, I
hope that you can help me. Thanks for your help.
HCM
Content Type: text/plain
name="btnos2.err"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="btnos2.err"
..\btnos2.c(23): Error! E1055: Unable to open 'os2.h'
..\button.h(24): Error! E1009: Expecting ',' but found 'parent'
..\button.h(24): Error! E1116: An id list not allowed except for function definition
..\button.h(28): Error! E1022: Missing or misspelled data type near 'ULONG'
..\button.h(28): Error! E1009: Expecting ',' but found 'parent'
..\button.h(28): Error! E1116: An id list not allowed except for function definition
..\button.h(30): Error! E1009: Expecting ',' but found 'mp1'
..\button.h(30): Error! E1116: An id list not allowed except for function definition
..\btnos2.c(26): Error! E1009: Expecting ',' but found 'hwnd'
..\btnos2.c(28): Error! E1011: Symbol 'HBITMAP' has not been declared
..\btnos2.c(28): Error! E1009: Expecting ';' but found 'bmp'
..\btnos2.c(29): Error! E1011: Symbol 'BITMAPINFOHEADER' has not been declared
..\btnos2.c(29): Error! E1009: Expecting ';' but found 'bitmap'
..\btnos2.c(30): Error! E1011: Symbol 'HPS' has not been declared
..\btnos2.c(30): Error! E1009: Expecting ';' but found 'hps'
..\btnos2.c(32): Error! E1011: Symbol 'hwnd' has not been declared
..\btnos2.c(33): Error! E1011: Symbol 'hps' has not been declared
..\btnos2.c(33): Error! E1011: Symbol 'HWND_DESKTOP' has not been declared
..\btnos2.c(34): Error! E1011: Symbol 'bmp' has not been declared
..\btnos2.c(34): Error! E1011: Symbol 'ULONG' has not been declared
..\btnos2.c(34): Error! E1009: Expecting ')' but found 'id'
..\btnos2.c(34): Warning! W302: Expression is only useful for its side effects
..\btnos2.c(34): Warning! W302: Expression is only useful for its side effects
..\btnos2.c(34): Error! E1009: Expecting ';' but found ')'
..\btnos2.c(37): Error! E1011: Symbol 'bitmap' has not been declared
..\btnos2.c(37): Error! E1032: Expression for '.' must be a 'structure' or 'union'
..\btnos2.c(39): Error! E1011: Symbol 'pwidth' has not been declared
..\btnos2.c(39): Error! E1147: Too many errors: compilation aborted
Content Type: text/plain
name="button.mk1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="button.mk1"
!define BLANK ""
c:\watcom\samples\ide\os2\btnos2.obj : c:\watcom\samples\ide\btnos2.c .AUTOD&
EPEND
@c:
cd c:\watcom\samples\ide\os2
*wcc386 ..\btnos2.c -i=C:\WATCOM\h;C:\WATCOM\h\os2 -w4 -e25 -zq -od -d2 -5r&
-bt=os2 -mf
c:\watcom\samples\ide\os2\button.lib : c:\watcom\samples\ide\os2\btnos2.obj &
.AUTODEPEND
@c:
cd c:\watcom\samples\ide\os2
%create button.lb1
!ifneq BLANK "btnos2.obj"
@for %i in (btnos2.obj) do @%append button.lb1 +'%i'
!endif
!ifneq BLANK ""
@for %i in () do @%append button.lb1 +'%i'
!endif
*wlib -b -c -n -q -p=512 button.lib @button.lb1
Content Type: text/plain
name="button.tgt"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="button.tgt"
40
targetIdent
0
MProject
1
MComponent
0
2
WString
3
LIB
3
WString
5
o_2so
1
0
1
4
MCommand
0
5
MCommand
0
6
MItem
10
button.lib
7
WString
3
LIB
8
WVList
0
9
WVList
0
-1
1
1
0
10
WPickList
2
11
MItem
3
*.c
12
WString
4
COBJ
13
WVList
0
14
WVList
0
-1
1
1
0
15
MItem
11
..\btnos2.c
16
WString
4
COBJ
17
WVList
0
18
WVList
0
11
1
1
0
<< Previous Message <<
>> Next Message >>
Return to [ 09 |
January |
2002 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.
|