473,385 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Watcom C

Hello,

I want to tried to use Open Watcom for programming my i188, and I have a
couple of questions.

How do I make simple project compile? I created a project with DOS
target ( " DOS - 16 bit executable (.exe)" ), but it doesn't see
the header files; neither mine nor standard ones.
Output looks like this:
< skip >
Error! E2028: _atexit is an undefined reference
Error! E2028: InitLib_ is an undefined reference
< skip >
The first line belongs to standard function, second one is function of
my device's system library.

How do I contact the developers of Open Watcom?
I can see their emails through bug tracker on the site, but maybe they
can be found on separate newsgroup or here?

Regards,
Nickolai Leschov
Jan 17 '08 #1
5 6174
Nickolai Leschov wrote:
Hello,

I want to tried to use Open Watcom for programming my i188, and I have a
couple of questions.

How do I make simple project compile? I created a project with DOS
target ( " DOS - 16 bit executable (.exe)" ), but it doesn't see
the header files; neither mine nor standard ones.
Output looks like this:
< skip >
Error! E2028: _atexit is an undefined reference
Error! E2028: InitLib_ is an undefined reference
< skip >
The first line belongs to standard function, second one is function of
my device's system library.

How do I contact the developers of Open Watcom?
I can see their emails through bug tracker on the site, but maybe they
can be found on separate newsgroup or here?

Regards,
Nickolai Leschov
I don't know about the second reference, but _atexit() is usally a
function that gets called when the program exits. For embedded platforms
where the program never exits, this can be safely replaced by a dummy
void _atexit(void) { } in your source code.
Jan 17 '08 #2
Arlet Ottens wrote, On 17/01/08 19:25:
Nickolai Leschov wrote:
>Hello,

I want to tried to use Open Watcom for programming my i188, and I have
a couple of questions.
<snip>
I don't know about the second reference, but _atexit() is usally a
function that gets called when the program exits. For embedded platforms
where the program never exits, this can be safely replaced by a dummy
void _atexit(void) { } in your source code.
This could well not be the correct way to do it (it would not be on some
embedded compilers I have used). The correct way could be to get the
code to link to an appropriate version of the standard library. The OP
needs to find whatever support forums exist for Open Watcom, and there
is even a link to such places in the most obvious place which is
http://www.openwatcom.org/index.php/Main_Page which was the first hit
Google gave for "open watcom".

Details on how specific tools work are not topical on comp.lang.c or
comp.lang.c++
--
Flash Gordon
Jan 17 '08 #3

"Nickolai Leschov" <nl******@gmail.comwrote in message
news:fm**********@aioe.org...
Hello,

I want to tried to use Open Watcom for programming my i188, and I have a
couple of questions.

How do I make simple project compile?
Perhaps my sequence can help you out :

1) I updated the wlsystem file in the binw directory with the following
addition:

system begin embedded8086
end

2) I then created a very simple startup (cstart.obj, modified from
src\startup\dos) and small clib (clib88.lib).

3) To compile I do:

wcl -q -c -0 -fpc -mt -s -d0 -od -l=COM myfile.c

4) To link I do:

wlink file myfile.obj name myfile.bin @cc.lk

were cc.lk consist of:

system embedded8086
option NOCASEEXACT
option NODEFAULTLIBS
option map
option stack=1k
format dos com
libfile ...\mystartup\cstart.obj
library ...\myclib\clib88.lib

5) and finally I convert the bin file to Intel hex and upload it to my
board.

Hans
www.ht-lab.com

>I created a project with DOS target ( " DOS - 16 bit executable (.exe)" ),
but it doesn't see
the header files; neither mine nor standard ones.
Output looks like this:
< skip >
Error! E2028: _atexit is an undefined reference
Error! E2028: InitLib_ is an undefined reference
< skip >
The first line belongs to standard function, second one is function of my
device's system library.

How do I contact the developers of Open Watcom?
I can see their emails through bug tracker on the site, but maybe they can
be found on separate newsgroup or here?

Regards,
Nickolai Leschov

Jan 17 '08 #4
HT-Lab wrote:
Perhaps my sequence can help you out :
< skip >
5) and finally I convert the bin file to Intel hex and upload it to my
board.
Thanks for help.
What is your platform? I guess my case is even simpler than this, as I
can link standard c libraries and produce standard dos exe binaries,
only the specific I/O should be done via manufacturer's library.

I simply couldn't build a DOS exe program.

Regards,
Nickolai Leschov
Jan 18 '08 #5

"Nickolai Leschov" <nl******@gmail.comwrote in message
news:fm**********@aioe.org...
HT-Lab wrote:
>Perhaps my sequence can help you out :
< skip >
>5) and finally I convert the bin file to Intel hex and upload it to my
board.
Thanks for help.
What is your platform?
http://www.ht-lab.com/hardware/drigmorn1/drigmorn1.html

Regards,
Hans
www.ht-lab.com

I guess my case is even simpler than this, as I
can link standard c libraries and produce standard dos exe binaries, only
the specific I/O should be done via manufacturer's library.

I simply couldn't build a DOS exe program.

Regards,
Nickolai Leschov

Jan 19 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Philipp Claßen | last post by:
Hallo! Do you think the open watcom compiler will offer fully support of the C++ STL in near future? Thanks, Phil
18
by: Agent Mulder | last post by:
Hi group, I am looking for the BEST C++ compiler that holds the 3f criterium: * free * flat * fast Free means that I am free to sell the software I write with it. Flat means that...
1
by: Spike | last post by:
Can Watcom 1.2 compile it's source to ELF and if so how? TIA!! //SPike
0
by: Basat | last post by:
I need to purchase Watcom c/c++ version 10.5 compiler. If you have a used copy, just email me the price. I need license and the old cd or disk etc. regards Basat Khalifa...
1
by: just4me | last post by:
I would like to access the bios flash using watcom c. To start, I would like to be able to read the entire bios and back it up into a file. I can do everything except reading the bios flash. Any...
1
by: bine | last post by:
Sorry, I found a lot of old stuff, even kind of flamewars about good+bad style whatsoever.. I simply want any hint that works! I try to migrate older stuff from NT and newer stuff from...
3
by: Vincent | last post by:
Hello, I'm sorry if this is a little OT, but I've posted this on the Open Watcom user group but still haven't gotten any replies. It is like they are ignoring me. Maybe there is Open Watcom...
6
by: Nickolai Leschov | last post by:
Hello, I want to tried to use Open Watcom for programming my i188, and I have a couple of questions. How do I make simple project compile? I created a project with DOS target ( " DOS - 16 bit...
7
by: Nickolai Leschov | last post by:
Does anyone at all use Open Watcom? I have a couple of issues I have to iron out before I can get to work. The newsgroup seems to be long dead (server doesn't respond) Nickolai
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.