BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Problem with 5.5 commandline tools(Turbo incremental Lin

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools)
View previous topic :: View next topic  
Author Message
Ed Mulroy [TeamB]
Guest





PostPosted: Sat Jan 03, 2004 3:10 am    Post subject: Re: Problem with 5.5 commandline tools(Turbo incremental Lin Reply with quote



One man who had that pair of errors got rid of them by rebootong Win98. His
guess as to why was that Win98 doesn't do a very good job of handling memory
and wouldn't give the linker as much memory as it wanted.

While I agree with that, if you are calling the linker yourself I also think
this might help. Add the option /Gn to the ilink32 command line to suppress
the generation of state files (*.il? files).

.. Ed

Quote:
nuclearjoker wrote in message
news:3ff5fee9$1 (AT) newsgroups (DOT) borland.com...

I've tried everything in my ability to figur out this problem.
I have installed both updates that are given on this site but
it didn't seem to take an effect. the error goes as follows :

! Fatal: Error detected (LME279)
! Fatal: Error detected (LME347)

with both VIDE and Interface_C.
Help would be apreciated; thanks.



Back to top
Cactus
Guest





PostPosted: Sat Jan 03, 2004 5:16 am    Post subject: Re: Problem with 5.5 commandline tools(Turbo incremental Lin Reply with quote




Quote:
guess as to why was that Win98 doesn't do a very good job of handling
memory
and wouldn't give the linker as much memory as it wanted.

Really? in 128 MB memory machine, Win98 have 64 MB free memory. when the
machine install Win9x, the free memory only 10 MB. I still use Win98(updated
IE6 SP1, MPlayer 9 and patched).



Back to top
Ed Mulroy [TeamB]
Guest





PostPosted: Sat Jan 03, 2004 2:55 pm    Post subject: Re: Problem with 5.5 commandline tools(Turbo incremental Lin Reply with quote



FYI: 128 M is not a lot of memory. Win98 itself uses more than half of
that (Win95 with IE5 takes >80M without MPlayer and both Win98 and IE6 are
bigger). The 64M free that you speak of is what is free from the total of
memory and virtual memory on the disk. On my 128M Win98 machine I set up a
128M fixed swap file to get more stability.

Memory has gotten cheap these days. If I were still running Win98 I'd
probably load in as much memory as the mother board would hold. My wife's
Win98SE machine has 192M, the motherboard's limit, and the change helped a
lot.

I looked up our machines on Crucial ([url]http://www.crucial.com/)[/url], saw the types
of memory and how much could fit and ordered it. At least look up your
machine there to see what kind of memory (SDRAM, DDR, PC133, PC100, parity
or no parity etc) and how much your machine can take and what kind of price
it might cost. Crucial is not the absolute cheapest but I like them because
there's no question about quality (they don't buy memory from others, they
manufacture it themselves).

With 128M of memory the machine does a lot of swapping between disk and
memory during a compile and link of any but the smallest program. Other
limitations are independent of how much memory in the machine. As I
remember it Win98 is built on a 16 bit foundation and limits the resource
record table to a 64K segment (one each for GDI and data memory tables). It
does not take a huge program for the number of selectors allocated during
the linker's allocations to fill the table. I was a Win98 fan until my
machine died and the replacement had Win2K. The difference in stability
between a 128M Win98 machine and a Win2K or XP machine suprised me. My
replacement machine came with Win2K and 128M (and Win2K is much bigger than
Win98). Even with 128M the stability was much greater. I upgraded to XP
Pro and increased the memory to 512M and am very happy with its performance.
My wife's Win98SE machine now annoys me <g>

.. Ed

Quote:
Cactus wrote in message
news:3ff6503a (AT) newsgroups (DOT) borland.com...

guess as to why was that Win98 doesn't do a very good
job of handling memory and wouldn't give the linker as
much memory as it wanted.

Really? in 128 MB memory machine, Win98 have 64 MB free
memory. when the machine install Win9x, the free memory
only 10 MB. I still use Win98(updated IE6 SP1, MPlayer 9
and patched).



Back to top
Ed Mulroy [TeamB]
Guest





PostPosted: Sat Jan 03, 2004 9:16 pm    Post subject: Re: Then seems to be something else Reply with quote

The gentleman who lists his name as 'cactus' jumped in with a reply saying
Win98 was being used. I did not notice that the message was from a
different person.

I run XP Pro which is essentially XP Home with a couple of different
settings. The LME* errors seem to be related to out of memory isues.

The out of memory can reflect the inability to get enough memory from the
OS, and if you are running with 128M of RAM and/or with not much free disk
space you'd probably get it more quickly under XP than under Win98 because
XP uses more memory.

The out of memory can also be because the linker ran up against the limits
of one of its internal tables. I know that the linker in C++ Builder 6
expanded some table space, expanded what size *.TDS file it can handle and
increased the allowable size of resources (1 Meg bitmaps can now be linked).

If you are using the free compiler (the 5.5 compiler) then you are using the
command line tools form C++ Builder 5 so retain the old limitations. If you
are using that then at some point it might be worth considering offloading
some of the code to a DLL.

.. Ed

Quote:
nuclearjoker wrote in message
news:3ff72ae0$1 (AT) newsgroups (DOT) borland.com...

Thanks on te quick response!

But the funny thing is that I am not run win98 but
Xp-Home edition. Anything you guys know on that ?




Back to top
Ed Mulroy [TeamB]
Guest





PostPosted: Sun Jan 04, 2004 8:51 pm    Post subject: Re: Thanks, still a problem though :) Reply with quote

I agree that the error message does not make sense.

I've seen anyone build a project in the "My Documents" directory before. I
create a directory for each project so that things from multiple projects do
not get mixed together.

Here are some guesses as to things that might cause that message to be
generated are:

- The current version of the *.TDS or *.EXE file is already open,
for instance in the debugger or in the IDE or the helloworld
program is already running
- The file is marked read-only
- The disk is full
- The compiler was installed under a different account/user name
- The current log in does not have administrator or power user privileges

Delete all the project's *.obj, *.il?, *.exe and *.tds files. Check the
list above and correct whatever might be found and try building the project
again.

Here is a screen capture of my building and running the console mode version
from the command line. I don't have version 5.5 on this machine but I
assure you that when I do this on my wife's Win98SE machine with 5.5 it also
builds and runs correctly.

---------------------------

C:ProjectshelloHelloCon
Quote:
ver

Microsoft Windows XP [Version 5.1.2600]


C:ProjectshelloHelloCon
Quote:
dir
Volume in drive C has no label.

Volume Serial Number is 323E-11EA

Directory of C:ProjectshelloHelloCon

12/15/2003 06:34 AM <DIR> .
12/15/2003 06:34 AM <DIR> ..
12/05/2003 03:41 PM 66 build.bat
12/15/2003 06:41 AM <DIR> twofiles
12/05/2003 03:38 PM 88 hello_c.c
12/05/2003 03:40 PM 91 hello.cpp
3 File(s) 245 bytes
3 Dir(s) 6,777,077,760 bytes free

C:ProjectshelloHelloCon
Quote:
build

C:ProjectshelloHelloCon
Quote:
bcc32 -WCR -v hello
Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland

hello.cpp:
Turbo Incremental Link 5.64 Copyright (c) 1997-2002 Borland

C:ProjectshelloHelloCon
Quote:
bcc32 -WCR -RT- -x- -v hello_c.c noeh32.lib
Borland C++ 5.6.4 for Win32 Copyright (c) 1993, 2002 Borland

hello_c.c:
Turbo Incremental Link 5.64 Copyright (c) 1997-2002 Borland

C:ProjectshelloHelloCon
Quote:
dir
Volume in drive C has no label.

Volume Serial Number is 323E-11EA

Directory of C:ProjectshelloHelloCon

12/15/2003 06:34 AM <DIR> .
12/15/2003 06:34 AM <DIR> ..
12/05/2003 03:41 PM 66 build.bat
12/15/2003 06:41 AM <DIR> twofiles
12/05/2003 03:38 PM 88 hello_c.c
12/05/2003 03:40 PM 91 hello.cpp
01/04/2004 03:46 PM 63,825 hello.obj
01/04/2004 03:46 PM 131,072 hello.tds
01/04/2004 03:46 PM 8,704 hello.exe
01/04/2004 03:46 PM 1,096 hello_c.obj
01/04/2004 03:46 PM 65,536 hello_c.tds
01/04/2004 03:46 PM 5,632 hello_c.exe
9 File(s) 276,110 bytes
3 Dir(s) 6,776,733,696 bytes free

C:ProjectshelloHelloCon
Quote:
hello
Hello World!


C:ProjectshelloHelloCon
Quote:
hello_c
Hello World!


C:ProjectshelloHelloCon
Quote:

---------------------------


.. Ed

Quote:
nuclearjoker wrote in message
news:3ff87095$1 (AT) newsgroups (DOT) borland.com...

Thanks for that! Ed.(I really don't mean to sound sarcastic)
Since another part of the error I didn't post was :

! Warning: Failed to create state file
C:/Documents and Settings/Jacques/My Documents/
helloworld.tds (error code 0)

Since I am not the sharpest tool in the shed, could you
think of anything else because it gives me this error even
with "Hello World".

Which abselutely doesn't make sense.



Back to top
Ed Mulroy [TeamB]
Guest





PostPosted: Mon Jan 05, 2004 8:01 pm    Post subject: Re: Thanks, still a problem though :) Reply with quote

The linker version is not an issue. Your linker version is 5.00 because you
are using the command line tools from C++ Builder 5 while my screen capture
showed the use of those from version 6. The build you show should work with
any version of C++ Builder.

Quote:
C:ProjectsHELLOW~1>bcc32 -wcr -v helloworld.c

That is not correct.

Try this instead:

bcc32 -WCR -v helloworld.c

Command line options are case sensitive.

Quote:
2 Dir(s) 26,070,720,512 bytes free

26 Gig free, nice meeting you mr rich man! <g>

.. Ed

Quote:
nuclearjoker wrote in message
news:3ff9b544$1 (AT) newsgroups (DOT) borland.com...

Well here we go again I checked everything you
told me I should and everything is order this,
my extract of my console(Damn! I didn't even use a project
and this thing is still buggered up!)
The .tds file you see with the dir is blank.
As you can see my linkers version is 5.00.(can this mean anything ?)
Also I thought about the memory, wich is clearly not the issue
since I have 256mb on my machine.
I treid this on both users(Both administrators) with the same result.
s*$%t this is a though one!Thanks for you help so far
greetingz
NJ

^++++++++++++++++++++++++++++++^

C:ProjectsHELLOW~1>ver

Microsoft Windows XP [Version 5.1.2600]

C:ProjectsHELLOW~1>dir
Volume in drive C is Die Moeder
Volume Serial Number is ECE1-DD71

Directory of C:ProjectsHELLOW~1

2004/01/05 08:48 nm <DIR> .
2004/01/05 08:48 nm <DIR> ..
2004/01/04 09:25 nm 74 helloworld.c
2004/01/05 08:48 nm 1,007 helloworld.obj
2004/01/05 08:48 nm 65,536 helloworld.tds
3 File(s) 66,617 bytes
2 Dir(s) 26,070,720,512 bytes free

C:ProjectsHELLOW~1>del *.obj

C:ProjectsHELLOW~1>del *.tds

C:ProjectsHELLOW~1>bcc32 -wcr -v helloworld.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
helloworld.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Fatal: Error detected (LME279)
Fatal: Error detected (LME347)
Warning: Failed to create state file C:/Projects/HELLOW~1/helloworld.tds
(error
code 0)

C:ProjectsHELLOW~1



Back to top
Ed Mulroy [TeamB]
Guest





PostPosted: Mon Jan 05, 2004 8:04 pm    Post subject: Re: Thanks, still a problem though :) Reply with quote

Didn't you get the hello world examples I posted?
http://www.mulroy.org/hello.zip

Each has its own batch file or make file to build it. For the simplest
there is a batch file called build.bat so all you need to do is say BUILD to
build it.

.. Ed

Quote:
nuclearjoker wrote in message
news:3ff9b544$1 (AT) newsgroups (DOT) borland.com...



Back to top
Steven J Masta
Guest





PostPosted: Fri Jan 09, 2004 11:34 am    Post subject: Re: Problem solved Reply with quote

Nuclear Joker wrote:

Quote:

Okay thanks you guys where right. I restarted in safemode
and logged in as administrator, it worked!(Thought Ed meant
administrators group, sorry)
So now I still have to figure out how login as admin with the welcome
screen.


Ctrl-Alt-Del twice to get login prompt

Steve

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Command Line Tools) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.