| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | HELP! Pascal/C/Link386 problem |
* Crossposted in PASCAL
* Crossposted in OS2PROG
Hello All!
I'm trying to use a bit of C (Watcom) in my Pascal (VP/2) program.
When I try to link this stuff by hand I get these errors:
=== Cut Begin: t.t ===
Operating System/2 Linear Executable Linker
Version 3.00.002 Dec 04 1995
Copyright (C) IBM Corporation 1988-1993.
Copyright (C) Microsoft Corp. 1988-1993.
All rights reserved.
Object Modules [.obj]: E:\PRG\VP\OUT\TESTUDO.OBJ+
Object Modules [.obj]: E:\TMP\UDO\IMPORT.OBJ
Run File [TESTUDO.exe]: E:\PRG\VP\OUT\TESTUDO.EXE
List File [nul.map]: nul
Libraries [.lib]: E:\PRG\VP\UNITS\SYSTEM.LIB+
Libraries [.lib]: e:\prg\vp\lib\OS2.LIB+
Libraries [.lib]: e:\tmp\udo\test.lib+
Libraries [.lib]: e:\prg\watcom\lib386\math387r.lib+
Libraries [.lib]: e:\prg\watcom\lib386\os2\emu387.lib+
Libraries [.lib]: e:\prg\watcom\lib386\os2\os2386.lib+
Libraries [.lib]: e:\prg\watcom\lib386\os2\clib3r.lib
Definitions File [nul.def]: nul
e:\prg\watcom\lib386\os2\clib3r.lib(seg16) : warning L4008: aliased fix-up
to non-alias object near C in object _TEXT16
e:\prg\watcom\lib386\os2\clib3r.lib(seg16) : warning L4005: 32-bit fix-up
in 16-bit record ignored at C in segment _TEXT16
frame segment _TEXT, target segment _TEXT, target offset 3906
e:\prg\watcom\lib386\os2\clib3r.lib(seg16) : warning L4008: aliased fix-up
to non-alias object near 1E in object _TEXT16
e:\prg\watcom\lib386\os2\clib3r.lib(seg16) : warning L4005: 32-bit fix-up
in 16-bit record ignored at 1E in segment _TEXT16
frame segment _TEXT, target segment _TEXT, target offset 3906
e:\prg\watcom\lib386\os2\clib3r.lib(seg16) : warning L4008: aliased fix-up
to non-alias object near 31 in object _TEXT16
[...]
e:\prg\watcom\lib386\os2\clib3r.lib(inirt386) : warning L4005: 32-bit
fix-up in 16-bit record ignored at 5B in segment _TEXT
frame segment CONST32, target segment YIE, target offset 1dee
e:\prg\watcom\lib386\os2\clib3r.lib(maino32) : error L2029: '_end' :
unresolved external
E:\PRG\VP\OUT\TESTUDO.OBJ(E:\PRG\VP\SOURCE\TESTUDO.PAS) : error L2029:
'TestUdo{at}importpath' : unresolved external
LINK386 : warning L4071: application type not specified; assuming WINDOWCOMPAT
There were 2 errors detected
=== Cut End ===
How can I avoid the warnings of LINK386?
In what library is '_end' to be found?
When I use WLINK everything links OK, except for the testudo{at}importpath thingie.
This is the pascal source (just testing):
=== Cut Begin: testudo.pas ===
Program TestUdo;
Procedure importpath (Var local,canon,remote:String); external;
{$L e:\tmp\udo\import.OBJ}
Var test1,test2,test3:String;
Begin
importpath(test1,test2,test3);
WriteLn(Test1);
End.
=== Cut End ===
How can I fix the 'testUdo{at}importpath' problem (unresolved external)?
PLEASE help!
Greetz,
Udo
---
* Origin: (2:285/308.2)SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 285/308 32 1 280/801 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.