|
|
Linker error
Hi all
I have a code in file new.txt:
>>
..model tiny
..code
..386
org 100h
Start:
end Start
>>
When I try to link it, an error occurs:
Fatal: 16 bit segments not supported in module new.txt
What does it mean? What should I do?
I am newbie ;--)
--
pozdr. Dygi [GG 1027078]
dygimail(at)poczta(dot)fm
|
|
0
|
|
|
|
Reply
|
Mr
|
1/18/2004 6:41:20 PM |
|
"Mr Dygi" <dygimailNo@SPAMpoczta.fm> wrote in message
news:Xns94749A720AB6Fdygimailpocztafm@127.0.0.1...
> Hi all
>
> I have a code in file new.txt:
>
> >>
> .model tiny
> .code
> .386
> org 100h
>
> Start:
>
> end Start
> >>
>
> When I try to link it, an error occurs:
> Fatal: 16 bit segments not supported in module new.txt
>
> What does it mean? What should I do?
>
> I am newbie ;--)
>
> --
> pozdr. Dygi [GG 1027078]
> dygimail(at)poczta(dot)fm
>
let's see your command lines for assembly and linking...
|
|
0
|
|
|
|
Reply
|
Bx
|
1/18/2004 7:34:29 PM
|
|
"Mr Dygi" <dygimailNo@SPAMpoczta.fm> wrote in message
news:Xns94749A720AB6Fdygimailpocztafm@127.0.0.1...
> Hi all
>
> I have a code in file new.txt:
>
> >>
> .model tiny
> .code
> .386
> org 100h
>
> Start:
>
> end Start
> >>
>
> When I try to link it, an error occurs:
> Fatal: 16 bit segments not supported in module new.txt
>
> What does it mean? What should I do?
>
> I am newbie ;--)
You're not trying to use masm32 are you? Usually you get errors like then
when writing 16-bit code for a 32-bit program. Linux and Windows are both
32-bit. DOS is 16-bit for the most part. (DOS has 32-bit extensions, but I
highly doubt you're using them.)
-Matt
|
|
0
|
|
|
|
Reply
|
Matt
|
1/18/2004 9:20:16 PM
|
|
"Bx. C" <null@the.void> wrote in
news:CHAOb.5333$D%.1298@bignews1.bellsouth.net:
> let's see your command lines for assembly and linking...
tasm32 /t new.txt
tlink32 new.obj
Is this what you are asking for?
--
pozdr. Dygi [GG 1027078]
dygimail(at)poczta(dot)fm
|
|
0
|
|
|
|
Reply
|
Mr
|
1/18/2004 11:08:15 PM
|
|
"Matt Taylor" <para@tampabay.rr.com> wrote in
news:MFCOb.24652$Bj.22349@twister.tampabay.rr.com:
> You're not trying to use masm32 are you? Usually you get errors like
> then when writing 16-bit code for a 32-bit program. Linux and Windows
> are both 32-bit. DOS is 16-bit for the most part. (DOS has 32-bit
> extensions, but I highly doubt you're using them.)
True. I thought I can use 32-bit linker for 16-bit code. But there is
another problem now. When I try to use 16-bit tasm compiler and linker,
these errors occur:
+ tasm /t new.txt =>
bad command or filename
bad command or filename
bad command or filename
[result: file new.obj created]
+ tlink new.obj =>
Error: Invalid entry point offset
Warning: No stack
+ type new.map [DOS shell] =>
Start Stop Length Name Class
00000H 000FFH 00100H _TEXT CODE
00100H 00100H 00000H _DATA DATA
Error: Invalid entry point offset
Program entry point at 0000:0000
Warning: No stack
--
pozdr. Dygi [GG 1027078]
dygimail(at)poczta(dot)fm
|
|
0
|
|
|
|
Reply
|
Mr
|
1/19/2004 9:05:20 AM
|
|
Hi Mr Dygi
You say "I have a code in file new.txt:"
But I can't see your code, I mean there's
no code in your program ???
Or have I missed something here....?
"Mr Dygi" <dygimailNo@SPAMpoczta.fm> wrote in message
news:Xns947550D8C41ADdygimailpocztafm@127.0.0.1...
> "Matt Taylor" <para@tampabay.rr.com> wrote in
> news:MFCOb.24652$Bj.22349@twister.tampabay.rr.com:
>
> > You're not trying to use masm32 are you? Usually you get errors like
> > then when writing 16-bit code for a 32-bit program. Linux and Windows
> > are both 32-bit. DOS is 16-bit for the most part. (DOS has 32-bit
> > extensions, but I highly doubt you're using them.)
>
> True. I thought I can use 32-bit linker for 16-bit code. But there is
> another problem now. When I try to use 16-bit tasm compiler and linker,
> these errors occur:
>
> + tasm /t new.txt =>
>
> bad command or filename
> bad command or filename
> bad command or filename
>
> [result: file new.obj created]
>
> + tlink new.obj =>
>
> Error: Invalid entry point offset
> Warning: No stack
>
> + type new.map [DOS shell] =>
>
> Start Stop Length Name Class
>
> 00000H 000FFH 00100H _TEXT CODE
> 00100H 00100H 00000H _DATA DATA
>
> Error: Invalid entry point offset
> Program entry point at 0000:0000
> Warning: No stack
>
> --
> pozdr. Dygi [GG 1027078]
> dygimail(at)poczta(dot)fm
>
|
|
0
|
|
|
|
Reply
|
SharK
|
1/21/2004 11:34:21 PM
|
|
"SharK" <the_shark_356@hotmail.com> wrote in
news:400ed62f$0$204$edfadb0f@dread12.news.tele.dk:
> You say "I have a code in file new.txt:"
>
> But I can't see your code, I mean there's
> no code in your program ???
> Or have I missed something here....?
Yes. That was a problem. I thought there were no problem to compile and
link source with only main directives, and without main code. In fact
addition main code did nothing. A problem is still but now it's another
error.
Before i tried to use 32 bit tasm to compile 16 bit code. Now i try to
compile using 16 bit tasm, and i have these problems:
dir c:\tasm =>
TASM.EXE
TLINK.EXE
DPMIMEM.DLL
tasm new.asm => ok
tlink /t new.obj => an error occur
Failed to locate protected mode loader <DPMILOAD.EXE>
I've found this file in c:\tasm32 (where I have unpacked tasm32) and I've
copied it to c:\tasm (where I have unpacked tasm16). Sometimes there is no
problem but sometimes is. But unfortunately I forgot what was the problem
and I am waiting when it'll occur again.
ps Why there is a problem with DPMILOAD.EXE file? Some of you don't have
this file and it's all ok. I am using asm in WinXP.
--
pozdr. Dygi [GG 1027078]
dygimail(at)poczta(dot)fm
|
|
0
|
|
|
|
Reply
|
Mr
|
1/22/2004 8:14:31 PM
|
|
|
6 Replies
164 Views
(page loaded in 0.089 seconds)
Similiar Articles: linker error: undefined reference to '_RtlUnwind@16' - comp ...I just installed and tried compiling/linking a basic "hello world" program. When I run the linker I get this error: lcc\lib\lcccrt0.obj .text: undefi... Linker Error: cannot find -lGL [in Cygwin] - comp.graphics.api ...Hi - I'm sure theres' a straightforward answer to this question. I'm trying to link an object file (main.o) with the OpenGL libraries but I'm getting... linker error:'symbol belongs to implicit dependency' - comp.unix ...linker reports lot of errors similar to the following, while producing a shared library: Undefined first referenced symbol ... linker input file unused because linking not done -- compile error ...Hello evryone, I'm stock trting to install DBD-mysql-3.0002_5 on Solaris 9 sun 5.9, compiling with gcc 3.4.2 and perl 5.8.8 compiled with the same gcc... linker symbol binding problem - comp.unix.solarisMy code is calling an api of a third party libary, which is a static library. I got the error that could not find the symbol during linking. However... Dev-C++ and openGL - linker problem and simple how to - comp ...... Project Options ->Parameters -> linker section and input (in this order): -lglut32 -lglu32 -lopengl32 3-Hit compile and get the following errors: [Linker error ... Calling Matlab engine from C++ - comp.soft-sys.matlabIt compiles without errors but I get a linker error - cannot find -llibeng. > > As far as I can tell, libeng is installed and I have the paths set correctly in Eclipse. Linker Can't Find Library - comp.os.ms-windows.programmer.win32 ...> > >Thanks Geoff: > > > =A0 That seems to work, as I explicitly identify libraries in the > >project's linker property, the unresolved external errors for symbols > >in ... Linker problem - comp.unix.solarisHello People This Editor just ate up my entire post *sigh* so I'm having to type it all again. So I'll be a little brief. I'm getting linker errors and I ... Non-member operator overloading, linker complains - comp.lang.c++ ...Why does the following code (stripped down to the bare minimum) not build? To be specific, it gives me a linker error like this: error LNK2019: unr... Dealing with Compiler and Linker Errors - Cprogramming.comThe Types of Compilation Errors First, let's distinguish between the types of errors: most compilers will give three types of compile-time alerts: compiler warnings ... Linker Tools Error LNK2019 (C++) - Microsoft Corporation: Software ...An undefined external symbol (symbol) was found in function. To resolve this error, provide a definition for symbol or remove the code that references it. For more ... 7/24/2012 2:16:48 PM
|
|
|
|
|
|
|
|
|