Bug #11150 2007-05-23 04:55

cker

another bug with watcom linker...

When i use the newest cb nightly builds and open watcom 1.6 to build a console exe under windows , i found cb cannot sussusful link it.

The error mesage is :

C:\Users\CKER\Desktop\rnn>wlink.exe option quiet system nt LIBP C:\watcom\lib386;C:\watcom\lib386\nt; file obj\Release\main.obj name bin\Release\rnn.exe

Error! E2028: __compiled_under_NT is an undefined reference

it seems cb want to generate a win32 cosole exe,but cannot link the correct system objs. it looks a little strange.

after some test, i found the LIBP order should be as follows:

wlink.exe .... LIBP C:\watcom\lib386\nt; .............

you should put "C:\watcom\lib386\nt" into the first postion. otherwise the linker cannot work.

please fix it.!

Category
Compiler
Group
 
Status
Closed
Close date
2007-06-16 12:57
Assigned to
biplab
biplab 2007-06-11 10:12

I couldn't reproduce this bug.

biplab 2007-06-16 12:57

Report is closed.

Note: This is a preformatted standard message.

Possible reasons for closing this report are:

* the developer in charge of the issue

- could not reproduce it despite trying several times

- did not get sufficient information

- got no reply to an inquiry for specific information

* the report is quite a bit dated of now, and

- no user comments have been added for several weeks

- significant changes have been made to the code

- no other developer could reproduce it either

It is assumed that the problem does not persist and the report

can be closed.

If the problem reappears in future releases, please feel free to

re-open this report and provide precise information on how to

reproduce it.

ID_39344 2007-07-09 21:11

I had the same problem.

It seems to me compiler option -xs is the clue.

If I have it enabled, then I got the same problem.

If not, problem is gone.

I had to modify default.conf to change order

of the libs as it is described here. Then everything

works.

Regards,

Mikhail