Compile Issues

Status
Not open for further replies.

blantonl

Founder and CEO
Staff member
Super Moderator
Joined
Dec 9, 2000
Messages
11,448
Location
Dallas, TX
troymail,

Make sure you read thru this thread carefully... you want to download and use the older watcom 11.0c compiler.. not the new openwatcom stuff.
 

troymail

Silent Key
Joined
Dec 19, 2002
Messages
9,981
Location
Supply (Lockwood Inlet area), NC
Yes, thanks - I saw that -- when I loaded the 1.2 version,
there is ALOT of stuff installed... including an IDE through which
I can just open the *.prj file and compile....unfortunately,
like everyone else, I find that doesn't create a good executable.

When I install the 11.0c, I'm guessing it is all command line
when it comes to compilation.... if so, what are the command
line parms to build trunker under 11.0c (or did I just miss that
somewhere)?

Troy



EDIT: :D I've got in now... thanks!!!!
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
Compiling etrunker ... and .lnk file problem.

I am looking to compile etrunker and ..

This may sound like a dumb thing .... but when I put the .lnk file in the folder (after renaming it from a .txt file) it is turned into a windows shortcut. Gotta love MS ..

What am I doing wrong ?

Also if someone that has been able to compile the source, could they let me know how they did it ..

I have the folders 'watcom' and the 'etrunker source' backed up ... that was before my pc died running XP Service Pack 2. I am now running Windows 2000. So anything in these 2 folders and subfolders should be ok.

So really I need to know what else to change .. like env variables and how to make the .lnk file not change to a shortcut.

Thanks in advance ..
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
Re: Compiling etrunker ... and .lnk file problem.

edmscan said:
This may sound like a dumb thing .... but when I put the .lnk file in the folder (after renaming it from a .txt file) it is turned into a windows shortcut. Gotta love MS ..

Ignore how Windows Explorer displays the file. Just don't double-click on it or right click to edit it as if it were a shortcut.

Also if someone that has been able to compile the source, could they let me know how they did it ..

You've stumbled upon the right thread. See above.

-rick
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
I got it working .. but there are some typos in the above information. Minor ones ... so anyone should be able to get it to work.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
Etrunker Compile Issues

I am having the following issues with compiling Etrunker ...

Wondering if someone could help me out with this one ??
(My computer died .. thus i need to reinstall everything .. grr)

Warning! W1008: cannot open graph.lib : No such file or directory
Warning! W1008: cannot open math387s.lib : No such file or directory
Warning! W1008: cannot open noemu387.lib : No such file or directory
Warning! W1008: cannot open clib3s.lib : No such file or directory
Warning! W1008: cannot open plbx3s.lib : No such file or directory
Error! E2028: __CHK is an undefined reference
Error! E2028: _dos_getvect is an undefined reference
Error! E2028: _dos_setvect is an undefined reference
Error! E2028: __CHP is an undefined reference
Error! E2028: printf is an undefined reference
Error! E2028: _fltused_ is an undefined reference
Error! E2028: __ppfltused_ is an undefined reference
Error! E2028: __8087 is an undefined reference
Error! E2028: __compiled_under_generic is an undefined reference
Error! E2028: sprintf is an undefined reference
Error! E2028: _settextposition is an undefined reference
Error! E2028: _settextcolor is an undefined reference
Error! E2028: _outtext is an undefined reference
Error! E2028: _IsTable is an undefined reference
Error! E2028: sscanf is an undefined reference
Error! E2028: _settextcursor is an undefined reference
Error! E2028: memset is an undefined reference
Error! E2028: getch is an undefined reference
Error! E2028: exit is an undefined reference
Error! E2028: _wint_thread_data is an undefined reference
Error! E2028: __wcpp_4_fs_handler_rtn_ is an undefined reference
Error! E2028: nosound is an undefined reference
Error! E2028: void near * near operator new( int unsigned ) is an undefined reference
Error! E2028: putch is an undefined reference
Error! E2028: time is an undefined reference


I think it is probably something dumb .. but I don't see what the issue is.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
I had ANOTHER computer crash. My hard drive died and I am trying to compile Etrunker. I am getting the EXACT same problem as I did in 2009 when the above was posted.
Skip ahead 3 years ... to 2012.

I am having the following issues with compiling Etrunker ...

Wondering if someone could help me out with this one ??
(My computer died .. thus i need to reinstall everything .. grr)

I am getting the following errors when I try to compile.
It seems that I am not seeing the lib files ???
which I searched in my computer and they are located in
the C:\watcom\lib286\dos folder and C:\watcom\lib386\dos folders.

The error messages I am getting are as below.

Thanks



Warning! W1008: cannot open graph.lib : No such file or directory
Warning! W1008: cannot open math387s.lib : No such file or directory
Warning! W1008: cannot open noemu387.lib : No such file or directory
Warning! W1008: cannot open clib3s.lib : No such file or directory
Warning! W1008: cannot open plbx3s.lib : No such file or directory
Error! E2028: __CHK is an undefined reference
Error! E2028: _dos_getvect is an undefined reference
Error! E2028: _dos_setvect is an undefined reference
Error! E2028: __CHP is an undefined reference
Error! E2028: printf is an undefined reference
Error! E2028: _fltused_ is an undefined reference
Error! E2028: __ppfltused_ is an undefined reference
Error! E2028: __8087 is an undefined reference
Error! E2028: __compiled_under_generic is an undefined reference
Error! E2028: sprintf is an undefined reference
Error! E2028: _settextposition is an undefined reference
Error! E2028: _settextcolor is an undefined reference
Error! E2028: _outtext is an undefined reference
Error! E2028: _IsTable is an undefined reference
Error! E2028: sscanf is an undefined reference
Error! E2028: _settextcursor is an undefined reference
Error! E2028: memset is an undefined reference
Error! E2028: getch is an undefined reference
Error! E2028: exit is an undefined reference
Error! E2028: _wint_thread_data is an undefined reference
Error! E2028: __wcpp_4_fs_handler_rtn_ is an undefined reference
Error! E2028: nosound is an undefined reference
Error! E2028: void near * near operator new( int unsigned ) is an undefined reference
Error! E2028: putch is an undefined reference
Error! E2028: time is an undefined reference


I think it is probably something dumb .. but I don't see what the issue is.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
Still having the same problem as above .... already pulled all my hair out. I cannot find how to fix the problem, no matter what I try, nothing seems to work.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
Looks like I was actually smart .... I had documented ALL of the needs of Etrunker in order to compile it and had it safely on my computer. Just I didn't know that I had done so back in 2009. Gotta love documentation. I am good to go .. and am so happy now that I am back in business. This thread .. can go back to sleep for another few years.
 

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
For anyone that is still running the older Trunker / Etrunker .. this should help you if you desire to compile the source code.

*************************************************
ASSUME: WATCOM COMPILER INSTALLED AT C:\WATCOM and source code in C:\Wtrunk folder.

(I am using WATCOM C/C++ Version 11.0c Compiler)

AFTER installing compiler .. proceed as below.

*************************************************
STEP 1: PUT CONTENTS BELOW IN FILE NAMED: WLINK.LNK IN C:\WATCOM\BINNT FOLDER
(First put it in a text file and then rename to Wlink.lnk and copy to C:\Watcom\Binnt folder)
*****************************************************

system begin 286
option osname='Windows 16-bit'
libpath C:\WATCOM\lib286
libpath C:\WATCOM\lib286\win
library windows
option stack=8k, heapsize=1k
format windows
end
system begin 386
option osname='Windows NT character-mode'
libpath C:\WATCOM\lib386
libpath C:\WATCOM\lib386\nt

format windows nt
runtime console
end

system begin pmodew
option osname='PMODE/W'
libpath C:\WATCOM\lib386
libpath C:\WATCOM\lib386\dos
op stub=pmodew.exe
format os2 le
end
**************************************************
STEP 2: ENVIRONMENT VARIABLES:
***************************************************

EDPATH C:\WATCOM\eddat
INCLUDE C:\WATCOM\STLPort-4.5.3stlport;C:\WATCOM\h
LIB C:\WATCOM\lib386;C:\WATCOM\lib386\dos
STLPORT_DIR C:\WATCOM\STLPort-4.5.3stlport
WATCOM winbookwatcom
PATH ADD TO EXISTING PATH: C:\WATCOM\binnt;C:\WATCOM\binw

***************************************************
STEP 3: COMPILE.BAT (USED TO RUN THE ACTUAL COMPILE ...)
****************************************************

C:
cd\
cd wtrunk
del etrunk.exe
del etrnk48.exe
C:\watcom\binnt\nmake.exe /f etrunk.mk

*****************************************************
STEP 4: Put the following in Etrunk.mk file in same directory as your source code (ie .. C:\Wtrunk)
***************************************************

.after
pmwsetup /q /B0 etrunk.exe
project : c:\wtrunk\etrunk.exe .SYMBOLIC

!include c:\wtrunk\etrunk.mk1

**********************************************************
STEP 5: Put the following in Etrunk.mk1 file in same directory as your source code .. ie C:\Wtrunk
***********************************************************
!define BLANK ""
c:\wtrunk\comport.obj : c:\wtrunk\comport.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 comport.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\dokey.obj : c:\wtrunk\dokey.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 dokey.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\etrunk.obj : c:\wtrunk\etrunk.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 etrunk.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\freqdisp.obj : c:\wtrunk\freqdisp.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 freqdisp.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\hardware.obj : c:\wtrunk\hardware.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 hardware.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\infoact.obj : c:\wtrunk\infoact.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 infoact.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\inthdlr.obj : c:\wtrunk\inthdlr.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 inthdlr.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\platform.obj : c:\wtrunk\platform.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 platform.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\scanner.obj : c:\wtrunk\scanner.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 scanner.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\scrlog.obj : c:\wtrunk\scrlog.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 scrlog.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\stats.obj : c:\wtrunk\stats.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 stats.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\trunksys.obj : c:\wtrunk\trunksys.cpp .AUTODEPEND
@c:
cd c:\wtrunk
*wpp386 trunksys.cpp -i=c:\WATCOM\h -i=. -w4 -e10 -zp4 -zq -of+ -ol -ol+ -om -oc -oi -or -oe20 -fp3 -fpc -mf -3s -bt=dos -ew -wx -xss

c:\wtrunk\etrunk.exe : c:\wtrunk\comport.obj c:\wtrunk\dokey.obj c:\wtrunk\etrunk.obj c:\wtrunk\freqdisp.obj c:\wtrunk\hardware.obj c:\wtrunk\infoact.obj c:\wtrunk\inthdlr.obj c:\wtrunk\platform.obj c:\wtrunk\scanner.obj c:\wtrunk\scrlog.obj c:\wtrunk\stats.obj c:\wtrunk\trunksys.obj .AUTODEPEND

@c:
cd c:\wtrunk
@%write c:\wtrunk\etrunk.lk1 NAME etrunk
@%append c:\wtrunk\etrunk.lk1 FIL comport.obj,dokey.obj,etrunk.obj,freqdisp.obj,hardware.obj,infoact.obj,inthdlr.obj,platform.obj,scanner.obj,scrlog.obj,stats.obj,trunksys.obj
@%append c:\wtrunk\etrunk.lk1
*wlink SYS pmodew op m op st=30000 op maxe=25 op q op symf op one @etrunk.lk1

copy c:\wtrunk\etrunk.exe c:\wtrunk\etrnk48.exe /y
pmwsetup /q /B0 etrnk48.exe

********************************************
These 5 steps should allow you to compile the source code ...

If you have problems ... you can always PM me.

Thanks
Edmscan.
 
Last edited:

SCPD

QRT
Joined
Feb 24, 2001
Messages
0
Location
Virginia
Haha ... another computer crash. Virus issues ... and have the same problem. So very happy that I have this .. but I know that I also have these instructions on my computer. But this will help .. good planning on my part a long time ago.
 
Status
Not open for further replies.
Top