SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, 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.

The Southern California OS/2 User Group
USA

SCOUG-HELP Mailing List Archives

Return to [ 07 | January | 2002 ]

<< Previous Message << >> Next Message >>


Date: Mon, 7 Jan 2002 18:33:22 PST7
From: Harry Chris Motin <hmotin@attglobal.net >
Reply-To: scoug-help@scoug.com
To: SCOUG Help <scoug-help@scoug.com >
Subject: SCOUG-Help: Re: WATCOM C Link Errors


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

Sorry, I forgot to attach the file, LinkResult.TXT

HCM
_______________________________________________________________________________________________

Harry Chris Motin wrote:
>
> HELP! My WATCOM C/C++ setup is not quite right. Any help would be muchly
> appreciated.
>
> I'm trying to learn C/C++ and to use the WATCOM download package. I'm
> trying to create a sample 32bit OS/2 program, using the
> C:\WATCOM\SRC\hello.c file and the linker. This is a sample exercise in
> the Watcom C/C++ Programmer's Guide. Following the example in the guide
> I entered the following into a commandline in the C:\WATCOM\SRC
> subdirectory:
>
> wcl386 /l=os2v2 hello.c
>
> All I got was a ton of errors. I captured the log output of the linker
> and put it in the attached file, LinkResult.TXT. The following is just a
> few lines from that file:
>
> Watcom C/C++32 Compile and Link Utility Version 11.0c
> Copyright by Sybase, Inc., and its subsidiaries, 1988, 2000.
> All rights reserved. Watcom is a trademark of Sybase, Inc.
> wcc386 hello.c
> Watcom C32 Optimizing Compiler Version 11.0c
> Copyright by Sybase, Inc., and its subsidiaries, 1984, 2000.
> All rights reserved. Watcom is a trademark of Sybase, Inc.
> hello.c: 6 lines, included 477, 0 warnings, 0 errors
> Code size: 24
>
> WATCOM Linker Version 11.0c
> Copyright by Sybase, Inc., and its subsidiaries, 1985, 2000.
> All rights reserved. Watcom is a trademark of Sybase, Inc.
> loading object files
> searching libraries
> Warning! W1008: cannot open os2386.lib : No such file or directory
> Error! E2028: DosWrite is an undefined reference
> Error! E2028: DosQuerySysInfo is an undefined reference
> Error! E2028: DosSetRelMaxFH is an undefined reference
> Error! E2028: DosExit is an undefined reference
> Error! E2028: DosCloseMutexSem is an undefined reference
> Error! E2028: DosCreateMutexSem is an undefined reference
>
> It goes on with many more errors.
>
> I should not get any errors by linking a sample WATCOM file. Anybody got
> any ideas as to what's wrong? Thanks for your help.
>
> HCM


Content Type: text/plain

name="LinkResult.TXT"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline;
filename="LinkResult.TXT"

Watcom C/C++32 Compile and Link Utility Version 11.0c
Copyright by Sybase, Inc., and its subsidiaries, 1988, 2000.
All rights reserved. Watcom is a trademark of Sybase, Inc.
wcc386 hello.c =

Watcom C32 Optimizing Compiler Version 11.0c =

Copyright by Sybase, Inc., and its subsidiaries, 1984, 2000.
All rights reserved. Watcom is a trademark of Sybase, Inc.
hello.c: 6 lines, included 477, 0 warnings, 0 errors
Code size: 24

=08WATCOM Linker Version 11.0c
Copyright by Sybase, Inc., and its subsidiaries, 1985, 2000.
All rights reserved. Watcom is a trademark of Sybase, Inc.
loading object files
searching libraries
Warning! W1008: cannot open os2386.lib : No such file or directory
Error! E2028: DosWrite is an undefined reference
Error! E2028: DosQuerySysInfo is an undefined reference
Error! E2028: DosSetRelMaxFH is an undefined reference
Error! E2028: DosExit is an undefined reference
Error! E2028: DosCloseMutexSem is an undefined reference
Error! E2028: DosCreateMutexSem is an undefined reference
Error! E2028: DosRequestMutexSem is an undefined reference
Error! E2028: DosReleaseMutexSem is an undefined reference
Error! E2028: DosAllocMem is an undefined reference
Error! E2028: DosFreeMem is an undefined reference
Error! E2028: DosQueryHType is an undefined reference
Error! E2028: DosSetFilePtr is an undefined reference
Error! E2028: DosResetBuffer is an undefined reference
Error! E2028: DosPostEventSem is an undefined reference
Error! E2028: DosCreateEventSem is an undefined reference
Error! E2028: DosCreateThread is an undefined reference
Error! E2028: DosWaitEventSem is an undefined reference
Error! E2028: DosCloseEventSem is an undefined reference
Error! E2028: DosClose is an undefined reference
Error! E2028: DosQueryDBCSEnv is an undefined reference
Error! E2028: DosQueryCp is an undefined reference
Error! E2028: DosDevConfig is an undefined reference
Error! E2028: DosQueryPathInfo is an undefined reference
Error! E2028: DosQueryCurrentDir is an undefined reference
Error! E2028: DosQueryCurrentDisk is an undefined reference
Error! E2028: DosGetInfoBlocks is an undefined reference
Error! E2028: DosDelete is an undefined reference
creating an OS/2 32-bit executable
file clib3r.lib(xmsgo32): undefined symbol DosWrite
file clib3r.lib(maino32): undefined symbol DosQuerySysInfo
file clib3r.lib(maino32): undefined symbol DosSetRelMaxFH
file clib3r.lib(maino32): undefined symbol DosExit
file clib3r.lib(mthread): undefined symbol DosCloseMutexSem
file clib3r.lib(mthread): undefined symbol DosCreateMutexSem
file clib3r.lib(mthread): undefined symbol DosRequestMutexSem
file clib3r.lib(mthread): undefined symbol DosReleaseMutexSem
file clib3r.lib(hdlman): undefined symbol DosSetRelMaxFH
file clib3r.lib(grownear): undefined symbol DosAllocMem
file clib3r.lib(nheapmin): undefined symbol DosFreeMem
file clib3r.lib(isattos2): undefined symbol DosQueryHType
file clib3r.lib(qwrit): undefined symbol DosSetFilePtr
file clib3r.lib(qwrit): undefined symbol DosWrite
file clib3r.lib(lseekos2): undefined symbol DosSetFilePtr
file clib3r.lib(fsync): undefined symbol DosResetBuffer
file clib3r.lib(thredo32): undefined symbol DosPostEventSem
file clib3r.lib(thredo32): undefined symbol DosCreateEventSem
file clib3r.lib(thredo32): undefined symbol DosCreateThread
file clib3r.lib(thredo32): undefined symbol DosWaitEventSem
file clib3r.lib(thredo32): undefined symbol DosCloseEventSem
file clib3r.lib(thredo32): undefined symbol DosExit
file clib3r.lib(_clseos2): undefined symbol DosClose
file clib3r.lib(mbinit): undefined symbol DosQueryDBCSEnv
file clib3r.lib(mbinit): undefined symbol DosQueryCp
file clib3r.lib(chk8087): undefined symbol DosDevConfig
file clib3r.lib(tellos2): undefined symbol DosSetFilePtr
file clib3r.lib(fullpath): undefined symbol DosQueryPathInfo
file clib3r.lib(gtcwdos2): undefined symbol DosQueryCurrentDir
file clib3r.lib(gtcwdos2): undefined symbol DosQueryCurrentDisk
file clib3r.lib(gtpidos2): undefined symbol DosGetInfoBlocks
file clib3r.lib(unlnkos2): undefined symbol DosDelete
Error: Linker returned a bad status


<< Previous Message << >> Next Message >>

Return to [ 07 | 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.