www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Build Problems

↑ ↓ ← "Björn Sonntag" <pug1975 gmx.de> writes:
Hello NG,

i've some big problems with the DM C++ Compiler ... i have portted a project
from Watcom 11.X to DM. This Project uses the DosExtender.
Now when i build the Program in the final step following errors occurs :

cx.obj ..... Symbol Undefined __x386_start
cx.obj ..... Symbol Undefined __x386_data_16_alias
cx.obj ..... Symbol Undefined __x386_dbg_hook
cx.obj ..... Symbol Undefined __x32_link_in_x32_lib

sdx.lib ..... Symbol UnDefined __x386_memlock
sdx.lib ..... Symbol UnDefined __x386_memunlock

Can you help me ???
Thx

Bjoern
Jun 01 2004
↑ ↓ "Walter" <newshound digitalmars.com> writes:
You need to download the dos extender libraries from www.dosextender.com.

"Björn Sonntag" <pug1975 gmx.de> wrote in message
news:c9i763$1dgp$1 digitaldaemon.com...
 Hello NG,

 i've some big problems with the DM C++ Compiler ... i have portted a

 from Watcom 11.X to DM. This Project uses the DosExtender.
 Now when i build the Program in the final step following errors occurs :

 cx.obj ..... Symbol Undefined __x386_start
 cx.obj ..... Symbol Undefined __x386_data_16_alias
 cx.obj ..... Symbol Undefined __x386_dbg_hook
 cx.obj ..... Symbol Undefined __x32_link_in_x32_lib

 sdx.lib ..... Symbol UnDefined __x386_memlock
 sdx.lib ..... Symbol UnDefined __x386_memunlock

 Can you help me ???
 Thx

 Bjoern

Jun 01 2004
↑ ↓ "Björn Sonntag" <pug1975 gmx.de> writes:
i have the dosextender ;-) i found the mistake ... i have forgotten to link
the x32.lib to the project ....

Now the project is built but i can't start it ... when i call it then
nothing happend.

Source :

#include <iostream.h>

void main(void)
{
    cout << "Hello World!" << endl;

}


OS : DOS 6.22 .... RAM 256 MB .... conv Mem : 487 kb .

config.sys :

device=c:\dos\himem.sys
rem device=c:\dos\emm386.exe /noems
BUFFERS=30
FILES=40
STACKS=9,256
LASTDRIVE=Z
dos=high,umb
SHELL=c:\COMMAND.COM c:\ /P /E:1024
rem devicehigh=C:\NET\ifshlp.sys


autoexec.bat :

echo off
PATH = c:\;c:\dos;c:\tools;c:\novell;c:\spc4
\dos\KEYB GR,,\dos\KEYBOARD.SYS
\dos\doskey
prompt $p$_$g

Thanks

bjoern
Jun 02 2004
↑ ↓ Heinz Saathoff <hsaat despammed.com> writes:
Bj=F6rn Sonntag schrieb...
 i have the dosextender ;-) i found the mistake ... i have forgotten to li=

 the x32.lib to the project ....
=20
 Now the project is built but i can't start it ... when i call it then
 nothing happend.
=20
 Source :
=20
 #include <iostream.h>
=20
 void main(void)
 {
     cout << "Hello World!" << endl;
=20
 }

Works here! I compiled and linked it this way: dmc -c -mx hw.cpp link E:\X32\LIB\cx+hw,hw,,E:\X32\LIB\x32; When you run it I would expect the correct output (here Hello World!) or=20 some other message due to a crash. No message at all seems a bit=20 strange. - Heinz
Jun 03 2004
↑ ↓ "Björn Sonntag" <pug1975 gmx.de> writes:
 Works here! I compiled and linked it this way:

Yes with very simple project that contains 1 file works that ... but the project which i ported to DM have nearly 200 files .... so i work with the idde ... i build the program successful but when i start the program nothing happend .... really nothing ... the Computer works but none crt output appears. ... Thank you .... if it possible to compile the whole project in an other way ? I my past work i work with VC++ under Windows ... there were not so strange things. Bjoern
Jun 07 2004
"Walter" <newshound digitalmars.com> writes:
"Björn Sonntag" <pug1975 gmx.de> wrote in message
news:ca20j7$6rg$1 digitaldaemon.com...
 Works here! I compiled and linked it this way:

Yes with very simple project that contains 1 file works that ... but the project which i ported to DM have nearly 200 files .... so i work with the idde ... i build the program successful but when i start the program nothing

 .... really nothing ... the Computer works but none crt output appears.

 Thank you .... if it possible to compile the whole project in an other way

 I my past work i work with VC++ under Windows ... there were not so

 things.

So if one file works, and 200 fails, can you try whittling down the project until just what gets added that causes it to fail becomes clear?
Jun 07 2004
↑ ↓ "Björn Sonntag" <pug1975 gmx.de> writes:
 So if one file works, and 200 fails, can you try whittling down the

 until just what gets added that causes it to fail becomes clear?

Hmm i don't think so ... this program is original from 1986 ... in the following years many programmers have advanced the code ... the simple way is that i build the project completely new ... but that is too expensive .... when i compile just the simple program "Hello World" with the IDDE than the program doesn't work ... only when i build it with sc or the dmc command ... ------------ other question ... works the OpenGL Port of DM with the pure DOS Operating System ? i need a graphical Lib as soon as possible .... i haven't found any with works with dm .... Thanks Bjoern
Jun 08 2004
↑ ↓ "W³odzimierz Skiba" <abx abx.art.pl> writes:
"Björn Sonntag" <pug1975 gmx.de> wrote in
news:ca4cnr$15t5$1 digitaldaemon.com: 
 other question ... works the OpenGL Port of DM with the pure DOS
 Operating System ? i need a graphical Lib as soon as possible .... i
 haven't found any with works with dm ....

Sorry for being off-topic regarding DM, but MGL of SciTech works with DJGPP and Open Watcom. http://www.scitechsoft.com/products/dev/mgl_features.html ABX
Jun 08 2004
↑ ↓ "Björn Sonntag" <pug1975 gmx.de> writes:
 Sorry for being off-topic regarding DM, but MGL of SciTech works with

 and Open Watcom. http://www.scitechsoft.com/products/dev/mgl_features.html

That's right but Openwatcom can not use the stl in any form .... this is the reason why we use the dm yet. Thankx
 ABX

Jun 08 2004
↑ ↓ → "W³odzimierz Skiba" <abx abx.art.pl> writes:
"Björn Sonntag" <pug1975 gmx.de> wrote in
news:ca4nhn$1pn9$1 digitaldaemon.com: 
 Sorry for being off-topic regarding DM, but MGL of SciTech works with 


 and Open Watcom.
 http://www.scitechsoft.com/products/dev/mgl_features.html 

That's right but Openwatcom can not use the stl in any form .... this is the reason why we use the dm yet.

That depends on what part of stl do you want. If std::string is sufficient then you can choose route through wxWidgets http://www.wxwidgets.org/manuals/2.5.2/wx_wxstring.html#wxstringat wxBase part of wxWidgets should be likable with any other application regardles of console/GUI nature. I was able to build wxMGL port of wxWidgets for DOS some time ago but I never played with it deeper. ABX
Jun 08 2004
→ Heinz Saathoff <hsaat despammed.com> writes:
Bj=F6rn Sonntag schrieb...
 Yes with very simple project that contains 1 file works that ... but the
 project which i ported to DM have nearly 200 files .... so i work with th=

 idde ...
 i build the program successful but when i start the program nothing happe=

 .... really nothing ... the Computer works but none crt output appears. .=

=20
 Thank you .... if it possible to compile the whole project in an other wa=

 I my past work i work with VC++ under Windows ... there were not so stran=

 things.

In another message you say that the programs don't work when built with=20 the IDE. Ok, why not use makefiles (I alwas do this because I have more=20 control and trust them more than all the IDE settings) and running make=20 from a command window.=20 A great help in creating a simple makefile might be the program=20 MAKEDEP.EXE - Heinz
Jun 09 2004