comp.lang.ada
 help / color / mirror / Atom feed
* os/2 gnat 3.05 and standard *.obj mode Leonid Dulman(dulman@ibm.net)
@ 1996-11-02  0:00 dulman
  0 siblings, 0 replies; only message in thread
From: dulman @ 1996-11-02  0:00 UTC (permalink / raw)




   I need to work with OS/2 GNAT ADA-95 compiler in standard *.OBJ mode
for compatibility with others OS/2 Applications (non EMX).
   I wrote a simple program dynam.adb

-- example dynamic array creation
-- this example demonstrate how
-- to create dynamic array of any
-- type in ADA 95

with addtype; use addtype;
with text_io; use text_io;
procedure dynam is
type pvect is access all ivector;
p : pvect;
i : integer;
package int_io is new integer_io(integer); use int_io;
begin

put(" Enter array length :"); get(i);
p := new ivector(1..i) ;   -- dynamic object creation
for j in 1..i loop p(j) := 2*j; end loop;
new_line;
for j in 1..i loop put(p(j)); end loop;
end dynam;

 After command : gcc -o dynam.exe  -Zomf -Zsys -Zmt dynam.adb

got messages :

d:\temp\ccb00010.(ccb00010) :  error L2029: 'system__tasking_soft_links__abort_undefer' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: '__gnat_raise' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'ada__text_io__new_line$2' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: '__gnat_malloc' : unresolved external
d:\gnat30\lib\crt0.obj(crt0.obj) :  error L2029: 'main' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'ada__text_io__current_in' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'ada__text_io__integer_aux__get_int' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'ada__text_io__integer_aux__put_int' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'ada__text_io__current_out' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'constraint_error' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'system__task_specific_data__get_gnat_exception' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'system__task_specific_data__get_jmpbuf_address' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'system__task_specific_data__set_jmpbuf_address' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'ada__text_io__put$4' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: '__gnat_raise_nodefer_with_msg' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: '__gnat_raise_constraint_error' : unresolved external
d:\temp\ccb00010.(ccb00010) :  error L2029: 'ada__io_exceptions__data_error' : unresolved external

LINK386 :  warning L4071: application type not specified; assuming WINDOWCOMPAT

There were 17 errors detected
 ------------------------------------------------------------------
 How can I solve these problems or where can receive GNAT 2.00 version
of Ada compiler. It works in *.OBJ mode.

 Thanks, Leonid (dulman@ibm.net)






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-11-02  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-02  0:00 os/2 gnat 3.05 and standard *.obj mode Leonid Dulman(dulman@ibm.net) dulman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox