Message from discussion Did the E3033 problem get resolved?
Received: by 10.42.133.135 with SMTP id h7mr21769846ict.4.1320429636175;
Fri, 04 Nov 2011 11:00:36 -0700 (PDT)
From: dpb <n...@non.net>
Subject: Re: Did the E3033 problem get resolved?
Date: Fri, 04 Nov 2011 13:00:29 -0500
Organization: Aioe.org NNTP Server
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:22.214.171.124) Gecko/20110616 Thunderbird/3.1.11
X-Notice: Filtered by postfilter v. 0.8.2
Content-Type: text/plain; charset=windows-1252; format=flowed
On 11/4/2011 12:08 AM, W. eWatson wrote:
> You could put the subroutines in a library thus
> wfl386 /c sub1.for
> wfl386 /c sub2.for
> wlib mylib.lib +sub1.obj +sub2.obj
> Then compile and link mainp.for to the library
> wfl386 mainp.for mylib.lib
> (BTW, what's the /c for?
Do you _never_ read the help files? Or, execute
> and another for a subroutine. Using the IDE, I successfully executed the
> program. There was no obvious way there to create a lib for the
I've told you how to do this several times before, as well, and it's
also in the tutorial you didn't like.
Create a new project for the library you want to make. The IDE will
prompt for the image type to build; select "Lib". Then you reference
that library in whatever project(s) need it just like the libraries are
referenced in the "kitchen" tutorial.
It's the same principle as used in Visual Studio w/ only a very slightly
> ... so I tried the method above. All went well until I executed
> the wlf386 command. I got the E3033 error message and a complaint about
> "Error: ... line 4:directive error near librarymylib.lib". That was
> followed by "Error: linker returned a bad status"
> Later others thought it might be a bug. Someone suggested using
> wfc386/wlink as a workaround, and that ended the thread.
> So what is the right answer? wfc386/link mainp.for mylib.lib
It is a bug. Did a test here. Built a test app and library
The directive file generated was
Note there's a missing space on the library directive--it should be
The same under Watcom V11 works correctly so this somehow got introduced
into the current (or an earlier and is still here) OW build. :(
wfc386 and wlink will work.
For the above
wlib testlib +testlib.obj
wlink system nt name testfor file testfor[.obj] library testfor[.lib]
Normally one makes a make file or uses a batch file rather than all
manually, of course.
I didn't do the IDE version...